github.com/mook-as/cf-cli@v7.0.0-beta.28.0.20200120190804-b91c115fae48+incompatible/cf/util/testhelpers/rpcserver/rpcserverfakes/fake_handlers.go (about)

     1  // Code generated by counterfeiter. DO NOT EDIT.
     2  package rpcserverfakes
     3  
     4  import (
     5  	"sync"
     6  
     7  	"code.cloudfoundry.org/cli/cf/util/testhelpers/rpcserver"
     8  	"code.cloudfoundry.org/cli/plugin"
     9  	plugin_models "code.cloudfoundry.org/cli/plugin/models"
    10  )
    11  
    12  type FakeHandlers struct {
    13  	AccessTokenStub        func(string, *string) error
    14  	accessTokenMutex       sync.RWMutex
    15  	accessTokenArgsForCall []struct {
    16  		arg1 string
    17  		arg2 *string
    18  	}
    19  	accessTokenReturns struct {
    20  		result1 error
    21  	}
    22  	accessTokenReturnsOnCall map[int]struct {
    23  		result1 error
    24  	}
    25  	ApiEndpointStub        func(string, *string) error
    26  	apiEndpointMutex       sync.RWMutex
    27  	apiEndpointArgsForCall []struct {
    28  		arg1 string
    29  		arg2 *string
    30  	}
    31  	apiEndpointReturns struct {
    32  		result1 error
    33  	}
    34  	apiEndpointReturnsOnCall map[int]struct {
    35  		result1 error
    36  	}
    37  	ApiVersionStub        func(string, *string) error
    38  	apiVersionMutex       sync.RWMutex
    39  	apiVersionArgsForCall []struct {
    40  		arg1 string
    41  		arg2 *string
    42  	}
    43  	apiVersionReturns struct {
    44  		result1 error
    45  	}
    46  	apiVersionReturnsOnCall map[int]struct {
    47  		result1 error
    48  	}
    49  	CallCoreCommandStub        func([]string, *bool) error
    50  	callCoreCommandMutex       sync.RWMutex
    51  	callCoreCommandArgsForCall []struct {
    52  		arg1 []string
    53  		arg2 *bool
    54  	}
    55  	callCoreCommandReturns struct {
    56  		result1 error
    57  	}
    58  	callCoreCommandReturnsOnCall map[int]struct {
    59  		result1 error
    60  	}
    61  	DisableTerminalOutputStub        func(bool, *bool) error
    62  	disableTerminalOutputMutex       sync.RWMutex
    63  	disableTerminalOutputArgsForCall []struct {
    64  		arg1 bool
    65  		arg2 *bool
    66  	}
    67  	disableTerminalOutputReturns struct {
    68  		result1 error
    69  	}
    70  	disableTerminalOutputReturnsOnCall map[int]struct {
    71  		result1 error
    72  	}
    73  	DopplerEndpointStub        func(string, *string) error
    74  	dopplerEndpointMutex       sync.RWMutex
    75  	dopplerEndpointArgsForCall []struct {
    76  		arg1 string
    77  		arg2 *string
    78  	}
    79  	dopplerEndpointReturns struct {
    80  		result1 error
    81  	}
    82  	dopplerEndpointReturnsOnCall map[int]struct {
    83  		result1 error
    84  	}
    85  	GetAppStub        func(string, *plugin_models.GetAppModel) error
    86  	getAppMutex       sync.RWMutex
    87  	getAppArgsForCall []struct {
    88  		arg1 string
    89  		arg2 *plugin_models.GetAppModel
    90  	}
    91  	getAppReturns struct {
    92  		result1 error
    93  	}
    94  	getAppReturnsOnCall map[int]struct {
    95  		result1 error
    96  	}
    97  	GetAppsStub        func(string, *[]plugin_models.GetAppsModel) error
    98  	getAppsMutex       sync.RWMutex
    99  	getAppsArgsForCall []struct {
   100  		arg1 string
   101  		arg2 *[]plugin_models.GetAppsModel
   102  	}
   103  	getAppsReturns struct {
   104  		result1 error
   105  	}
   106  	getAppsReturnsOnCall map[int]struct {
   107  		result1 error
   108  	}
   109  	GetCurrentOrgStub        func(string, *plugin_models.Organization) error
   110  	getCurrentOrgMutex       sync.RWMutex
   111  	getCurrentOrgArgsForCall []struct {
   112  		arg1 string
   113  		arg2 *plugin_models.Organization
   114  	}
   115  	getCurrentOrgReturns struct {
   116  		result1 error
   117  	}
   118  	getCurrentOrgReturnsOnCall map[int]struct {
   119  		result1 error
   120  	}
   121  	GetCurrentSpaceStub        func(string, *plugin_models.Space) error
   122  	getCurrentSpaceMutex       sync.RWMutex
   123  	getCurrentSpaceArgsForCall []struct {
   124  		arg1 string
   125  		arg2 *plugin_models.Space
   126  	}
   127  	getCurrentSpaceReturns struct {
   128  		result1 error
   129  	}
   130  	getCurrentSpaceReturnsOnCall map[int]struct {
   131  		result1 error
   132  	}
   133  	GetOrgStub        func(string, *plugin_models.GetOrg_Model) error
   134  	getOrgMutex       sync.RWMutex
   135  	getOrgArgsForCall []struct {
   136  		arg1 string
   137  		arg2 *plugin_models.GetOrg_Model
   138  	}
   139  	getOrgReturns struct {
   140  		result1 error
   141  	}
   142  	getOrgReturnsOnCall map[int]struct {
   143  		result1 error
   144  	}
   145  	GetOrgUsersStub        func([]string, *[]plugin_models.GetOrgUsers_Model) error
   146  	getOrgUsersMutex       sync.RWMutex
   147  	getOrgUsersArgsForCall []struct {
   148  		arg1 []string
   149  		arg2 *[]plugin_models.GetOrgUsers_Model
   150  	}
   151  	getOrgUsersReturns struct {
   152  		result1 error
   153  	}
   154  	getOrgUsersReturnsOnCall map[int]struct {
   155  		result1 error
   156  	}
   157  	GetOrgsStub        func(string, *[]plugin_models.GetOrgs_Model) error
   158  	getOrgsMutex       sync.RWMutex
   159  	getOrgsArgsForCall []struct {
   160  		arg1 string
   161  		arg2 *[]plugin_models.GetOrgs_Model
   162  	}
   163  	getOrgsReturns struct {
   164  		result1 error
   165  	}
   166  	getOrgsReturnsOnCall map[int]struct {
   167  		result1 error
   168  	}
   169  	GetOutputAndResetStub        func(bool, *[]string) error
   170  	getOutputAndResetMutex       sync.RWMutex
   171  	getOutputAndResetArgsForCall []struct {
   172  		arg1 bool
   173  		arg2 *[]string
   174  	}
   175  	getOutputAndResetReturns struct {
   176  		result1 error
   177  	}
   178  	getOutputAndResetReturnsOnCall map[int]struct {
   179  		result1 error
   180  	}
   181  	GetServiceStub        func(string, *plugin_models.GetService_Model) error
   182  	getServiceMutex       sync.RWMutex
   183  	getServiceArgsForCall []struct {
   184  		arg1 string
   185  		arg2 *plugin_models.GetService_Model
   186  	}
   187  	getServiceReturns struct {
   188  		result1 error
   189  	}
   190  	getServiceReturnsOnCall map[int]struct {
   191  		result1 error
   192  	}
   193  	GetServicesStub        func(string, *[]plugin_models.GetServices_Model) error
   194  	getServicesMutex       sync.RWMutex
   195  	getServicesArgsForCall []struct {
   196  		arg1 string
   197  		arg2 *[]plugin_models.GetServices_Model
   198  	}
   199  	getServicesReturns struct {
   200  		result1 error
   201  	}
   202  	getServicesReturnsOnCall map[int]struct {
   203  		result1 error
   204  	}
   205  	GetSpaceStub        func(string, *plugin_models.GetSpace_Model) error
   206  	getSpaceMutex       sync.RWMutex
   207  	getSpaceArgsForCall []struct {
   208  		arg1 string
   209  		arg2 *plugin_models.GetSpace_Model
   210  	}
   211  	getSpaceReturns struct {
   212  		result1 error
   213  	}
   214  	getSpaceReturnsOnCall map[int]struct {
   215  		result1 error
   216  	}
   217  	GetSpaceUsersStub        func([]string, *[]plugin_models.GetSpaceUsers_Model) error
   218  	getSpaceUsersMutex       sync.RWMutex
   219  	getSpaceUsersArgsForCall []struct {
   220  		arg1 []string
   221  		arg2 *[]plugin_models.GetSpaceUsers_Model
   222  	}
   223  	getSpaceUsersReturns struct {
   224  		result1 error
   225  	}
   226  	getSpaceUsersReturnsOnCall map[int]struct {
   227  		result1 error
   228  	}
   229  	GetSpacesStub        func(string, *[]plugin_models.GetSpaces_Model) error
   230  	getSpacesMutex       sync.RWMutex
   231  	getSpacesArgsForCall []struct {
   232  		arg1 string
   233  		arg2 *[]plugin_models.GetSpaces_Model
   234  	}
   235  	getSpacesReturns struct {
   236  		result1 error
   237  	}
   238  	getSpacesReturnsOnCall map[int]struct {
   239  		result1 error
   240  	}
   241  	HasAPIEndpointStub        func(string, *bool) error
   242  	hasAPIEndpointMutex       sync.RWMutex
   243  	hasAPIEndpointArgsForCall []struct {
   244  		arg1 string
   245  		arg2 *bool
   246  	}
   247  	hasAPIEndpointReturns struct {
   248  		result1 error
   249  	}
   250  	hasAPIEndpointReturnsOnCall map[int]struct {
   251  		result1 error
   252  	}
   253  	HasOrganizationStub        func(string, *bool) error
   254  	hasOrganizationMutex       sync.RWMutex
   255  	hasOrganizationArgsForCall []struct {
   256  		arg1 string
   257  		arg2 *bool
   258  	}
   259  	hasOrganizationReturns struct {
   260  		result1 error
   261  	}
   262  	hasOrganizationReturnsOnCall map[int]struct {
   263  		result1 error
   264  	}
   265  	HasSpaceStub        func(string, *bool) error
   266  	hasSpaceMutex       sync.RWMutex
   267  	hasSpaceArgsForCall []struct {
   268  		arg1 string
   269  		arg2 *bool
   270  	}
   271  	hasSpaceReturns struct {
   272  		result1 error
   273  	}
   274  	hasSpaceReturnsOnCall map[int]struct {
   275  		result1 error
   276  	}
   277  	IsLoggedInStub        func(string, *bool) error
   278  	isLoggedInMutex       sync.RWMutex
   279  	isLoggedInArgsForCall []struct {
   280  		arg1 string
   281  		arg2 *bool
   282  	}
   283  	isLoggedInReturns struct {
   284  		result1 error
   285  	}
   286  	isLoggedInReturnsOnCall map[int]struct {
   287  		result1 error
   288  	}
   289  	IsMinCliVersionStub        func(string, *bool) error
   290  	isMinCliVersionMutex       sync.RWMutex
   291  	isMinCliVersionArgsForCall []struct {
   292  		arg1 string
   293  		arg2 *bool
   294  	}
   295  	isMinCliVersionReturns struct {
   296  		result1 error
   297  	}
   298  	isMinCliVersionReturnsOnCall map[int]struct {
   299  		result1 error
   300  	}
   301  	IsSSLDisabledStub        func(string, *bool) error
   302  	isSSLDisabledMutex       sync.RWMutex
   303  	isSSLDisabledArgsForCall []struct {
   304  		arg1 string
   305  		arg2 *bool
   306  	}
   307  	isSSLDisabledReturns struct {
   308  		result1 error
   309  	}
   310  	isSSLDisabledReturnsOnCall map[int]struct {
   311  		result1 error
   312  	}
   313  	LoggregatorEndpointStub        func(string, *string) error
   314  	loggregatorEndpointMutex       sync.RWMutex
   315  	loggregatorEndpointArgsForCall []struct {
   316  		arg1 string
   317  		arg2 *string
   318  	}
   319  	loggregatorEndpointReturns struct {
   320  		result1 error
   321  	}
   322  	loggregatorEndpointReturnsOnCall map[int]struct {
   323  		result1 error
   324  	}
   325  	SetPluginMetadataStub        func(plugin.PluginMetadata, *bool) error
   326  	setPluginMetadataMutex       sync.RWMutex
   327  	setPluginMetadataArgsForCall []struct {
   328  		arg1 plugin.PluginMetadata
   329  		arg2 *bool
   330  	}
   331  	setPluginMetadataReturns struct {
   332  		result1 error
   333  	}
   334  	setPluginMetadataReturnsOnCall map[int]struct {
   335  		result1 error
   336  	}
   337  	UserEmailStub        func(string, *string) error
   338  	userEmailMutex       sync.RWMutex
   339  	userEmailArgsForCall []struct {
   340  		arg1 string
   341  		arg2 *string
   342  	}
   343  	userEmailReturns struct {
   344  		result1 error
   345  	}
   346  	userEmailReturnsOnCall map[int]struct {
   347  		result1 error
   348  	}
   349  	UserGuidStub        func(string, *string) error
   350  	userGuidMutex       sync.RWMutex
   351  	userGuidArgsForCall []struct {
   352  		arg1 string
   353  		arg2 *string
   354  	}
   355  	userGuidReturns struct {
   356  		result1 error
   357  	}
   358  	userGuidReturnsOnCall map[int]struct {
   359  		result1 error
   360  	}
   361  	UsernameStub        func(string, *string) error
   362  	usernameMutex       sync.RWMutex
   363  	usernameArgsForCall []struct {
   364  		arg1 string
   365  		arg2 *string
   366  	}
   367  	usernameReturns struct {
   368  		result1 error
   369  	}
   370  	usernameReturnsOnCall map[int]struct {
   371  		result1 error
   372  	}
   373  	invocations      map[string][][]interface{}
   374  	invocationsMutex sync.RWMutex
   375  }
   376  
   377  func (fake *FakeHandlers) AccessToken(arg1 string, arg2 *string) error {
   378  	fake.accessTokenMutex.Lock()
   379  	ret, specificReturn := fake.accessTokenReturnsOnCall[len(fake.accessTokenArgsForCall)]
   380  	fake.accessTokenArgsForCall = append(fake.accessTokenArgsForCall, struct {
   381  		arg1 string
   382  		arg2 *string
   383  	}{arg1, arg2})
   384  	fake.recordInvocation("AccessToken", []interface{}{arg1, arg2})
   385  	fake.accessTokenMutex.Unlock()
   386  	if fake.AccessTokenStub != nil {
   387  		return fake.AccessTokenStub(arg1, arg2)
   388  	}
   389  	if specificReturn {
   390  		return ret.result1
   391  	}
   392  	fakeReturns := fake.accessTokenReturns
   393  	return fakeReturns.result1
   394  }
   395  
   396  func (fake *FakeHandlers) AccessTokenCallCount() int {
   397  	fake.accessTokenMutex.RLock()
   398  	defer fake.accessTokenMutex.RUnlock()
   399  	return len(fake.accessTokenArgsForCall)
   400  }
   401  
   402  func (fake *FakeHandlers) AccessTokenCalls(stub func(string, *string) error) {
   403  	fake.accessTokenMutex.Lock()
   404  	defer fake.accessTokenMutex.Unlock()
   405  	fake.AccessTokenStub = stub
   406  }
   407  
   408  func (fake *FakeHandlers) AccessTokenArgsForCall(i int) (string, *string) {
   409  	fake.accessTokenMutex.RLock()
   410  	defer fake.accessTokenMutex.RUnlock()
   411  	argsForCall := fake.accessTokenArgsForCall[i]
   412  	return argsForCall.arg1, argsForCall.arg2
   413  }
   414  
   415  func (fake *FakeHandlers) AccessTokenReturns(result1 error) {
   416  	fake.accessTokenMutex.Lock()
   417  	defer fake.accessTokenMutex.Unlock()
   418  	fake.AccessTokenStub = nil
   419  	fake.accessTokenReturns = struct {
   420  		result1 error
   421  	}{result1}
   422  }
   423  
   424  func (fake *FakeHandlers) AccessTokenReturnsOnCall(i int, result1 error) {
   425  	fake.accessTokenMutex.Lock()
   426  	defer fake.accessTokenMutex.Unlock()
   427  	fake.AccessTokenStub = nil
   428  	if fake.accessTokenReturnsOnCall == nil {
   429  		fake.accessTokenReturnsOnCall = make(map[int]struct {
   430  			result1 error
   431  		})
   432  	}
   433  	fake.accessTokenReturnsOnCall[i] = struct {
   434  		result1 error
   435  	}{result1}
   436  }
   437  
   438  func (fake *FakeHandlers) ApiEndpoint(arg1 string, arg2 *string) error {
   439  	fake.apiEndpointMutex.Lock()
   440  	ret, specificReturn := fake.apiEndpointReturnsOnCall[len(fake.apiEndpointArgsForCall)]
   441  	fake.apiEndpointArgsForCall = append(fake.apiEndpointArgsForCall, struct {
   442  		arg1 string
   443  		arg2 *string
   444  	}{arg1, arg2})
   445  	fake.recordInvocation("ApiEndpoint", []interface{}{arg1, arg2})
   446  	fake.apiEndpointMutex.Unlock()
   447  	if fake.ApiEndpointStub != nil {
   448  		return fake.ApiEndpointStub(arg1, arg2)
   449  	}
   450  	if specificReturn {
   451  		return ret.result1
   452  	}
   453  	fakeReturns := fake.apiEndpointReturns
   454  	return fakeReturns.result1
   455  }
   456  
   457  func (fake *FakeHandlers) ApiEndpointCallCount() int {
   458  	fake.apiEndpointMutex.RLock()
   459  	defer fake.apiEndpointMutex.RUnlock()
   460  	return len(fake.apiEndpointArgsForCall)
   461  }
   462  
   463  func (fake *FakeHandlers) ApiEndpointCalls(stub func(string, *string) error) {
   464  	fake.apiEndpointMutex.Lock()
   465  	defer fake.apiEndpointMutex.Unlock()
   466  	fake.ApiEndpointStub = stub
   467  }
   468  
   469  func (fake *FakeHandlers) ApiEndpointArgsForCall(i int) (string, *string) {
   470  	fake.apiEndpointMutex.RLock()
   471  	defer fake.apiEndpointMutex.RUnlock()
   472  	argsForCall := fake.apiEndpointArgsForCall[i]
   473  	return argsForCall.arg1, argsForCall.arg2
   474  }
   475  
   476  func (fake *FakeHandlers) ApiEndpointReturns(result1 error) {
   477  	fake.apiEndpointMutex.Lock()
   478  	defer fake.apiEndpointMutex.Unlock()
   479  	fake.ApiEndpointStub = nil
   480  	fake.apiEndpointReturns = struct {
   481  		result1 error
   482  	}{result1}
   483  }
   484  
   485  func (fake *FakeHandlers) ApiEndpointReturnsOnCall(i int, result1 error) {
   486  	fake.apiEndpointMutex.Lock()
   487  	defer fake.apiEndpointMutex.Unlock()
   488  	fake.ApiEndpointStub = nil
   489  	if fake.apiEndpointReturnsOnCall == nil {
   490  		fake.apiEndpointReturnsOnCall = make(map[int]struct {
   491  			result1 error
   492  		})
   493  	}
   494  	fake.apiEndpointReturnsOnCall[i] = struct {
   495  		result1 error
   496  	}{result1}
   497  }
   498  
   499  func (fake *FakeHandlers) ApiVersion(arg1 string, arg2 *string) error {
   500  	fake.apiVersionMutex.Lock()
   501  	ret, specificReturn := fake.apiVersionReturnsOnCall[len(fake.apiVersionArgsForCall)]
   502  	fake.apiVersionArgsForCall = append(fake.apiVersionArgsForCall, struct {
   503  		arg1 string
   504  		arg2 *string
   505  	}{arg1, arg2})
   506  	fake.recordInvocation("ApiVersion", []interface{}{arg1, arg2})
   507  	fake.apiVersionMutex.Unlock()
   508  	if fake.ApiVersionStub != nil {
   509  		return fake.ApiVersionStub(arg1, arg2)
   510  	}
   511  	if specificReturn {
   512  		return ret.result1
   513  	}
   514  	fakeReturns := fake.apiVersionReturns
   515  	return fakeReturns.result1
   516  }
   517  
   518  func (fake *FakeHandlers) ApiVersionCallCount() int {
   519  	fake.apiVersionMutex.RLock()
   520  	defer fake.apiVersionMutex.RUnlock()
   521  	return len(fake.apiVersionArgsForCall)
   522  }
   523  
   524  func (fake *FakeHandlers) ApiVersionCalls(stub func(string, *string) error) {
   525  	fake.apiVersionMutex.Lock()
   526  	defer fake.apiVersionMutex.Unlock()
   527  	fake.ApiVersionStub = stub
   528  }
   529  
   530  func (fake *FakeHandlers) ApiVersionArgsForCall(i int) (string, *string) {
   531  	fake.apiVersionMutex.RLock()
   532  	defer fake.apiVersionMutex.RUnlock()
   533  	argsForCall := fake.apiVersionArgsForCall[i]
   534  	return argsForCall.arg1, argsForCall.arg2
   535  }
   536  
   537  func (fake *FakeHandlers) ApiVersionReturns(result1 error) {
   538  	fake.apiVersionMutex.Lock()
   539  	defer fake.apiVersionMutex.Unlock()
   540  	fake.ApiVersionStub = nil
   541  	fake.apiVersionReturns = struct {
   542  		result1 error
   543  	}{result1}
   544  }
   545  
   546  func (fake *FakeHandlers) ApiVersionReturnsOnCall(i int, result1 error) {
   547  	fake.apiVersionMutex.Lock()
   548  	defer fake.apiVersionMutex.Unlock()
   549  	fake.ApiVersionStub = nil
   550  	if fake.apiVersionReturnsOnCall == nil {
   551  		fake.apiVersionReturnsOnCall = make(map[int]struct {
   552  			result1 error
   553  		})
   554  	}
   555  	fake.apiVersionReturnsOnCall[i] = struct {
   556  		result1 error
   557  	}{result1}
   558  }
   559  
   560  func (fake *FakeHandlers) CallCoreCommand(arg1 []string, arg2 *bool) error {
   561  	var arg1Copy []string
   562  	if arg1 != nil {
   563  		arg1Copy = make([]string, len(arg1))
   564  		copy(arg1Copy, arg1)
   565  	}
   566  	fake.callCoreCommandMutex.Lock()
   567  	ret, specificReturn := fake.callCoreCommandReturnsOnCall[len(fake.callCoreCommandArgsForCall)]
   568  	fake.callCoreCommandArgsForCall = append(fake.callCoreCommandArgsForCall, struct {
   569  		arg1 []string
   570  		arg2 *bool
   571  	}{arg1Copy, arg2})
   572  	fake.recordInvocation("CallCoreCommand", []interface{}{arg1Copy, arg2})
   573  	fake.callCoreCommandMutex.Unlock()
   574  	if fake.CallCoreCommandStub != nil {
   575  		return fake.CallCoreCommandStub(arg1, arg2)
   576  	}
   577  	if specificReturn {
   578  		return ret.result1
   579  	}
   580  	fakeReturns := fake.callCoreCommandReturns
   581  	return fakeReturns.result1
   582  }
   583  
   584  func (fake *FakeHandlers) CallCoreCommandCallCount() int {
   585  	fake.callCoreCommandMutex.RLock()
   586  	defer fake.callCoreCommandMutex.RUnlock()
   587  	return len(fake.callCoreCommandArgsForCall)
   588  }
   589  
   590  func (fake *FakeHandlers) CallCoreCommandCalls(stub func([]string, *bool) error) {
   591  	fake.callCoreCommandMutex.Lock()
   592  	defer fake.callCoreCommandMutex.Unlock()
   593  	fake.CallCoreCommandStub = stub
   594  }
   595  
   596  func (fake *FakeHandlers) CallCoreCommandArgsForCall(i int) ([]string, *bool) {
   597  	fake.callCoreCommandMutex.RLock()
   598  	defer fake.callCoreCommandMutex.RUnlock()
   599  	argsForCall := fake.callCoreCommandArgsForCall[i]
   600  	return argsForCall.arg1, argsForCall.arg2
   601  }
   602  
   603  func (fake *FakeHandlers) CallCoreCommandReturns(result1 error) {
   604  	fake.callCoreCommandMutex.Lock()
   605  	defer fake.callCoreCommandMutex.Unlock()
   606  	fake.CallCoreCommandStub = nil
   607  	fake.callCoreCommandReturns = struct {
   608  		result1 error
   609  	}{result1}
   610  }
   611  
   612  func (fake *FakeHandlers) CallCoreCommandReturnsOnCall(i int, result1 error) {
   613  	fake.callCoreCommandMutex.Lock()
   614  	defer fake.callCoreCommandMutex.Unlock()
   615  	fake.CallCoreCommandStub = nil
   616  	if fake.callCoreCommandReturnsOnCall == nil {
   617  		fake.callCoreCommandReturnsOnCall = make(map[int]struct {
   618  			result1 error
   619  		})
   620  	}
   621  	fake.callCoreCommandReturnsOnCall[i] = struct {
   622  		result1 error
   623  	}{result1}
   624  }
   625  
   626  func (fake *FakeHandlers) DisableTerminalOutput(arg1 bool, arg2 *bool) error {
   627  	fake.disableTerminalOutputMutex.Lock()
   628  	ret, specificReturn := fake.disableTerminalOutputReturnsOnCall[len(fake.disableTerminalOutputArgsForCall)]
   629  	fake.disableTerminalOutputArgsForCall = append(fake.disableTerminalOutputArgsForCall, struct {
   630  		arg1 bool
   631  		arg2 *bool
   632  	}{arg1, arg2})
   633  	fake.recordInvocation("DisableTerminalOutput", []interface{}{arg1, arg2})
   634  	fake.disableTerminalOutputMutex.Unlock()
   635  	if fake.DisableTerminalOutputStub != nil {
   636  		return fake.DisableTerminalOutputStub(arg1, arg2)
   637  	}
   638  	if specificReturn {
   639  		return ret.result1
   640  	}
   641  	fakeReturns := fake.disableTerminalOutputReturns
   642  	return fakeReturns.result1
   643  }
   644  
   645  func (fake *FakeHandlers) DisableTerminalOutputCallCount() int {
   646  	fake.disableTerminalOutputMutex.RLock()
   647  	defer fake.disableTerminalOutputMutex.RUnlock()
   648  	return len(fake.disableTerminalOutputArgsForCall)
   649  }
   650  
   651  func (fake *FakeHandlers) DisableTerminalOutputCalls(stub func(bool, *bool) error) {
   652  	fake.disableTerminalOutputMutex.Lock()
   653  	defer fake.disableTerminalOutputMutex.Unlock()
   654  	fake.DisableTerminalOutputStub = stub
   655  }
   656  
   657  func (fake *FakeHandlers) DisableTerminalOutputArgsForCall(i int) (bool, *bool) {
   658  	fake.disableTerminalOutputMutex.RLock()
   659  	defer fake.disableTerminalOutputMutex.RUnlock()
   660  	argsForCall := fake.disableTerminalOutputArgsForCall[i]
   661  	return argsForCall.arg1, argsForCall.arg2
   662  }
   663  
   664  func (fake *FakeHandlers) DisableTerminalOutputReturns(result1 error) {
   665  	fake.disableTerminalOutputMutex.Lock()
   666  	defer fake.disableTerminalOutputMutex.Unlock()
   667  	fake.DisableTerminalOutputStub = nil
   668  	fake.disableTerminalOutputReturns = struct {
   669  		result1 error
   670  	}{result1}
   671  }
   672  
   673  func (fake *FakeHandlers) DisableTerminalOutputReturnsOnCall(i int, result1 error) {
   674  	fake.disableTerminalOutputMutex.Lock()
   675  	defer fake.disableTerminalOutputMutex.Unlock()
   676  	fake.DisableTerminalOutputStub = nil
   677  	if fake.disableTerminalOutputReturnsOnCall == nil {
   678  		fake.disableTerminalOutputReturnsOnCall = make(map[int]struct {
   679  			result1 error
   680  		})
   681  	}
   682  	fake.disableTerminalOutputReturnsOnCall[i] = struct {
   683  		result1 error
   684  	}{result1}
   685  }
   686  
   687  func (fake *FakeHandlers) DopplerEndpoint(arg1 string, arg2 *string) error {
   688  	fake.dopplerEndpointMutex.Lock()
   689  	ret, specificReturn := fake.dopplerEndpointReturnsOnCall[len(fake.dopplerEndpointArgsForCall)]
   690  	fake.dopplerEndpointArgsForCall = append(fake.dopplerEndpointArgsForCall, struct {
   691  		arg1 string
   692  		arg2 *string
   693  	}{arg1, arg2})
   694  	fake.recordInvocation("DopplerEndpoint", []interface{}{arg1, arg2})
   695  	fake.dopplerEndpointMutex.Unlock()
   696  	if fake.DopplerEndpointStub != nil {
   697  		return fake.DopplerEndpointStub(arg1, arg2)
   698  	}
   699  	if specificReturn {
   700  		return ret.result1
   701  	}
   702  	fakeReturns := fake.dopplerEndpointReturns
   703  	return fakeReturns.result1
   704  }
   705  
   706  func (fake *FakeHandlers) DopplerEndpointCallCount() int {
   707  	fake.dopplerEndpointMutex.RLock()
   708  	defer fake.dopplerEndpointMutex.RUnlock()
   709  	return len(fake.dopplerEndpointArgsForCall)
   710  }
   711  
   712  func (fake *FakeHandlers) DopplerEndpointCalls(stub func(string, *string) error) {
   713  	fake.dopplerEndpointMutex.Lock()
   714  	defer fake.dopplerEndpointMutex.Unlock()
   715  	fake.DopplerEndpointStub = stub
   716  }
   717  
   718  func (fake *FakeHandlers) DopplerEndpointArgsForCall(i int) (string, *string) {
   719  	fake.dopplerEndpointMutex.RLock()
   720  	defer fake.dopplerEndpointMutex.RUnlock()
   721  	argsForCall := fake.dopplerEndpointArgsForCall[i]
   722  	return argsForCall.arg1, argsForCall.arg2
   723  }
   724  
   725  func (fake *FakeHandlers) DopplerEndpointReturns(result1 error) {
   726  	fake.dopplerEndpointMutex.Lock()
   727  	defer fake.dopplerEndpointMutex.Unlock()
   728  	fake.DopplerEndpointStub = nil
   729  	fake.dopplerEndpointReturns = struct {
   730  		result1 error
   731  	}{result1}
   732  }
   733  
   734  func (fake *FakeHandlers) DopplerEndpointReturnsOnCall(i int, result1 error) {
   735  	fake.dopplerEndpointMutex.Lock()
   736  	defer fake.dopplerEndpointMutex.Unlock()
   737  	fake.DopplerEndpointStub = nil
   738  	if fake.dopplerEndpointReturnsOnCall == nil {
   739  		fake.dopplerEndpointReturnsOnCall = make(map[int]struct {
   740  			result1 error
   741  		})
   742  	}
   743  	fake.dopplerEndpointReturnsOnCall[i] = struct {
   744  		result1 error
   745  	}{result1}
   746  }
   747  
   748  func (fake *FakeHandlers) GetApp(arg1 string, arg2 *plugin_models.GetAppModel) error {
   749  	fake.getAppMutex.Lock()
   750  	ret, specificReturn := fake.getAppReturnsOnCall[len(fake.getAppArgsForCall)]
   751  	fake.getAppArgsForCall = append(fake.getAppArgsForCall, struct {
   752  		arg1 string
   753  		arg2 *plugin_models.GetAppModel
   754  	}{arg1, arg2})
   755  	fake.recordInvocation("GetApp", []interface{}{arg1, arg2})
   756  	fake.getAppMutex.Unlock()
   757  	if fake.GetAppStub != nil {
   758  		return fake.GetAppStub(arg1, arg2)
   759  	}
   760  	if specificReturn {
   761  		return ret.result1
   762  	}
   763  	fakeReturns := fake.getAppReturns
   764  	return fakeReturns.result1
   765  }
   766  
   767  func (fake *FakeHandlers) GetAppCallCount() int {
   768  	fake.getAppMutex.RLock()
   769  	defer fake.getAppMutex.RUnlock()
   770  	return len(fake.getAppArgsForCall)
   771  }
   772  
   773  func (fake *FakeHandlers) GetAppCalls(stub func(string, *plugin_models.GetAppModel) error) {
   774  	fake.getAppMutex.Lock()
   775  	defer fake.getAppMutex.Unlock()
   776  	fake.GetAppStub = stub
   777  }
   778  
   779  func (fake *FakeHandlers) GetAppArgsForCall(i int) (string, *plugin_models.GetAppModel) {
   780  	fake.getAppMutex.RLock()
   781  	defer fake.getAppMutex.RUnlock()
   782  	argsForCall := fake.getAppArgsForCall[i]
   783  	return argsForCall.arg1, argsForCall.arg2
   784  }
   785  
   786  func (fake *FakeHandlers) GetAppReturns(result1 error) {
   787  	fake.getAppMutex.Lock()
   788  	defer fake.getAppMutex.Unlock()
   789  	fake.GetAppStub = nil
   790  	fake.getAppReturns = struct {
   791  		result1 error
   792  	}{result1}
   793  }
   794  
   795  func (fake *FakeHandlers) GetAppReturnsOnCall(i int, result1 error) {
   796  	fake.getAppMutex.Lock()
   797  	defer fake.getAppMutex.Unlock()
   798  	fake.GetAppStub = nil
   799  	if fake.getAppReturnsOnCall == nil {
   800  		fake.getAppReturnsOnCall = make(map[int]struct {
   801  			result1 error
   802  		})
   803  	}
   804  	fake.getAppReturnsOnCall[i] = struct {
   805  		result1 error
   806  	}{result1}
   807  }
   808  
   809  func (fake *FakeHandlers) GetApps(arg1 string, arg2 *[]plugin_models.GetAppsModel) error {
   810  	fake.getAppsMutex.Lock()
   811  	ret, specificReturn := fake.getAppsReturnsOnCall[len(fake.getAppsArgsForCall)]
   812  	fake.getAppsArgsForCall = append(fake.getAppsArgsForCall, struct {
   813  		arg1 string
   814  		arg2 *[]plugin_models.GetAppsModel
   815  	}{arg1, arg2})
   816  	fake.recordInvocation("GetApps", []interface{}{arg1, arg2})
   817  	fake.getAppsMutex.Unlock()
   818  	if fake.GetAppsStub != nil {
   819  		return fake.GetAppsStub(arg1, arg2)
   820  	}
   821  	if specificReturn {
   822  		return ret.result1
   823  	}
   824  	fakeReturns := fake.getAppsReturns
   825  	return fakeReturns.result1
   826  }
   827  
   828  func (fake *FakeHandlers) GetAppsCallCount() int {
   829  	fake.getAppsMutex.RLock()
   830  	defer fake.getAppsMutex.RUnlock()
   831  	return len(fake.getAppsArgsForCall)
   832  }
   833  
   834  func (fake *FakeHandlers) GetAppsCalls(stub func(string, *[]plugin_models.GetAppsModel) error) {
   835  	fake.getAppsMutex.Lock()
   836  	defer fake.getAppsMutex.Unlock()
   837  	fake.GetAppsStub = stub
   838  }
   839  
   840  func (fake *FakeHandlers) GetAppsArgsForCall(i int) (string, *[]plugin_models.GetAppsModel) {
   841  	fake.getAppsMutex.RLock()
   842  	defer fake.getAppsMutex.RUnlock()
   843  	argsForCall := fake.getAppsArgsForCall[i]
   844  	return argsForCall.arg1, argsForCall.arg2
   845  }
   846  
   847  func (fake *FakeHandlers) GetAppsReturns(result1 error) {
   848  	fake.getAppsMutex.Lock()
   849  	defer fake.getAppsMutex.Unlock()
   850  	fake.GetAppsStub = nil
   851  	fake.getAppsReturns = struct {
   852  		result1 error
   853  	}{result1}
   854  }
   855  
   856  func (fake *FakeHandlers) GetAppsReturnsOnCall(i int, result1 error) {
   857  	fake.getAppsMutex.Lock()
   858  	defer fake.getAppsMutex.Unlock()
   859  	fake.GetAppsStub = nil
   860  	if fake.getAppsReturnsOnCall == nil {
   861  		fake.getAppsReturnsOnCall = make(map[int]struct {
   862  			result1 error
   863  		})
   864  	}
   865  	fake.getAppsReturnsOnCall[i] = struct {
   866  		result1 error
   867  	}{result1}
   868  }
   869  
   870  func (fake *FakeHandlers) GetCurrentOrg(arg1 string, arg2 *plugin_models.Organization) error {
   871  	fake.getCurrentOrgMutex.Lock()
   872  	ret, specificReturn := fake.getCurrentOrgReturnsOnCall[len(fake.getCurrentOrgArgsForCall)]
   873  	fake.getCurrentOrgArgsForCall = append(fake.getCurrentOrgArgsForCall, struct {
   874  		arg1 string
   875  		arg2 *plugin_models.Organization
   876  	}{arg1, arg2})
   877  	fake.recordInvocation("GetCurrentOrg", []interface{}{arg1, arg2})
   878  	fake.getCurrentOrgMutex.Unlock()
   879  	if fake.GetCurrentOrgStub != nil {
   880  		return fake.GetCurrentOrgStub(arg1, arg2)
   881  	}
   882  	if specificReturn {
   883  		return ret.result1
   884  	}
   885  	fakeReturns := fake.getCurrentOrgReturns
   886  	return fakeReturns.result1
   887  }
   888  
   889  func (fake *FakeHandlers) GetCurrentOrgCallCount() int {
   890  	fake.getCurrentOrgMutex.RLock()
   891  	defer fake.getCurrentOrgMutex.RUnlock()
   892  	return len(fake.getCurrentOrgArgsForCall)
   893  }
   894  
   895  func (fake *FakeHandlers) GetCurrentOrgCalls(stub func(string, *plugin_models.Organization) error) {
   896  	fake.getCurrentOrgMutex.Lock()
   897  	defer fake.getCurrentOrgMutex.Unlock()
   898  	fake.GetCurrentOrgStub = stub
   899  }
   900  
   901  func (fake *FakeHandlers) GetCurrentOrgArgsForCall(i int) (string, *plugin_models.Organization) {
   902  	fake.getCurrentOrgMutex.RLock()
   903  	defer fake.getCurrentOrgMutex.RUnlock()
   904  	argsForCall := fake.getCurrentOrgArgsForCall[i]
   905  	return argsForCall.arg1, argsForCall.arg2
   906  }
   907  
   908  func (fake *FakeHandlers) GetCurrentOrgReturns(result1 error) {
   909  	fake.getCurrentOrgMutex.Lock()
   910  	defer fake.getCurrentOrgMutex.Unlock()
   911  	fake.GetCurrentOrgStub = nil
   912  	fake.getCurrentOrgReturns = struct {
   913  		result1 error
   914  	}{result1}
   915  }
   916  
   917  func (fake *FakeHandlers) GetCurrentOrgReturnsOnCall(i int, result1 error) {
   918  	fake.getCurrentOrgMutex.Lock()
   919  	defer fake.getCurrentOrgMutex.Unlock()
   920  	fake.GetCurrentOrgStub = nil
   921  	if fake.getCurrentOrgReturnsOnCall == nil {
   922  		fake.getCurrentOrgReturnsOnCall = make(map[int]struct {
   923  			result1 error
   924  		})
   925  	}
   926  	fake.getCurrentOrgReturnsOnCall[i] = struct {
   927  		result1 error
   928  	}{result1}
   929  }
   930  
   931  func (fake *FakeHandlers) GetCurrentSpace(arg1 string, arg2 *plugin_models.Space) error {
   932  	fake.getCurrentSpaceMutex.Lock()
   933  	ret, specificReturn := fake.getCurrentSpaceReturnsOnCall[len(fake.getCurrentSpaceArgsForCall)]
   934  	fake.getCurrentSpaceArgsForCall = append(fake.getCurrentSpaceArgsForCall, struct {
   935  		arg1 string
   936  		arg2 *plugin_models.Space
   937  	}{arg1, arg2})
   938  	fake.recordInvocation("GetCurrentSpace", []interface{}{arg1, arg2})
   939  	fake.getCurrentSpaceMutex.Unlock()
   940  	if fake.GetCurrentSpaceStub != nil {
   941  		return fake.GetCurrentSpaceStub(arg1, arg2)
   942  	}
   943  	if specificReturn {
   944  		return ret.result1
   945  	}
   946  	fakeReturns := fake.getCurrentSpaceReturns
   947  	return fakeReturns.result1
   948  }
   949  
   950  func (fake *FakeHandlers) GetCurrentSpaceCallCount() int {
   951  	fake.getCurrentSpaceMutex.RLock()
   952  	defer fake.getCurrentSpaceMutex.RUnlock()
   953  	return len(fake.getCurrentSpaceArgsForCall)
   954  }
   955  
   956  func (fake *FakeHandlers) GetCurrentSpaceCalls(stub func(string, *plugin_models.Space) error) {
   957  	fake.getCurrentSpaceMutex.Lock()
   958  	defer fake.getCurrentSpaceMutex.Unlock()
   959  	fake.GetCurrentSpaceStub = stub
   960  }
   961  
   962  func (fake *FakeHandlers) GetCurrentSpaceArgsForCall(i int) (string, *plugin_models.Space) {
   963  	fake.getCurrentSpaceMutex.RLock()
   964  	defer fake.getCurrentSpaceMutex.RUnlock()
   965  	argsForCall := fake.getCurrentSpaceArgsForCall[i]
   966  	return argsForCall.arg1, argsForCall.arg2
   967  }
   968  
   969  func (fake *FakeHandlers) GetCurrentSpaceReturns(result1 error) {
   970  	fake.getCurrentSpaceMutex.Lock()
   971  	defer fake.getCurrentSpaceMutex.Unlock()
   972  	fake.GetCurrentSpaceStub = nil
   973  	fake.getCurrentSpaceReturns = struct {
   974  		result1 error
   975  	}{result1}
   976  }
   977  
   978  func (fake *FakeHandlers) GetCurrentSpaceReturnsOnCall(i int, result1 error) {
   979  	fake.getCurrentSpaceMutex.Lock()
   980  	defer fake.getCurrentSpaceMutex.Unlock()
   981  	fake.GetCurrentSpaceStub = nil
   982  	if fake.getCurrentSpaceReturnsOnCall == nil {
   983  		fake.getCurrentSpaceReturnsOnCall = make(map[int]struct {
   984  			result1 error
   985  		})
   986  	}
   987  	fake.getCurrentSpaceReturnsOnCall[i] = struct {
   988  		result1 error
   989  	}{result1}
   990  }
   991  
   992  func (fake *FakeHandlers) GetOrg(arg1 string, arg2 *plugin_models.GetOrg_Model) error {
   993  	fake.getOrgMutex.Lock()
   994  	ret, specificReturn := fake.getOrgReturnsOnCall[len(fake.getOrgArgsForCall)]
   995  	fake.getOrgArgsForCall = append(fake.getOrgArgsForCall, struct {
   996  		arg1 string
   997  		arg2 *plugin_models.GetOrg_Model
   998  	}{arg1, arg2})
   999  	fake.recordInvocation("GetOrg", []interface{}{arg1, arg2})
  1000  	fake.getOrgMutex.Unlock()
  1001  	if fake.GetOrgStub != nil {
  1002  		return fake.GetOrgStub(arg1, arg2)
  1003  	}
  1004  	if specificReturn {
  1005  		return ret.result1
  1006  	}
  1007  	fakeReturns := fake.getOrgReturns
  1008  	return fakeReturns.result1
  1009  }
  1010  
  1011  func (fake *FakeHandlers) GetOrgCallCount() int {
  1012  	fake.getOrgMutex.RLock()
  1013  	defer fake.getOrgMutex.RUnlock()
  1014  	return len(fake.getOrgArgsForCall)
  1015  }
  1016  
  1017  func (fake *FakeHandlers) GetOrgCalls(stub func(string, *plugin_models.GetOrg_Model) error) {
  1018  	fake.getOrgMutex.Lock()
  1019  	defer fake.getOrgMutex.Unlock()
  1020  	fake.GetOrgStub = stub
  1021  }
  1022  
  1023  func (fake *FakeHandlers) GetOrgArgsForCall(i int) (string, *plugin_models.GetOrg_Model) {
  1024  	fake.getOrgMutex.RLock()
  1025  	defer fake.getOrgMutex.RUnlock()
  1026  	argsForCall := fake.getOrgArgsForCall[i]
  1027  	return argsForCall.arg1, argsForCall.arg2
  1028  }
  1029  
  1030  func (fake *FakeHandlers) GetOrgReturns(result1 error) {
  1031  	fake.getOrgMutex.Lock()
  1032  	defer fake.getOrgMutex.Unlock()
  1033  	fake.GetOrgStub = nil
  1034  	fake.getOrgReturns = struct {
  1035  		result1 error
  1036  	}{result1}
  1037  }
  1038  
  1039  func (fake *FakeHandlers) GetOrgReturnsOnCall(i int, result1 error) {
  1040  	fake.getOrgMutex.Lock()
  1041  	defer fake.getOrgMutex.Unlock()
  1042  	fake.GetOrgStub = nil
  1043  	if fake.getOrgReturnsOnCall == nil {
  1044  		fake.getOrgReturnsOnCall = make(map[int]struct {
  1045  			result1 error
  1046  		})
  1047  	}
  1048  	fake.getOrgReturnsOnCall[i] = struct {
  1049  		result1 error
  1050  	}{result1}
  1051  }
  1052  
  1053  func (fake *FakeHandlers) GetOrgUsers(arg1 []string, arg2 *[]plugin_models.GetOrgUsers_Model) error {
  1054  	var arg1Copy []string
  1055  	if arg1 != nil {
  1056  		arg1Copy = make([]string, len(arg1))
  1057  		copy(arg1Copy, arg1)
  1058  	}
  1059  	fake.getOrgUsersMutex.Lock()
  1060  	ret, specificReturn := fake.getOrgUsersReturnsOnCall[len(fake.getOrgUsersArgsForCall)]
  1061  	fake.getOrgUsersArgsForCall = append(fake.getOrgUsersArgsForCall, struct {
  1062  		arg1 []string
  1063  		arg2 *[]plugin_models.GetOrgUsers_Model
  1064  	}{arg1Copy, arg2})
  1065  	fake.recordInvocation("GetOrgUsers", []interface{}{arg1Copy, arg2})
  1066  	fake.getOrgUsersMutex.Unlock()
  1067  	if fake.GetOrgUsersStub != nil {
  1068  		return fake.GetOrgUsersStub(arg1, arg2)
  1069  	}
  1070  	if specificReturn {
  1071  		return ret.result1
  1072  	}
  1073  	fakeReturns := fake.getOrgUsersReturns
  1074  	return fakeReturns.result1
  1075  }
  1076  
  1077  func (fake *FakeHandlers) GetOrgUsersCallCount() int {
  1078  	fake.getOrgUsersMutex.RLock()
  1079  	defer fake.getOrgUsersMutex.RUnlock()
  1080  	return len(fake.getOrgUsersArgsForCall)
  1081  }
  1082  
  1083  func (fake *FakeHandlers) GetOrgUsersCalls(stub func([]string, *[]plugin_models.GetOrgUsers_Model) error) {
  1084  	fake.getOrgUsersMutex.Lock()
  1085  	defer fake.getOrgUsersMutex.Unlock()
  1086  	fake.GetOrgUsersStub = stub
  1087  }
  1088  
  1089  func (fake *FakeHandlers) GetOrgUsersArgsForCall(i int) ([]string, *[]plugin_models.GetOrgUsers_Model) {
  1090  	fake.getOrgUsersMutex.RLock()
  1091  	defer fake.getOrgUsersMutex.RUnlock()
  1092  	argsForCall := fake.getOrgUsersArgsForCall[i]
  1093  	return argsForCall.arg1, argsForCall.arg2
  1094  }
  1095  
  1096  func (fake *FakeHandlers) GetOrgUsersReturns(result1 error) {
  1097  	fake.getOrgUsersMutex.Lock()
  1098  	defer fake.getOrgUsersMutex.Unlock()
  1099  	fake.GetOrgUsersStub = nil
  1100  	fake.getOrgUsersReturns = struct {
  1101  		result1 error
  1102  	}{result1}
  1103  }
  1104  
  1105  func (fake *FakeHandlers) GetOrgUsersReturnsOnCall(i int, result1 error) {
  1106  	fake.getOrgUsersMutex.Lock()
  1107  	defer fake.getOrgUsersMutex.Unlock()
  1108  	fake.GetOrgUsersStub = nil
  1109  	if fake.getOrgUsersReturnsOnCall == nil {
  1110  		fake.getOrgUsersReturnsOnCall = make(map[int]struct {
  1111  			result1 error
  1112  		})
  1113  	}
  1114  	fake.getOrgUsersReturnsOnCall[i] = struct {
  1115  		result1 error
  1116  	}{result1}
  1117  }
  1118  
  1119  func (fake *FakeHandlers) GetOrgs(arg1 string, arg2 *[]plugin_models.GetOrgs_Model) error {
  1120  	fake.getOrgsMutex.Lock()
  1121  	ret, specificReturn := fake.getOrgsReturnsOnCall[len(fake.getOrgsArgsForCall)]
  1122  	fake.getOrgsArgsForCall = append(fake.getOrgsArgsForCall, struct {
  1123  		arg1 string
  1124  		arg2 *[]plugin_models.GetOrgs_Model
  1125  	}{arg1, arg2})
  1126  	fake.recordInvocation("GetOrgs", []interface{}{arg1, arg2})
  1127  	fake.getOrgsMutex.Unlock()
  1128  	if fake.GetOrgsStub != nil {
  1129  		return fake.GetOrgsStub(arg1, arg2)
  1130  	}
  1131  	if specificReturn {
  1132  		return ret.result1
  1133  	}
  1134  	fakeReturns := fake.getOrgsReturns
  1135  	return fakeReturns.result1
  1136  }
  1137  
  1138  func (fake *FakeHandlers) GetOrgsCallCount() int {
  1139  	fake.getOrgsMutex.RLock()
  1140  	defer fake.getOrgsMutex.RUnlock()
  1141  	return len(fake.getOrgsArgsForCall)
  1142  }
  1143  
  1144  func (fake *FakeHandlers) GetOrgsCalls(stub func(string, *[]plugin_models.GetOrgs_Model) error) {
  1145  	fake.getOrgsMutex.Lock()
  1146  	defer fake.getOrgsMutex.Unlock()
  1147  	fake.GetOrgsStub = stub
  1148  }
  1149  
  1150  func (fake *FakeHandlers) GetOrgsArgsForCall(i int) (string, *[]plugin_models.GetOrgs_Model) {
  1151  	fake.getOrgsMutex.RLock()
  1152  	defer fake.getOrgsMutex.RUnlock()
  1153  	argsForCall := fake.getOrgsArgsForCall[i]
  1154  	return argsForCall.arg1, argsForCall.arg2
  1155  }
  1156  
  1157  func (fake *FakeHandlers) GetOrgsReturns(result1 error) {
  1158  	fake.getOrgsMutex.Lock()
  1159  	defer fake.getOrgsMutex.Unlock()
  1160  	fake.GetOrgsStub = nil
  1161  	fake.getOrgsReturns = struct {
  1162  		result1 error
  1163  	}{result1}
  1164  }
  1165  
  1166  func (fake *FakeHandlers) GetOrgsReturnsOnCall(i int, result1 error) {
  1167  	fake.getOrgsMutex.Lock()
  1168  	defer fake.getOrgsMutex.Unlock()
  1169  	fake.GetOrgsStub = nil
  1170  	if fake.getOrgsReturnsOnCall == nil {
  1171  		fake.getOrgsReturnsOnCall = make(map[int]struct {
  1172  			result1 error
  1173  		})
  1174  	}
  1175  	fake.getOrgsReturnsOnCall[i] = struct {
  1176  		result1 error
  1177  	}{result1}
  1178  }
  1179  
  1180  func (fake *FakeHandlers) GetOutputAndReset(arg1 bool, arg2 *[]string) error {
  1181  	fake.getOutputAndResetMutex.Lock()
  1182  	ret, specificReturn := fake.getOutputAndResetReturnsOnCall[len(fake.getOutputAndResetArgsForCall)]
  1183  	fake.getOutputAndResetArgsForCall = append(fake.getOutputAndResetArgsForCall, struct {
  1184  		arg1 bool
  1185  		arg2 *[]string
  1186  	}{arg1, arg2})
  1187  	fake.recordInvocation("GetOutputAndReset", []interface{}{arg1, arg2})
  1188  	fake.getOutputAndResetMutex.Unlock()
  1189  	if fake.GetOutputAndResetStub != nil {
  1190  		return fake.GetOutputAndResetStub(arg1, arg2)
  1191  	}
  1192  	if specificReturn {
  1193  		return ret.result1
  1194  	}
  1195  	fakeReturns := fake.getOutputAndResetReturns
  1196  	return fakeReturns.result1
  1197  }
  1198  
  1199  func (fake *FakeHandlers) GetOutputAndResetCallCount() int {
  1200  	fake.getOutputAndResetMutex.RLock()
  1201  	defer fake.getOutputAndResetMutex.RUnlock()
  1202  	return len(fake.getOutputAndResetArgsForCall)
  1203  }
  1204  
  1205  func (fake *FakeHandlers) GetOutputAndResetCalls(stub func(bool, *[]string) error) {
  1206  	fake.getOutputAndResetMutex.Lock()
  1207  	defer fake.getOutputAndResetMutex.Unlock()
  1208  	fake.GetOutputAndResetStub = stub
  1209  }
  1210  
  1211  func (fake *FakeHandlers) GetOutputAndResetArgsForCall(i int) (bool, *[]string) {
  1212  	fake.getOutputAndResetMutex.RLock()
  1213  	defer fake.getOutputAndResetMutex.RUnlock()
  1214  	argsForCall := fake.getOutputAndResetArgsForCall[i]
  1215  	return argsForCall.arg1, argsForCall.arg2
  1216  }
  1217  
  1218  func (fake *FakeHandlers) GetOutputAndResetReturns(result1 error) {
  1219  	fake.getOutputAndResetMutex.Lock()
  1220  	defer fake.getOutputAndResetMutex.Unlock()
  1221  	fake.GetOutputAndResetStub = nil
  1222  	fake.getOutputAndResetReturns = struct {
  1223  		result1 error
  1224  	}{result1}
  1225  }
  1226  
  1227  func (fake *FakeHandlers) GetOutputAndResetReturnsOnCall(i int, result1 error) {
  1228  	fake.getOutputAndResetMutex.Lock()
  1229  	defer fake.getOutputAndResetMutex.Unlock()
  1230  	fake.GetOutputAndResetStub = nil
  1231  	if fake.getOutputAndResetReturnsOnCall == nil {
  1232  		fake.getOutputAndResetReturnsOnCall = make(map[int]struct {
  1233  			result1 error
  1234  		})
  1235  	}
  1236  	fake.getOutputAndResetReturnsOnCall[i] = struct {
  1237  		result1 error
  1238  	}{result1}
  1239  }
  1240  
  1241  func (fake *FakeHandlers) GetService(arg1 string, arg2 *plugin_models.GetService_Model) error {
  1242  	fake.getServiceMutex.Lock()
  1243  	ret, specificReturn := fake.getServiceReturnsOnCall[len(fake.getServiceArgsForCall)]
  1244  	fake.getServiceArgsForCall = append(fake.getServiceArgsForCall, struct {
  1245  		arg1 string
  1246  		arg2 *plugin_models.GetService_Model
  1247  	}{arg1, arg2})
  1248  	fake.recordInvocation("GetService", []interface{}{arg1, arg2})
  1249  	fake.getServiceMutex.Unlock()
  1250  	if fake.GetServiceStub != nil {
  1251  		return fake.GetServiceStub(arg1, arg2)
  1252  	}
  1253  	if specificReturn {
  1254  		return ret.result1
  1255  	}
  1256  	fakeReturns := fake.getServiceReturns
  1257  	return fakeReturns.result1
  1258  }
  1259  
  1260  func (fake *FakeHandlers) GetServiceCallCount() int {
  1261  	fake.getServiceMutex.RLock()
  1262  	defer fake.getServiceMutex.RUnlock()
  1263  	return len(fake.getServiceArgsForCall)
  1264  }
  1265  
  1266  func (fake *FakeHandlers) GetServiceCalls(stub func(string, *plugin_models.GetService_Model) error) {
  1267  	fake.getServiceMutex.Lock()
  1268  	defer fake.getServiceMutex.Unlock()
  1269  	fake.GetServiceStub = stub
  1270  }
  1271  
  1272  func (fake *FakeHandlers) GetServiceArgsForCall(i int) (string, *plugin_models.GetService_Model) {
  1273  	fake.getServiceMutex.RLock()
  1274  	defer fake.getServiceMutex.RUnlock()
  1275  	argsForCall := fake.getServiceArgsForCall[i]
  1276  	return argsForCall.arg1, argsForCall.arg2
  1277  }
  1278  
  1279  func (fake *FakeHandlers) GetServiceReturns(result1 error) {
  1280  	fake.getServiceMutex.Lock()
  1281  	defer fake.getServiceMutex.Unlock()
  1282  	fake.GetServiceStub = nil
  1283  	fake.getServiceReturns = struct {
  1284  		result1 error
  1285  	}{result1}
  1286  }
  1287  
  1288  func (fake *FakeHandlers) GetServiceReturnsOnCall(i int, result1 error) {
  1289  	fake.getServiceMutex.Lock()
  1290  	defer fake.getServiceMutex.Unlock()
  1291  	fake.GetServiceStub = nil
  1292  	if fake.getServiceReturnsOnCall == nil {
  1293  		fake.getServiceReturnsOnCall = make(map[int]struct {
  1294  			result1 error
  1295  		})
  1296  	}
  1297  	fake.getServiceReturnsOnCall[i] = struct {
  1298  		result1 error
  1299  	}{result1}
  1300  }
  1301  
  1302  func (fake *FakeHandlers) GetServices(arg1 string, arg2 *[]plugin_models.GetServices_Model) error {
  1303  	fake.getServicesMutex.Lock()
  1304  	ret, specificReturn := fake.getServicesReturnsOnCall[len(fake.getServicesArgsForCall)]
  1305  	fake.getServicesArgsForCall = append(fake.getServicesArgsForCall, struct {
  1306  		arg1 string
  1307  		arg2 *[]plugin_models.GetServices_Model
  1308  	}{arg1, arg2})
  1309  	fake.recordInvocation("GetServices", []interface{}{arg1, arg2})
  1310  	fake.getServicesMutex.Unlock()
  1311  	if fake.GetServicesStub != nil {
  1312  		return fake.GetServicesStub(arg1, arg2)
  1313  	}
  1314  	if specificReturn {
  1315  		return ret.result1
  1316  	}
  1317  	fakeReturns := fake.getServicesReturns
  1318  	return fakeReturns.result1
  1319  }
  1320  
  1321  func (fake *FakeHandlers) GetServicesCallCount() int {
  1322  	fake.getServicesMutex.RLock()
  1323  	defer fake.getServicesMutex.RUnlock()
  1324  	return len(fake.getServicesArgsForCall)
  1325  }
  1326  
  1327  func (fake *FakeHandlers) GetServicesCalls(stub func(string, *[]plugin_models.GetServices_Model) error) {
  1328  	fake.getServicesMutex.Lock()
  1329  	defer fake.getServicesMutex.Unlock()
  1330  	fake.GetServicesStub = stub
  1331  }
  1332  
  1333  func (fake *FakeHandlers) GetServicesArgsForCall(i int) (string, *[]plugin_models.GetServices_Model) {
  1334  	fake.getServicesMutex.RLock()
  1335  	defer fake.getServicesMutex.RUnlock()
  1336  	argsForCall := fake.getServicesArgsForCall[i]
  1337  	return argsForCall.arg1, argsForCall.arg2
  1338  }
  1339  
  1340  func (fake *FakeHandlers) GetServicesReturns(result1 error) {
  1341  	fake.getServicesMutex.Lock()
  1342  	defer fake.getServicesMutex.Unlock()
  1343  	fake.GetServicesStub = nil
  1344  	fake.getServicesReturns = struct {
  1345  		result1 error
  1346  	}{result1}
  1347  }
  1348  
  1349  func (fake *FakeHandlers) GetServicesReturnsOnCall(i int, result1 error) {
  1350  	fake.getServicesMutex.Lock()
  1351  	defer fake.getServicesMutex.Unlock()
  1352  	fake.GetServicesStub = nil
  1353  	if fake.getServicesReturnsOnCall == nil {
  1354  		fake.getServicesReturnsOnCall = make(map[int]struct {
  1355  			result1 error
  1356  		})
  1357  	}
  1358  	fake.getServicesReturnsOnCall[i] = struct {
  1359  		result1 error
  1360  	}{result1}
  1361  }
  1362  
  1363  func (fake *FakeHandlers) GetSpace(arg1 string, arg2 *plugin_models.GetSpace_Model) error {
  1364  	fake.getSpaceMutex.Lock()
  1365  	ret, specificReturn := fake.getSpaceReturnsOnCall[len(fake.getSpaceArgsForCall)]
  1366  	fake.getSpaceArgsForCall = append(fake.getSpaceArgsForCall, struct {
  1367  		arg1 string
  1368  		arg2 *plugin_models.GetSpace_Model
  1369  	}{arg1, arg2})
  1370  	fake.recordInvocation("GetSpace", []interface{}{arg1, arg2})
  1371  	fake.getSpaceMutex.Unlock()
  1372  	if fake.GetSpaceStub != nil {
  1373  		return fake.GetSpaceStub(arg1, arg2)
  1374  	}
  1375  	if specificReturn {
  1376  		return ret.result1
  1377  	}
  1378  	fakeReturns := fake.getSpaceReturns
  1379  	return fakeReturns.result1
  1380  }
  1381  
  1382  func (fake *FakeHandlers) GetSpaceCallCount() int {
  1383  	fake.getSpaceMutex.RLock()
  1384  	defer fake.getSpaceMutex.RUnlock()
  1385  	return len(fake.getSpaceArgsForCall)
  1386  }
  1387  
  1388  func (fake *FakeHandlers) GetSpaceCalls(stub func(string, *plugin_models.GetSpace_Model) error) {
  1389  	fake.getSpaceMutex.Lock()
  1390  	defer fake.getSpaceMutex.Unlock()
  1391  	fake.GetSpaceStub = stub
  1392  }
  1393  
  1394  func (fake *FakeHandlers) GetSpaceArgsForCall(i int) (string, *plugin_models.GetSpace_Model) {
  1395  	fake.getSpaceMutex.RLock()
  1396  	defer fake.getSpaceMutex.RUnlock()
  1397  	argsForCall := fake.getSpaceArgsForCall[i]
  1398  	return argsForCall.arg1, argsForCall.arg2
  1399  }
  1400  
  1401  func (fake *FakeHandlers) GetSpaceReturns(result1 error) {
  1402  	fake.getSpaceMutex.Lock()
  1403  	defer fake.getSpaceMutex.Unlock()
  1404  	fake.GetSpaceStub = nil
  1405  	fake.getSpaceReturns = struct {
  1406  		result1 error
  1407  	}{result1}
  1408  }
  1409  
  1410  func (fake *FakeHandlers) GetSpaceReturnsOnCall(i int, result1 error) {
  1411  	fake.getSpaceMutex.Lock()
  1412  	defer fake.getSpaceMutex.Unlock()
  1413  	fake.GetSpaceStub = nil
  1414  	if fake.getSpaceReturnsOnCall == nil {
  1415  		fake.getSpaceReturnsOnCall = make(map[int]struct {
  1416  			result1 error
  1417  		})
  1418  	}
  1419  	fake.getSpaceReturnsOnCall[i] = struct {
  1420  		result1 error
  1421  	}{result1}
  1422  }
  1423  
  1424  func (fake *FakeHandlers) GetSpaceUsers(arg1 []string, arg2 *[]plugin_models.GetSpaceUsers_Model) error {
  1425  	var arg1Copy []string
  1426  	if arg1 != nil {
  1427  		arg1Copy = make([]string, len(arg1))
  1428  		copy(arg1Copy, arg1)
  1429  	}
  1430  	fake.getSpaceUsersMutex.Lock()
  1431  	ret, specificReturn := fake.getSpaceUsersReturnsOnCall[len(fake.getSpaceUsersArgsForCall)]
  1432  	fake.getSpaceUsersArgsForCall = append(fake.getSpaceUsersArgsForCall, struct {
  1433  		arg1 []string
  1434  		arg2 *[]plugin_models.GetSpaceUsers_Model
  1435  	}{arg1Copy, arg2})
  1436  	fake.recordInvocation("GetSpaceUsers", []interface{}{arg1Copy, arg2})
  1437  	fake.getSpaceUsersMutex.Unlock()
  1438  	if fake.GetSpaceUsersStub != nil {
  1439  		return fake.GetSpaceUsersStub(arg1, arg2)
  1440  	}
  1441  	if specificReturn {
  1442  		return ret.result1
  1443  	}
  1444  	fakeReturns := fake.getSpaceUsersReturns
  1445  	return fakeReturns.result1
  1446  }
  1447  
  1448  func (fake *FakeHandlers) GetSpaceUsersCallCount() int {
  1449  	fake.getSpaceUsersMutex.RLock()
  1450  	defer fake.getSpaceUsersMutex.RUnlock()
  1451  	return len(fake.getSpaceUsersArgsForCall)
  1452  }
  1453  
  1454  func (fake *FakeHandlers) GetSpaceUsersCalls(stub func([]string, *[]plugin_models.GetSpaceUsers_Model) error) {
  1455  	fake.getSpaceUsersMutex.Lock()
  1456  	defer fake.getSpaceUsersMutex.Unlock()
  1457  	fake.GetSpaceUsersStub = stub
  1458  }
  1459  
  1460  func (fake *FakeHandlers) GetSpaceUsersArgsForCall(i int) ([]string, *[]plugin_models.GetSpaceUsers_Model) {
  1461  	fake.getSpaceUsersMutex.RLock()
  1462  	defer fake.getSpaceUsersMutex.RUnlock()
  1463  	argsForCall := fake.getSpaceUsersArgsForCall[i]
  1464  	return argsForCall.arg1, argsForCall.arg2
  1465  }
  1466  
  1467  func (fake *FakeHandlers) GetSpaceUsersReturns(result1 error) {
  1468  	fake.getSpaceUsersMutex.Lock()
  1469  	defer fake.getSpaceUsersMutex.Unlock()
  1470  	fake.GetSpaceUsersStub = nil
  1471  	fake.getSpaceUsersReturns = struct {
  1472  		result1 error
  1473  	}{result1}
  1474  }
  1475  
  1476  func (fake *FakeHandlers) GetSpaceUsersReturnsOnCall(i int, result1 error) {
  1477  	fake.getSpaceUsersMutex.Lock()
  1478  	defer fake.getSpaceUsersMutex.Unlock()
  1479  	fake.GetSpaceUsersStub = nil
  1480  	if fake.getSpaceUsersReturnsOnCall == nil {
  1481  		fake.getSpaceUsersReturnsOnCall = make(map[int]struct {
  1482  			result1 error
  1483  		})
  1484  	}
  1485  	fake.getSpaceUsersReturnsOnCall[i] = struct {
  1486  		result1 error
  1487  	}{result1}
  1488  }
  1489  
  1490  func (fake *FakeHandlers) GetSpaces(arg1 string, arg2 *[]plugin_models.GetSpaces_Model) error {
  1491  	fake.getSpacesMutex.Lock()
  1492  	ret, specificReturn := fake.getSpacesReturnsOnCall[len(fake.getSpacesArgsForCall)]
  1493  	fake.getSpacesArgsForCall = append(fake.getSpacesArgsForCall, struct {
  1494  		arg1 string
  1495  		arg2 *[]plugin_models.GetSpaces_Model
  1496  	}{arg1, arg2})
  1497  	fake.recordInvocation("GetSpaces", []interface{}{arg1, arg2})
  1498  	fake.getSpacesMutex.Unlock()
  1499  	if fake.GetSpacesStub != nil {
  1500  		return fake.GetSpacesStub(arg1, arg2)
  1501  	}
  1502  	if specificReturn {
  1503  		return ret.result1
  1504  	}
  1505  	fakeReturns := fake.getSpacesReturns
  1506  	return fakeReturns.result1
  1507  }
  1508  
  1509  func (fake *FakeHandlers) GetSpacesCallCount() int {
  1510  	fake.getSpacesMutex.RLock()
  1511  	defer fake.getSpacesMutex.RUnlock()
  1512  	return len(fake.getSpacesArgsForCall)
  1513  }
  1514  
  1515  func (fake *FakeHandlers) GetSpacesCalls(stub func(string, *[]plugin_models.GetSpaces_Model) error) {
  1516  	fake.getSpacesMutex.Lock()
  1517  	defer fake.getSpacesMutex.Unlock()
  1518  	fake.GetSpacesStub = stub
  1519  }
  1520  
  1521  func (fake *FakeHandlers) GetSpacesArgsForCall(i int) (string, *[]plugin_models.GetSpaces_Model) {
  1522  	fake.getSpacesMutex.RLock()
  1523  	defer fake.getSpacesMutex.RUnlock()
  1524  	argsForCall := fake.getSpacesArgsForCall[i]
  1525  	return argsForCall.arg1, argsForCall.arg2
  1526  }
  1527  
  1528  func (fake *FakeHandlers) GetSpacesReturns(result1 error) {
  1529  	fake.getSpacesMutex.Lock()
  1530  	defer fake.getSpacesMutex.Unlock()
  1531  	fake.GetSpacesStub = nil
  1532  	fake.getSpacesReturns = struct {
  1533  		result1 error
  1534  	}{result1}
  1535  }
  1536  
  1537  func (fake *FakeHandlers) GetSpacesReturnsOnCall(i int, result1 error) {
  1538  	fake.getSpacesMutex.Lock()
  1539  	defer fake.getSpacesMutex.Unlock()
  1540  	fake.GetSpacesStub = nil
  1541  	if fake.getSpacesReturnsOnCall == nil {
  1542  		fake.getSpacesReturnsOnCall = make(map[int]struct {
  1543  			result1 error
  1544  		})
  1545  	}
  1546  	fake.getSpacesReturnsOnCall[i] = struct {
  1547  		result1 error
  1548  	}{result1}
  1549  }
  1550  
  1551  func (fake *FakeHandlers) HasAPIEndpoint(arg1 string, arg2 *bool) error {
  1552  	fake.hasAPIEndpointMutex.Lock()
  1553  	ret, specificReturn := fake.hasAPIEndpointReturnsOnCall[len(fake.hasAPIEndpointArgsForCall)]
  1554  	fake.hasAPIEndpointArgsForCall = append(fake.hasAPIEndpointArgsForCall, struct {
  1555  		arg1 string
  1556  		arg2 *bool
  1557  	}{arg1, arg2})
  1558  	fake.recordInvocation("HasAPIEndpoint", []interface{}{arg1, arg2})
  1559  	fake.hasAPIEndpointMutex.Unlock()
  1560  	if fake.HasAPIEndpointStub != nil {
  1561  		return fake.HasAPIEndpointStub(arg1, arg2)
  1562  	}
  1563  	if specificReturn {
  1564  		return ret.result1
  1565  	}
  1566  	fakeReturns := fake.hasAPIEndpointReturns
  1567  	return fakeReturns.result1
  1568  }
  1569  
  1570  func (fake *FakeHandlers) HasAPIEndpointCallCount() int {
  1571  	fake.hasAPIEndpointMutex.RLock()
  1572  	defer fake.hasAPIEndpointMutex.RUnlock()
  1573  	return len(fake.hasAPIEndpointArgsForCall)
  1574  }
  1575  
  1576  func (fake *FakeHandlers) HasAPIEndpointCalls(stub func(string, *bool) error) {
  1577  	fake.hasAPIEndpointMutex.Lock()
  1578  	defer fake.hasAPIEndpointMutex.Unlock()
  1579  	fake.HasAPIEndpointStub = stub
  1580  }
  1581  
  1582  func (fake *FakeHandlers) HasAPIEndpointArgsForCall(i int) (string, *bool) {
  1583  	fake.hasAPIEndpointMutex.RLock()
  1584  	defer fake.hasAPIEndpointMutex.RUnlock()
  1585  	argsForCall := fake.hasAPIEndpointArgsForCall[i]
  1586  	return argsForCall.arg1, argsForCall.arg2
  1587  }
  1588  
  1589  func (fake *FakeHandlers) HasAPIEndpointReturns(result1 error) {
  1590  	fake.hasAPIEndpointMutex.Lock()
  1591  	defer fake.hasAPIEndpointMutex.Unlock()
  1592  	fake.HasAPIEndpointStub = nil
  1593  	fake.hasAPIEndpointReturns = struct {
  1594  		result1 error
  1595  	}{result1}
  1596  }
  1597  
  1598  func (fake *FakeHandlers) HasAPIEndpointReturnsOnCall(i int, result1 error) {
  1599  	fake.hasAPIEndpointMutex.Lock()
  1600  	defer fake.hasAPIEndpointMutex.Unlock()
  1601  	fake.HasAPIEndpointStub = nil
  1602  	if fake.hasAPIEndpointReturnsOnCall == nil {
  1603  		fake.hasAPIEndpointReturnsOnCall = make(map[int]struct {
  1604  			result1 error
  1605  		})
  1606  	}
  1607  	fake.hasAPIEndpointReturnsOnCall[i] = struct {
  1608  		result1 error
  1609  	}{result1}
  1610  }
  1611  
  1612  func (fake *FakeHandlers) HasOrganization(arg1 string, arg2 *bool) error {
  1613  	fake.hasOrganizationMutex.Lock()
  1614  	ret, specificReturn := fake.hasOrganizationReturnsOnCall[len(fake.hasOrganizationArgsForCall)]
  1615  	fake.hasOrganizationArgsForCall = append(fake.hasOrganizationArgsForCall, struct {
  1616  		arg1 string
  1617  		arg2 *bool
  1618  	}{arg1, arg2})
  1619  	fake.recordInvocation("HasOrganization", []interface{}{arg1, arg2})
  1620  	fake.hasOrganizationMutex.Unlock()
  1621  	if fake.HasOrganizationStub != nil {
  1622  		return fake.HasOrganizationStub(arg1, arg2)
  1623  	}
  1624  	if specificReturn {
  1625  		return ret.result1
  1626  	}
  1627  	fakeReturns := fake.hasOrganizationReturns
  1628  	return fakeReturns.result1
  1629  }
  1630  
  1631  func (fake *FakeHandlers) HasOrganizationCallCount() int {
  1632  	fake.hasOrganizationMutex.RLock()
  1633  	defer fake.hasOrganizationMutex.RUnlock()
  1634  	return len(fake.hasOrganizationArgsForCall)
  1635  }
  1636  
  1637  func (fake *FakeHandlers) HasOrganizationCalls(stub func(string, *bool) error) {
  1638  	fake.hasOrganizationMutex.Lock()
  1639  	defer fake.hasOrganizationMutex.Unlock()
  1640  	fake.HasOrganizationStub = stub
  1641  }
  1642  
  1643  func (fake *FakeHandlers) HasOrganizationArgsForCall(i int) (string, *bool) {
  1644  	fake.hasOrganizationMutex.RLock()
  1645  	defer fake.hasOrganizationMutex.RUnlock()
  1646  	argsForCall := fake.hasOrganizationArgsForCall[i]
  1647  	return argsForCall.arg1, argsForCall.arg2
  1648  }
  1649  
  1650  func (fake *FakeHandlers) HasOrganizationReturns(result1 error) {
  1651  	fake.hasOrganizationMutex.Lock()
  1652  	defer fake.hasOrganizationMutex.Unlock()
  1653  	fake.HasOrganizationStub = nil
  1654  	fake.hasOrganizationReturns = struct {
  1655  		result1 error
  1656  	}{result1}
  1657  }
  1658  
  1659  func (fake *FakeHandlers) HasOrganizationReturnsOnCall(i int, result1 error) {
  1660  	fake.hasOrganizationMutex.Lock()
  1661  	defer fake.hasOrganizationMutex.Unlock()
  1662  	fake.HasOrganizationStub = nil
  1663  	if fake.hasOrganizationReturnsOnCall == nil {
  1664  		fake.hasOrganizationReturnsOnCall = make(map[int]struct {
  1665  			result1 error
  1666  		})
  1667  	}
  1668  	fake.hasOrganizationReturnsOnCall[i] = struct {
  1669  		result1 error
  1670  	}{result1}
  1671  }
  1672  
  1673  func (fake *FakeHandlers) HasSpace(arg1 string, arg2 *bool) error {
  1674  	fake.hasSpaceMutex.Lock()
  1675  	ret, specificReturn := fake.hasSpaceReturnsOnCall[len(fake.hasSpaceArgsForCall)]
  1676  	fake.hasSpaceArgsForCall = append(fake.hasSpaceArgsForCall, struct {
  1677  		arg1 string
  1678  		arg2 *bool
  1679  	}{arg1, arg2})
  1680  	fake.recordInvocation("HasSpace", []interface{}{arg1, arg2})
  1681  	fake.hasSpaceMutex.Unlock()
  1682  	if fake.HasSpaceStub != nil {
  1683  		return fake.HasSpaceStub(arg1, arg2)
  1684  	}
  1685  	if specificReturn {
  1686  		return ret.result1
  1687  	}
  1688  	fakeReturns := fake.hasSpaceReturns
  1689  	return fakeReturns.result1
  1690  }
  1691  
  1692  func (fake *FakeHandlers) HasSpaceCallCount() int {
  1693  	fake.hasSpaceMutex.RLock()
  1694  	defer fake.hasSpaceMutex.RUnlock()
  1695  	return len(fake.hasSpaceArgsForCall)
  1696  }
  1697  
  1698  func (fake *FakeHandlers) HasSpaceCalls(stub func(string, *bool) error) {
  1699  	fake.hasSpaceMutex.Lock()
  1700  	defer fake.hasSpaceMutex.Unlock()
  1701  	fake.HasSpaceStub = stub
  1702  }
  1703  
  1704  func (fake *FakeHandlers) HasSpaceArgsForCall(i int) (string, *bool) {
  1705  	fake.hasSpaceMutex.RLock()
  1706  	defer fake.hasSpaceMutex.RUnlock()
  1707  	argsForCall := fake.hasSpaceArgsForCall[i]
  1708  	return argsForCall.arg1, argsForCall.arg2
  1709  }
  1710  
  1711  func (fake *FakeHandlers) HasSpaceReturns(result1 error) {
  1712  	fake.hasSpaceMutex.Lock()
  1713  	defer fake.hasSpaceMutex.Unlock()
  1714  	fake.HasSpaceStub = nil
  1715  	fake.hasSpaceReturns = struct {
  1716  		result1 error
  1717  	}{result1}
  1718  }
  1719  
  1720  func (fake *FakeHandlers) HasSpaceReturnsOnCall(i int, result1 error) {
  1721  	fake.hasSpaceMutex.Lock()
  1722  	defer fake.hasSpaceMutex.Unlock()
  1723  	fake.HasSpaceStub = nil
  1724  	if fake.hasSpaceReturnsOnCall == nil {
  1725  		fake.hasSpaceReturnsOnCall = make(map[int]struct {
  1726  			result1 error
  1727  		})
  1728  	}
  1729  	fake.hasSpaceReturnsOnCall[i] = struct {
  1730  		result1 error
  1731  	}{result1}
  1732  }
  1733  
  1734  func (fake *FakeHandlers) IsLoggedIn(arg1 string, arg2 *bool) error {
  1735  	fake.isLoggedInMutex.Lock()
  1736  	ret, specificReturn := fake.isLoggedInReturnsOnCall[len(fake.isLoggedInArgsForCall)]
  1737  	fake.isLoggedInArgsForCall = append(fake.isLoggedInArgsForCall, struct {
  1738  		arg1 string
  1739  		arg2 *bool
  1740  	}{arg1, arg2})
  1741  	fake.recordInvocation("IsLoggedIn", []interface{}{arg1, arg2})
  1742  	fake.isLoggedInMutex.Unlock()
  1743  	if fake.IsLoggedInStub != nil {
  1744  		return fake.IsLoggedInStub(arg1, arg2)
  1745  	}
  1746  	if specificReturn {
  1747  		return ret.result1
  1748  	}
  1749  	fakeReturns := fake.isLoggedInReturns
  1750  	return fakeReturns.result1
  1751  }
  1752  
  1753  func (fake *FakeHandlers) IsLoggedInCallCount() int {
  1754  	fake.isLoggedInMutex.RLock()
  1755  	defer fake.isLoggedInMutex.RUnlock()
  1756  	return len(fake.isLoggedInArgsForCall)
  1757  }
  1758  
  1759  func (fake *FakeHandlers) IsLoggedInCalls(stub func(string, *bool) error) {
  1760  	fake.isLoggedInMutex.Lock()
  1761  	defer fake.isLoggedInMutex.Unlock()
  1762  	fake.IsLoggedInStub = stub
  1763  }
  1764  
  1765  func (fake *FakeHandlers) IsLoggedInArgsForCall(i int) (string, *bool) {
  1766  	fake.isLoggedInMutex.RLock()
  1767  	defer fake.isLoggedInMutex.RUnlock()
  1768  	argsForCall := fake.isLoggedInArgsForCall[i]
  1769  	return argsForCall.arg1, argsForCall.arg2
  1770  }
  1771  
  1772  func (fake *FakeHandlers) IsLoggedInReturns(result1 error) {
  1773  	fake.isLoggedInMutex.Lock()
  1774  	defer fake.isLoggedInMutex.Unlock()
  1775  	fake.IsLoggedInStub = nil
  1776  	fake.isLoggedInReturns = struct {
  1777  		result1 error
  1778  	}{result1}
  1779  }
  1780  
  1781  func (fake *FakeHandlers) IsLoggedInReturnsOnCall(i int, result1 error) {
  1782  	fake.isLoggedInMutex.Lock()
  1783  	defer fake.isLoggedInMutex.Unlock()
  1784  	fake.IsLoggedInStub = nil
  1785  	if fake.isLoggedInReturnsOnCall == nil {
  1786  		fake.isLoggedInReturnsOnCall = make(map[int]struct {
  1787  			result1 error
  1788  		})
  1789  	}
  1790  	fake.isLoggedInReturnsOnCall[i] = struct {
  1791  		result1 error
  1792  	}{result1}
  1793  }
  1794  
  1795  func (fake *FakeHandlers) IsMinCliVersion(arg1 string, arg2 *bool) error {
  1796  	fake.isMinCliVersionMutex.Lock()
  1797  	ret, specificReturn := fake.isMinCliVersionReturnsOnCall[len(fake.isMinCliVersionArgsForCall)]
  1798  	fake.isMinCliVersionArgsForCall = append(fake.isMinCliVersionArgsForCall, struct {
  1799  		arg1 string
  1800  		arg2 *bool
  1801  	}{arg1, arg2})
  1802  	fake.recordInvocation("IsMinCliVersion", []interface{}{arg1, arg2})
  1803  	fake.isMinCliVersionMutex.Unlock()
  1804  	if fake.IsMinCliVersionStub != nil {
  1805  		return fake.IsMinCliVersionStub(arg1, arg2)
  1806  	}
  1807  	if specificReturn {
  1808  		return ret.result1
  1809  	}
  1810  	fakeReturns := fake.isMinCliVersionReturns
  1811  	return fakeReturns.result1
  1812  }
  1813  
  1814  func (fake *FakeHandlers) IsMinCliVersionCallCount() int {
  1815  	fake.isMinCliVersionMutex.RLock()
  1816  	defer fake.isMinCliVersionMutex.RUnlock()
  1817  	return len(fake.isMinCliVersionArgsForCall)
  1818  }
  1819  
  1820  func (fake *FakeHandlers) IsMinCliVersionCalls(stub func(string, *bool) error) {
  1821  	fake.isMinCliVersionMutex.Lock()
  1822  	defer fake.isMinCliVersionMutex.Unlock()
  1823  	fake.IsMinCliVersionStub = stub
  1824  }
  1825  
  1826  func (fake *FakeHandlers) IsMinCliVersionArgsForCall(i int) (string, *bool) {
  1827  	fake.isMinCliVersionMutex.RLock()
  1828  	defer fake.isMinCliVersionMutex.RUnlock()
  1829  	argsForCall := fake.isMinCliVersionArgsForCall[i]
  1830  	return argsForCall.arg1, argsForCall.arg2
  1831  }
  1832  
  1833  func (fake *FakeHandlers) IsMinCliVersionReturns(result1 error) {
  1834  	fake.isMinCliVersionMutex.Lock()
  1835  	defer fake.isMinCliVersionMutex.Unlock()
  1836  	fake.IsMinCliVersionStub = nil
  1837  	fake.isMinCliVersionReturns = struct {
  1838  		result1 error
  1839  	}{result1}
  1840  }
  1841  
  1842  func (fake *FakeHandlers) IsMinCliVersionReturnsOnCall(i int, result1 error) {
  1843  	fake.isMinCliVersionMutex.Lock()
  1844  	defer fake.isMinCliVersionMutex.Unlock()
  1845  	fake.IsMinCliVersionStub = nil
  1846  	if fake.isMinCliVersionReturnsOnCall == nil {
  1847  		fake.isMinCliVersionReturnsOnCall = make(map[int]struct {
  1848  			result1 error
  1849  		})
  1850  	}
  1851  	fake.isMinCliVersionReturnsOnCall[i] = struct {
  1852  		result1 error
  1853  	}{result1}
  1854  }
  1855  
  1856  func (fake *FakeHandlers) IsSSLDisabled(arg1 string, arg2 *bool) error {
  1857  	fake.isSSLDisabledMutex.Lock()
  1858  	ret, specificReturn := fake.isSSLDisabledReturnsOnCall[len(fake.isSSLDisabledArgsForCall)]
  1859  	fake.isSSLDisabledArgsForCall = append(fake.isSSLDisabledArgsForCall, struct {
  1860  		arg1 string
  1861  		arg2 *bool
  1862  	}{arg1, arg2})
  1863  	fake.recordInvocation("IsSSLDisabled", []interface{}{arg1, arg2})
  1864  	fake.isSSLDisabledMutex.Unlock()
  1865  	if fake.IsSSLDisabledStub != nil {
  1866  		return fake.IsSSLDisabledStub(arg1, arg2)
  1867  	}
  1868  	if specificReturn {
  1869  		return ret.result1
  1870  	}
  1871  	fakeReturns := fake.isSSLDisabledReturns
  1872  	return fakeReturns.result1
  1873  }
  1874  
  1875  func (fake *FakeHandlers) IsSSLDisabledCallCount() int {
  1876  	fake.isSSLDisabledMutex.RLock()
  1877  	defer fake.isSSLDisabledMutex.RUnlock()
  1878  	return len(fake.isSSLDisabledArgsForCall)
  1879  }
  1880  
  1881  func (fake *FakeHandlers) IsSSLDisabledCalls(stub func(string, *bool) error) {
  1882  	fake.isSSLDisabledMutex.Lock()
  1883  	defer fake.isSSLDisabledMutex.Unlock()
  1884  	fake.IsSSLDisabledStub = stub
  1885  }
  1886  
  1887  func (fake *FakeHandlers) IsSSLDisabledArgsForCall(i int) (string, *bool) {
  1888  	fake.isSSLDisabledMutex.RLock()
  1889  	defer fake.isSSLDisabledMutex.RUnlock()
  1890  	argsForCall := fake.isSSLDisabledArgsForCall[i]
  1891  	return argsForCall.arg1, argsForCall.arg2
  1892  }
  1893  
  1894  func (fake *FakeHandlers) IsSSLDisabledReturns(result1 error) {
  1895  	fake.isSSLDisabledMutex.Lock()
  1896  	defer fake.isSSLDisabledMutex.Unlock()
  1897  	fake.IsSSLDisabledStub = nil
  1898  	fake.isSSLDisabledReturns = struct {
  1899  		result1 error
  1900  	}{result1}
  1901  }
  1902  
  1903  func (fake *FakeHandlers) IsSSLDisabledReturnsOnCall(i int, result1 error) {
  1904  	fake.isSSLDisabledMutex.Lock()
  1905  	defer fake.isSSLDisabledMutex.Unlock()
  1906  	fake.IsSSLDisabledStub = nil
  1907  	if fake.isSSLDisabledReturnsOnCall == nil {
  1908  		fake.isSSLDisabledReturnsOnCall = make(map[int]struct {
  1909  			result1 error
  1910  		})
  1911  	}
  1912  	fake.isSSLDisabledReturnsOnCall[i] = struct {
  1913  		result1 error
  1914  	}{result1}
  1915  }
  1916  
  1917  func (fake *FakeHandlers) LoggregatorEndpoint(arg1 string, arg2 *string) error {
  1918  	fake.loggregatorEndpointMutex.Lock()
  1919  	ret, specificReturn := fake.loggregatorEndpointReturnsOnCall[len(fake.loggregatorEndpointArgsForCall)]
  1920  	fake.loggregatorEndpointArgsForCall = append(fake.loggregatorEndpointArgsForCall, struct {
  1921  		arg1 string
  1922  		arg2 *string
  1923  	}{arg1, arg2})
  1924  	fake.recordInvocation("LoggregatorEndpoint", []interface{}{arg1, arg2})
  1925  	fake.loggregatorEndpointMutex.Unlock()
  1926  	if fake.LoggregatorEndpointStub != nil {
  1927  		return fake.LoggregatorEndpointStub(arg1, arg2)
  1928  	}
  1929  	if specificReturn {
  1930  		return ret.result1
  1931  	}
  1932  	fakeReturns := fake.loggregatorEndpointReturns
  1933  	return fakeReturns.result1
  1934  }
  1935  
  1936  func (fake *FakeHandlers) LoggregatorEndpointCallCount() int {
  1937  	fake.loggregatorEndpointMutex.RLock()
  1938  	defer fake.loggregatorEndpointMutex.RUnlock()
  1939  	return len(fake.loggregatorEndpointArgsForCall)
  1940  }
  1941  
  1942  func (fake *FakeHandlers) LoggregatorEndpointCalls(stub func(string, *string) error) {
  1943  	fake.loggregatorEndpointMutex.Lock()
  1944  	defer fake.loggregatorEndpointMutex.Unlock()
  1945  	fake.LoggregatorEndpointStub = stub
  1946  }
  1947  
  1948  func (fake *FakeHandlers) LoggregatorEndpointArgsForCall(i int) (string, *string) {
  1949  	fake.loggregatorEndpointMutex.RLock()
  1950  	defer fake.loggregatorEndpointMutex.RUnlock()
  1951  	argsForCall := fake.loggregatorEndpointArgsForCall[i]
  1952  	return argsForCall.arg1, argsForCall.arg2
  1953  }
  1954  
  1955  func (fake *FakeHandlers) LoggregatorEndpointReturns(result1 error) {
  1956  	fake.loggregatorEndpointMutex.Lock()
  1957  	defer fake.loggregatorEndpointMutex.Unlock()
  1958  	fake.LoggregatorEndpointStub = nil
  1959  	fake.loggregatorEndpointReturns = struct {
  1960  		result1 error
  1961  	}{result1}
  1962  }
  1963  
  1964  func (fake *FakeHandlers) LoggregatorEndpointReturnsOnCall(i int, result1 error) {
  1965  	fake.loggregatorEndpointMutex.Lock()
  1966  	defer fake.loggregatorEndpointMutex.Unlock()
  1967  	fake.LoggregatorEndpointStub = nil
  1968  	if fake.loggregatorEndpointReturnsOnCall == nil {
  1969  		fake.loggregatorEndpointReturnsOnCall = make(map[int]struct {
  1970  			result1 error
  1971  		})
  1972  	}
  1973  	fake.loggregatorEndpointReturnsOnCall[i] = struct {
  1974  		result1 error
  1975  	}{result1}
  1976  }
  1977  
  1978  func (fake *FakeHandlers) SetPluginMetadata(arg1 plugin.PluginMetadata, arg2 *bool) error {
  1979  	fake.setPluginMetadataMutex.Lock()
  1980  	ret, specificReturn := fake.setPluginMetadataReturnsOnCall[len(fake.setPluginMetadataArgsForCall)]
  1981  	fake.setPluginMetadataArgsForCall = append(fake.setPluginMetadataArgsForCall, struct {
  1982  		arg1 plugin.PluginMetadata
  1983  		arg2 *bool
  1984  	}{arg1, arg2})
  1985  	fake.recordInvocation("SetPluginMetadata", []interface{}{arg1, arg2})
  1986  	fake.setPluginMetadataMutex.Unlock()
  1987  	if fake.SetPluginMetadataStub != nil {
  1988  		return fake.SetPluginMetadataStub(arg1, arg2)
  1989  	}
  1990  	if specificReturn {
  1991  		return ret.result1
  1992  	}
  1993  	fakeReturns := fake.setPluginMetadataReturns
  1994  	return fakeReturns.result1
  1995  }
  1996  
  1997  func (fake *FakeHandlers) SetPluginMetadataCallCount() int {
  1998  	fake.setPluginMetadataMutex.RLock()
  1999  	defer fake.setPluginMetadataMutex.RUnlock()
  2000  	return len(fake.setPluginMetadataArgsForCall)
  2001  }
  2002  
  2003  func (fake *FakeHandlers) SetPluginMetadataCalls(stub func(plugin.PluginMetadata, *bool) error) {
  2004  	fake.setPluginMetadataMutex.Lock()
  2005  	defer fake.setPluginMetadataMutex.Unlock()
  2006  	fake.SetPluginMetadataStub = stub
  2007  }
  2008  
  2009  func (fake *FakeHandlers) SetPluginMetadataArgsForCall(i int) (plugin.PluginMetadata, *bool) {
  2010  	fake.setPluginMetadataMutex.RLock()
  2011  	defer fake.setPluginMetadataMutex.RUnlock()
  2012  	argsForCall := fake.setPluginMetadataArgsForCall[i]
  2013  	return argsForCall.arg1, argsForCall.arg2
  2014  }
  2015  
  2016  func (fake *FakeHandlers) SetPluginMetadataReturns(result1 error) {
  2017  	fake.setPluginMetadataMutex.Lock()
  2018  	defer fake.setPluginMetadataMutex.Unlock()
  2019  	fake.SetPluginMetadataStub = nil
  2020  	fake.setPluginMetadataReturns = struct {
  2021  		result1 error
  2022  	}{result1}
  2023  }
  2024  
  2025  func (fake *FakeHandlers) SetPluginMetadataReturnsOnCall(i int, result1 error) {
  2026  	fake.setPluginMetadataMutex.Lock()
  2027  	defer fake.setPluginMetadataMutex.Unlock()
  2028  	fake.SetPluginMetadataStub = nil
  2029  	if fake.setPluginMetadataReturnsOnCall == nil {
  2030  		fake.setPluginMetadataReturnsOnCall = make(map[int]struct {
  2031  			result1 error
  2032  		})
  2033  	}
  2034  	fake.setPluginMetadataReturnsOnCall[i] = struct {
  2035  		result1 error
  2036  	}{result1}
  2037  }
  2038  
  2039  func (fake *FakeHandlers) UserEmail(arg1 string, arg2 *string) error {
  2040  	fake.userEmailMutex.Lock()
  2041  	ret, specificReturn := fake.userEmailReturnsOnCall[len(fake.userEmailArgsForCall)]
  2042  	fake.userEmailArgsForCall = append(fake.userEmailArgsForCall, struct {
  2043  		arg1 string
  2044  		arg2 *string
  2045  	}{arg1, arg2})
  2046  	fake.recordInvocation("UserEmail", []interface{}{arg1, arg2})
  2047  	fake.userEmailMutex.Unlock()
  2048  	if fake.UserEmailStub != nil {
  2049  		return fake.UserEmailStub(arg1, arg2)
  2050  	}
  2051  	if specificReturn {
  2052  		return ret.result1
  2053  	}
  2054  	fakeReturns := fake.userEmailReturns
  2055  	return fakeReturns.result1
  2056  }
  2057  
  2058  func (fake *FakeHandlers) UserEmailCallCount() int {
  2059  	fake.userEmailMutex.RLock()
  2060  	defer fake.userEmailMutex.RUnlock()
  2061  	return len(fake.userEmailArgsForCall)
  2062  }
  2063  
  2064  func (fake *FakeHandlers) UserEmailCalls(stub func(string, *string) error) {
  2065  	fake.userEmailMutex.Lock()
  2066  	defer fake.userEmailMutex.Unlock()
  2067  	fake.UserEmailStub = stub
  2068  }
  2069  
  2070  func (fake *FakeHandlers) UserEmailArgsForCall(i int) (string, *string) {
  2071  	fake.userEmailMutex.RLock()
  2072  	defer fake.userEmailMutex.RUnlock()
  2073  	argsForCall := fake.userEmailArgsForCall[i]
  2074  	return argsForCall.arg1, argsForCall.arg2
  2075  }
  2076  
  2077  func (fake *FakeHandlers) UserEmailReturns(result1 error) {
  2078  	fake.userEmailMutex.Lock()
  2079  	defer fake.userEmailMutex.Unlock()
  2080  	fake.UserEmailStub = nil
  2081  	fake.userEmailReturns = struct {
  2082  		result1 error
  2083  	}{result1}
  2084  }
  2085  
  2086  func (fake *FakeHandlers) UserEmailReturnsOnCall(i int, result1 error) {
  2087  	fake.userEmailMutex.Lock()
  2088  	defer fake.userEmailMutex.Unlock()
  2089  	fake.UserEmailStub = nil
  2090  	if fake.userEmailReturnsOnCall == nil {
  2091  		fake.userEmailReturnsOnCall = make(map[int]struct {
  2092  			result1 error
  2093  		})
  2094  	}
  2095  	fake.userEmailReturnsOnCall[i] = struct {
  2096  		result1 error
  2097  	}{result1}
  2098  }
  2099  
  2100  func (fake *FakeHandlers) UserGuid(arg1 string, arg2 *string) error {
  2101  	fake.userGuidMutex.Lock()
  2102  	ret, specificReturn := fake.userGuidReturnsOnCall[len(fake.userGuidArgsForCall)]
  2103  	fake.userGuidArgsForCall = append(fake.userGuidArgsForCall, struct {
  2104  		arg1 string
  2105  		arg2 *string
  2106  	}{arg1, arg2})
  2107  	fake.recordInvocation("UserGuid", []interface{}{arg1, arg2})
  2108  	fake.userGuidMutex.Unlock()
  2109  	if fake.UserGuidStub != nil {
  2110  		return fake.UserGuidStub(arg1, arg2)
  2111  	}
  2112  	if specificReturn {
  2113  		return ret.result1
  2114  	}
  2115  	fakeReturns := fake.userGuidReturns
  2116  	return fakeReturns.result1
  2117  }
  2118  
  2119  func (fake *FakeHandlers) UserGuidCallCount() int {
  2120  	fake.userGuidMutex.RLock()
  2121  	defer fake.userGuidMutex.RUnlock()
  2122  	return len(fake.userGuidArgsForCall)
  2123  }
  2124  
  2125  func (fake *FakeHandlers) UserGuidCalls(stub func(string, *string) error) {
  2126  	fake.userGuidMutex.Lock()
  2127  	defer fake.userGuidMutex.Unlock()
  2128  	fake.UserGuidStub = stub
  2129  }
  2130  
  2131  func (fake *FakeHandlers) UserGuidArgsForCall(i int) (string, *string) {
  2132  	fake.userGuidMutex.RLock()
  2133  	defer fake.userGuidMutex.RUnlock()
  2134  	argsForCall := fake.userGuidArgsForCall[i]
  2135  	return argsForCall.arg1, argsForCall.arg2
  2136  }
  2137  
  2138  func (fake *FakeHandlers) UserGuidReturns(result1 error) {
  2139  	fake.userGuidMutex.Lock()
  2140  	defer fake.userGuidMutex.Unlock()
  2141  	fake.UserGuidStub = nil
  2142  	fake.userGuidReturns = struct {
  2143  		result1 error
  2144  	}{result1}
  2145  }
  2146  
  2147  func (fake *FakeHandlers) UserGuidReturnsOnCall(i int, result1 error) {
  2148  	fake.userGuidMutex.Lock()
  2149  	defer fake.userGuidMutex.Unlock()
  2150  	fake.UserGuidStub = nil
  2151  	if fake.userGuidReturnsOnCall == nil {
  2152  		fake.userGuidReturnsOnCall = make(map[int]struct {
  2153  			result1 error
  2154  		})
  2155  	}
  2156  	fake.userGuidReturnsOnCall[i] = struct {
  2157  		result1 error
  2158  	}{result1}
  2159  }
  2160  
  2161  func (fake *FakeHandlers) Username(arg1 string, arg2 *string) error {
  2162  	fake.usernameMutex.Lock()
  2163  	ret, specificReturn := fake.usernameReturnsOnCall[len(fake.usernameArgsForCall)]
  2164  	fake.usernameArgsForCall = append(fake.usernameArgsForCall, struct {
  2165  		arg1 string
  2166  		arg2 *string
  2167  	}{arg1, arg2})
  2168  	fake.recordInvocation("Username", []interface{}{arg1, arg2})
  2169  	fake.usernameMutex.Unlock()
  2170  	if fake.UsernameStub != nil {
  2171  		return fake.UsernameStub(arg1, arg2)
  2172  	}
  2173  	if specificReturn {
  2174  		return ret.result1
  2175  	}
  2176  	fakeReturns := fake.usernameReturns
  2177  	return fakeReturns.result1
  2178  }
  2179  
  2180  func (fake *FakeHandlers) UsernameCallCount() int {
  2181  	fake.usernameMutex.RLock()
  2182  	defer fake.usernameMutex.RUnlock()
  2183  	return len(fake.usernameArgsForCall)
  2184  }
  2185  
  2186  func (fake *FakeHandlers) UsernameCalls(stub func(string, *string) error) {
  2187  	fake.usernameMutex.Lock()
  2188  	defer fake.usernameMutex.Unlock()
  2189  	fake.UsernameStub = stub
  2190  }
  2191  
  2192  func (fake *FakeHandlers) UsernameArgsForCall(i int) (string, *string) {
  2193  	fake.usernameMutex.RLock()
  2194  	defer fake.usernameMutex.RUnlock()
  2195  	argsForCall := fake.usernameArgsForCall[i]
  2196  	return argsForCall.arg1, argsForCall.arg2
  2197  }
  2198  
  2199  func (fake *FakeHandlers) UsernameReturns(result1 error) {
  2200  	fake.usernameMutex.Lock()
  2201  	defer fake.usernameMutex.Unlock()
  2202  	fake.UsernameStub = nil
  2203  	fake.usernameReturns = struct {
  2204  		result1 error
  2205  	}{result1}
  2206  }
  2207  
  2208  func (fake *FakeHandlers) UsernameReturnsOnCall(i int, result1 error) {
  2209  	fake.usernameMutex.Lock()
  2210  	defer fake.usernameMutex.Unlock()
  2211  	fake.UsernameStub = nil
  2212  	if fake.usernameReturnsOnCall == nil {
  2213  		fake.usernameReturnsOnCall = make(map[int]struct {
  2214  			result1 error
  2215  		})
  2216  	}
  2217  	fake.usernameReturnsOnCall[i] = struct {
  2218  		result1 error
  2219  	}{result1}
  2220  }
  2221  
  2222  func (fake *FakeHandlers) Invocations() map[string][][]interface{} {
  2223  	fake.invocationsMutex.RLock()
  2224  	defer fake.invocationsMutex.RUnlock()
  2225  	fake.accessTokenMutex.RLock()
  2226  	defer fake.accessTokenMutex.RUnlock()
  2227  	fake.apiEndpointMutex.RLock()
  2228  	defer fake.apiEndpointMutex.RUnlock()
  2229  	fake.apiVersionMutex.RLock()
  2230  	defer fake.apiVersionMutex.RUnlock()
  2231  	fake.callCoreCommandMutex.RLock()
  2232  	defer fake.callCoreCommandMutex.RUnlock()
  2233  	fake.disableTerminalOutputMutex.RLock()
  2234  	defer fake.disableTerminalOutputMutex.RUnlock()
  2235  	fake.dopplerEndpointMutex.RLock()
  2236  	defer fake.dopplerEndpointMutex.RUnlock()
  2237  	fake.getAppMutex.RLock()
  2238  	defer fake.getAppMutex.RUnlock()
  2239  	fake.getAppsMutex.RLock()
  2240  	defer fake.getAppsMutex.RUnlock()
  2241  	fake.getCurrentOrgMutex.RLock()
  2242  	defer fake.getCurrentOrgMutex.RUnlock()
  2243  	fake.getCurrentSpaceMutex.RLock()
  2244  	defer fake.getCurrentSpaceMutex.RUnlock()
  2245  	fake.getOrgMutex.RLock()
  2246  	defer fake.getOrgMutex.RUnlock()
  2247  	fake.getOrgUsersMutex.RLock()
  2248  	defer fake.getOrgUsersMutex.RUnlock()
  2249  	fake.getOrgsMutex.RLock()
  2250  	defer fake.getOrgsMutex.RUnlock()
  2251  	fake.getOutputAndResetMutex.RLock()
  2252  	defer fake.getOutputAndResetMutex.RUnlock()
  2253  	fake.getServiceMutex.RLock()
  2254  	defer fake.getServiceMutex.RUnlock()
  2255  	fake.getServicesMutex.RLock()
  2256  	defer fake.getServicesMutex.RUnlock()
  2257  	fake.getSpaceMutex.RLock()
  2258  	defer fake.getSpaceMutex.RUnlock()
  2259  	fake.getSpaceUsersMutex.RLock()
  2260  	defer fake.getSpaceUsersMutex.RUnlock()
  2261  	fake.getSpacesMutex.RLock()
  2262  	defer fake.getSpacesMutex.RUnlock()
  2263  	fake.hasAPIEndpointMutex.RLock()
  2264  	defer fake.hasAPIEndpointMutex.RUnlock()
  2265  	fake.hasOrganizationMutex.RLock()
  2266  	defer fake.hasOrganizationMutex.RUnlock()
  2267  	fake.hasSpaceMutex.RLock()
  2268  	defer fake.hasSpaceMutex.RUnlock()
  2269  	fake.isLoggedInMutex.RLock()
  2270  	defer fake.isLoggedInMutex.RUnlock()
  2271  	fake.isMinCliVersionMutex.RLock()
  2272  	defer fake.isMinCliVersionMutex.RUnlock()
  2273  	fake.isSSLDisabledMutex.RLock()
  2274  	defer fake.isSSLDisabledMutex.RUnlock()
  2275  	fake.loggregatorEndpointMutex.RLock()
  2276  	defer fake.loggregatorEndpointMutex.RUnlock()
  2277  	fake.setPluginMetadataMutex.RLock()
  2278  	defer fake.setPluginMetadataMutex.RUnlock()
  2279  	fake.userEmailMutex.RLock()
  2280  	defer fake.userEmailMutex.RUnlock()
  2281  	fake.userGuidMutex.RLock()
  2282  	defer fake.userGuidMutex.RUnlock()
  2283  	fake.usernameMutex.RLock()
  2284  	defer fake.usernameMutex.RUnlock()
  2285  	copiedInvocations := map[string][][]interface{}{}
  2286  	for key, value := range fake.invocations {
  2287  		copiedInvocations[key] = value
  2288  	}
  2289  	return copiedInvocations
  2290  }
  2291  
  2292  func (fake *FakeHandlers) recordInvocation(key string, args []interface{}) {
  2293  	fake.invocationsMutex.Lock()
  2294  	defer fake.invocationsMutex.Unlock()
  2295  	if fake.invocations == nil {
  2296  		fake.invocations = map[string][][]interface{}{}
  2297  	}
  2298  	if fake.invocations[key] == nil {
  2299  		fake.invocations[key] = [][]interface{}{}
  2300  	}
  2301  	fake.invocations[key] = append(fake.invocations[key], args)
  2302  }
  2303  
  2304  var _ rpcserver.Handlers = new(FakeHandlers)