github.com/wanddynosios/cli/v8@v8.7.9-0.20240221182337-1a92e3a7017f/actor/v7action/v7actionfakes/fake_uaaclient.go (about)

     1  // Code generated by counterfeiter. DO NOT EDIT.
     2  package v7actionfakes
     3  
     4  import (
     5  	"sync"
     6  
     7  	"code.cloudfoundry.org/cli/actor/v7action"
     8  	"code.cloudfoundry.org/cli/api/uaa"
     9  	"code.cloudfoundry.org/cli/api/uaa/constant"
    10  )
    11  
    12  type FakeUAAClient struct {
    13  	AuthenticateStub        func(map[string]string, string, constant.GrantType) (string, string, error)
    14  	authenticateMutex       sync.RWMutex
    15  	authenticateArgsForCall []struct {
    16  		arg1 map[string]string
    17  		arg2 string
    18  		arg3 constant.GrantType
    19  	}
    20  	authenticateReturns struct {
    21  		result1 string
    22  		result2 string
    23  		result3 error
    24  	}
    25  	authenticateReturnsOnCall map[int]struct {
    26  		result1 string
    27  		result2 string
    28  		result3 error
    29  	}
    30  	CreateUserStub        func(string, string, string) (uaa.User, error)
    31  	createUserMutex       sync.RWMutex
    32  	createUserArgsForCall []struct {
    33  		arg1 string
    34  		arg2 string
    35  		arg3 string
    36  	}
    37  	createUserReturns struct {
    38  		result1 uaa.User
    39  		result2 error
    40  	}
    41  	createUserReturnsOnCall map[int]struct {
    42  		result1 uaa.User
    43  		result2 error
    44  	}
    45  	DeleteUserStub        func(string) (uaa.User, error)
    46  	deleteUserMutex       sync.RWMutex
    47  	deleteUserArgsForCall []struct {
    48  		arg1 string
    49  	}
    50  	deleteUserReturns struct {
    51  		result1 uaa.User
    52  		result2 error
    53  	}
    54  	deleteUserReturnsOnCall map[int]struct {
    55  		result1 uaa.User
    56  		result2 error
    57  	}
    58  	GetAPIVersionStub        func() (string, error)
    59  	getAPIVersionMutex       sync.RWMutex
    60  	getAPIVersionArgsForCall []struct {
    61  	}
    62  	getAPIVersionReturns struct {
    63  		result1 string
    64  		result2 error
    65  	}
    66  	getAPIVersionReturnsOnCall map[int]struct {
    67  		result1 string
    68  		result2 error
    69  	}
    70  	GetLoginPromptsStub        func() (map[string][]string, error)
    71  	getLoginPromptsMutex       sync.RWMutex
    72  	getLoginPromptsArgsForCall []struct {
    73  	}
    74  	getLoginPromptsReturns struct {
    75  		result1 map[string][]string
    76  		result2 error
    77  	}
    78  	getLoginPromptsReturnsOnCall map[int]struct {
    79  		result1 map[string][]string
    80  		result2 error
    81  	}
    82  	GetSSHPasscodeStub        func(string, string) (string, error)
    83  	getSSHPasscodeMutex       sync.RWMutex
    84  	getSSHPasscodeArgsForCall []struct {
    85  		arg1 string
    86  		arg2 string
    87  	}
    88  	getSSHPasscodeReturns struct {
    89  		result1 string
    90  		result2 error
    91  	}
    92  	getSSHPasscodeReturnsOnCall map[int]struct {
    93  		result1 string
    94  		result2 error
    95  	}
    96  	ListUsersStub        func(string, string) ([]uaa.User, error)
    97  	listUsersMutex       sync.RWMutex
    98  	listUsersArgsForCall []struct {
    99  		arg1 string
   100  		arg2 string
   101  	}
   102  	listUsersReturns struct {
   103  		result1 []uaa.User
   104  		result2 error
   105  	}
   106  	listUsersReturnsOnCall map[int]struct {
   107  		result1 []uaa.User
   108  		result2 error
   109  	}
   110  	RefreshAccessTokenStub        func(string) (uaa.RefreshedTokens, error)
   111  	refreshAccessTokenMutex       sync.RWMutex
   112  	refreshAccessTokenArgsForCall []struct {
   113  		arg1 string
   114  	}
   115  	refreshAccessTokenReturns struct {
   116  		result1 uaa.RefreshedTokens
   117  		result2 error
   118  	}
   119  	refreshAccessTokenReturnsOnCall map[int]struct {
   120  		result1 uaa.RefreshedTokens
   121  		result2 error
   122  	}
   123  	RevokeStub        func(string) error
   124  	revokeMutex       sync.RWMutex
   125  	revokeArgsForCall []struct {
   126  		arg1 string
   127  	}
   128  	revokeReturns struct {
   129  		result1 error
   130  	}
   131  	revokeReturnsOnCall map[int]struct {
   132  		result1 error
   133  	}
   134  	UpdatePasswordStub        func(string, string, string) error
   135  	updatePasswordMutex       sync.RWMutex
   136  	updatePasswordArgsForCall []struct {
   137  		arg1 string
   138  		arg2 string
   139  		arg3 string
   140  	}
   141  	updatePasswordReturns struct {
   142  		result1 error
   143  	}
   144  	updatePasswordReturnsOnCall map[int]struct {
   145  		result1 error
   146  	}
   147  	ValidateClientUserStub        func(string) error
   148  	validateClientUserMutex       sync.RWMutex
   149  	validateClientUserArgsForCall []struct {
   150  		arg1 string
   151  	}
   152  	validateClientUserReturns struct {
   153  		result1 error
   154  	}
   155  	validateClientUserReturnsOnCall map[int]struct {
   156  		result1 error
   157  	}
   158  	invocations      map[string][][]interface{}
   159  	invocationsMutex sync.RWMutex
   160  }
   161  
   162  func (fake *FakeUAAClient) Authenticate(arg1 map[string]string, arg2 string, arg3 constant.GrantType) (string, string, error) {
   163  	fake.authenticateMutex.Lock()
   164  	ret, specificReturn := fake.authenticateReturnsOnCall[len(fake.authenticateArgsForCall)]
   165  	fake.authenticateArgsForCall = append(fake.authenticateArgsForCall, struct {
   166  		arg1 map[string]string
   167  		arg2 string
   168  		arg3 constant.GrantType
   169  	}{arg1, arg2, arg3})
   170  	fake.recordInvocation("Authenticate", []interface{}{arg1, arg2, arg3})
   171  	fake.authenticateMutex.Unlock()
   172  	if fake.AuthenticateStub != nil {
   173  		return fake.AuthenticateStub(arg1, arg2, arg3)
   174  	}
   175  	if specificReturn {
   176  		return ret.result1, ret.result2, ret.result3
   177  	}
   178  	fakeReturns := fake.authenticateReturns
   179  	return fakeReturns.result1, fakeReturns.result2, fakeReturns.result3
   180  }
   181  
   182  func (fake *FakeUAAClient) AuthenticateCallCount() int {
   183  	fake.authenticateMutex.RLock()
   184  	defer fake.authenticateMutex.RUnlock()
   185  	return len(fake.authenticateArgsForCall)
   186  }
   187  
   188  func (fake *FakeUAAClient) AuthenticateCalls(stub func(map[string]string, string, constant.GrantType) (string, string, error)) {
   189  	fake.authenticateMutex.Lock()
   190  	defer fake.authenticateMutex.Unlock()
   191  	fake.AuthenticateStub = stub
   192  }
   193  
   194  func (fake *FakeUAAClient) AuthenticateArgsForCall(i int) (map[string]string, string, constant.GrantType) {
   195  	fake.authenticateMutex.RLock()
   196  	defer fake.authenticateMutex.RUnlock()
   197  	argsForCall := fake.authenticateArgsForCall[i]
   198  	return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3
   199  }
   200  
   201  func (fake *FakeUAAClient) AuthenticateReturns(result1 string, result2 string, result3 error) {
   202  	fake.authenticateMutex.Lock()
   203  	defer fake.authenticateMutex.Unlock()
   204  	fake.AuthenticateStub = nil
   205  	fake.authenticateReturns = struct {
   206  		result1 string
   207  		result2 string
   208  		result3 error
   209  	}{result1, result2, result3}
   210  }
   211  
   212  func (fake *FakeUAAClient) AuthenticateReturnsOnCall(i int, result1 string, result2 string, result3 error) {
   213  	fake.authenticateMutex.Lock()
   214  	defer fake.authenticateMutex.Unlock()
   215  	fake.AuthenticateStub = nil
   216  	if fake.authenticateReturnsOnCall == nil {
   217  		fake.authenticateReturnsOnCall = make(map[int]struct {
   218  			result1 string
   219  			result2 string
   220  			result3 error
   221  		})
   222  	}
   223  	fake.authenticateReturnsOnCall[i] = struct {
   224  		result1 string
   225  		result2 string
   226  		result3 error
   227  	}{result1, result2, result3}
   228  }
   229  
   230  func (fake *FakeUAAClient) CreateUser(arg1 string, arg2 string, arg3 string) (uaa.User, error) {
   231  	fake.createUserMutex.Lock()
   232  	ret, specificReturn := fake.createUserReturnsOnCall[len(fake.createUserArgsForCall)]
   233  	fake.createUserArgsForCall = append(fake.createUserArgsForCall, struct {
   234  		arg1 string
   235  		arg2 string
   236  		arg3 string
   237  	}{arg1, arg2, arg3})
   238  	fake.recordInvocation("CreateUser", []interface{}{arg1, arg2, arg3})
   239  	fake.createUserMutex.Unlock()
   240  	if fake.CreateUserStub != nil {
   241  		return fake.CreateUserStub(arg1, arg2, arg3)
   242  	}
   243  	if specificReturn {
   244  		return ret.result1, ret.result2
   245  	}
   246  	fakeReturns := fake.createUserReturns
   247  	return fakeReturns.result1, fakeReturns.result2
   248  }
   249  
   250  func (fake *FakeUAAClient) CreateUserCallCount() int {
   251  	fake.createUserMutex.RLock()
   252  	defer fake.createUserMutex.RUnlock()
   253  	return len(fake.createUserArgsForCall)
   254  }
   255  
   256  func (fake *FakeUAAClient) CreateUserCalls(stub func(string, string, string) (uaa.User, error)) {
   257  	fake.createUserMutex.Lock()
   258  	defer fake.createUserMutex.Unlock()
   259  	fake.CreateUserStub = stub
   260  }
   261  
   262  func (fake *FakeUAAClient) CreateUserArgsForCall(i int) (string, string, string) {
   263  	fake.createUserMutex.RLock()
   264  	defer fake.createUserMutex.RUnlock()
   265  	argsForCall := fake.createUserArgsForCall[i]
   266  	return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3
   267  }
   268  
   269  func (fake *FakeUAAClient) CreateUserReturns(result1 uaa.User, result2 error) {
   270  	fake.createUserMutex.Lock()
   271  	defer fake.createUserMutex.Unlock()
   272  	fake.CreateUserStub = nil
   273  	fake.createUserReturns = struct {
   274  		result1 uaa.User
   275  		result2 error
   276  	}{result1, result2}
   277  }
   278  
   279  func (fake *FakeUAAClient) CreateUserReturnsOnCall(i int, result1 uaa.User, result2 error) {
   280  	fake.createUserMutex.Lock()
   281  	defer fake.createUserMutex.Unlock()
   282  	fake.CreateUserStub = nil
   283  	if fake.createUserReturnsOnCall == nil {
   284  		fake.createUserReturnsOnCall = make(map[int]struct {
   285  			result1 uaa.User
   286  			result2 error
   287  		})
   288  	}
   289  	fake.createUserReturnsOnCall[i] = struct {
   290  		result1 uaa.User
   291  		result2 error
   292  	}{result1, result2}
   293  }
   294  
   295  func (fake *FakeUAAClient) DeleteUser(arg1 string) (uaa.User, error) {
   296  	fake.deleteUserMutex.Lock()
   297  	ret, specificReturn := fake.deleteUserReturnsOnCall[len(fake.deleteUserArgsForCall)]
   298  	fake.deleteUserArgsForCall = append(fake.deleteUserArgsForCall, struct {
   299  		arg1 string
   300  	}{arg1})
   301  	fake.recordInvocation("DeleteUser", []interface{}{arg1})
   302  	fake.deleteUserMutex.Unlock()
   303  	if fake.DeleteUserStub != nil {
   304  		return fake.DeleteUserStub(arg1)
   305  	}
   306  	if specificReturn {
   307  		return ret.result1, ret.result2
   308  	}
   309  	fakeReturns := fake.deleteUserReturns
   310  	return fakeReturns.result1, fakeReturns.result2
   311  }
   312  
   313  func (fake *FakeUAAClient) DeleteUserCallCount() int {
   314  	fake.deleteUserMutex.RLock()
   315  	defer fake.deleteUserMutex.RUnlock()
   316  	return len(fake.deleteUserArgsForCall)
   317  }
   318  
   319  func (fake *FakeUAAClient) DeleteUserCalls(stub func(string) (uaa.User, error)) {
   320  	fake.deleteUserMutex.Lock()
   321  	defer fake.deleteUserMutex.Unlock()
   322  	fake.DeleteUserStub = stub
   323  }
   324  
   325  func (fake *FakeUAAClient) DeleteUserArgsForCall(i int) string {
   326  	fake.deleteUserMutex.RLock()
   327  	defer fake.deleteUserMutex.RUnlock()
   328  	argsForCall := fake.deleteUserArgsForCall[i]
   329  	return argsForCall.arg1
   330  }
   331  
   332  func (fake *FakeUAAClient) DeleteUserReturns(result1 uaa.User, result2 error) {
   333  	fake.deleteUserMutex.Lock()
   334  	defer fake.deleteUserMutex.Unlock()
   335  	fake.DeleteUserStub = nil
   336  	fake.deleteUserReturns = struct {
   337  		result1 uaa.User
   338  		result2 error
   339  	}{result1, result2}
   340  }
   341  
   342  func (fake *FakeUAAClient) DeleteUserReturnsOnCall(i int, result1 uaa.User, result2 error) {
   343  	fake.deleteUserMutex.Lock()
   344  	defer fake.deleteUserMutex.Unlock()
   345  	fake.DeleteUserStub = nil
   346  	if fake.deleteUserReturnsOnCall == nil {
   347  		fake.deleteUserReturnsOnCall = make(map[int]struct {
   348  			result1 uaa.User
   349  			result2 error
   350  		})
   351  	}
   352  	fake.deleteUserReturnsOnCall[i] = struct {
   353  		result1 uaa.User
   354  		result2 error
   355  	}{result1, result2}
   356  }
   357  
   358  func (fake *FakeUAAClient) GetAPIVersion() (string, error) {
   359  	fake.getAPIVersionMutex.Lock()
   360  	ret, specificReturn := fake.getAPIVersionReturnsOnCall[len(fake.getAPIVersionArgsForCall)]
   361  	fake.getAPIVersionArgsForCall = append(fake.getAPIVersionArgsForCall, struct {
   362  	}{})
   363  	fake.recordInvocation("GetAPIVersion", []interface{}{})
   364  	fake.getAPIVersionMutex.Unlock()
   365  	if fake.GetAPIVersionStub != nil {
   366  		return fake.GetAPIVersionStub()
   367  	}
   368  	if specificReturn {
   369  		return ret.result1, ret.result2
   370  	}
   371  	fakeReturns := fake.getAPIVersionReturns
   372  	return fakeReturns.result1, fakeReturns.result2
   373  }
   374  
   375  func (fake *FakeUAAClient) GetAPIVersionCallCount() int {
   376  	fake.getAPIVersionMutex.RLock()
   377  	defer fake.getAPIVersionMutex.RUnlock()
   378  	return len(fake.getAPIVersionArgsForCall)
   379  }
   380  
   381  func (fake *FakeUAAClient) GetAPIVersionCalls(stub func() (string, error)) {
   382  	fake.getAPIVersionMutex.Lock()
   383  	defer fake.getAPIVersionMutex.Unlock()
   384  	fake.GetAPIVersionStub = stub
   385  }
   386  
   387  func (fake *FakeUAAClient) GetAPIVersionReturns(result1 string, result2 error) {
   388  	fake.getAPIVersionMutex.Lock()
   389  	defer fake.getAPIVersionMutex.Unlock()
   390  	fake.GetAPIVersionStub = nil
   391  	fake.getAPIVersionReturns = struct {
   392  		result1 string
   393  		result2 error
   394  	}{result1, result2}
   395  }
   396  
   397  func (fake *FakeUAAClient) GetAPIVersionReturnsOnCall(i int, result1 string, result2 error) {
   398  	fake.getAPIVersionMutex.Lock()
   399  	defer fake.getAPIVersionMutex.Unlock()
   400  	fake.GetAPIVersionStub = nil
   401  	if fake.getAPIVersionReturnsOnCall == nil {
   402  		fake.getAPIVersionReturnsOnCall = make(map[int]struct {
   403  			result1 string
   404  			result2 error
   405  		})
   406  	}
   407  	fake.getAPIVersionReturnsOnCall[i] = struct {
   408  		result1 string
   409  		result2 error
   410  	}{result1, result2}
   411  }
   412  
   413  func (fake *FakeUAAClient) GetLoginPrompts() (map[string][]string, error) {
   414  	fake.getLoginPromptsMutex.Lock()
   415  	ret, specificReturn := fake.getLoginPromptsReturnsOnCall[len(fake.getLoginPromptsArgsForCall)]
   416  	fake.getLoginPromptsArgsForCall = append(fake.getLoginPromptsArgsForCall, struct {
   417  	}{})
   418  	fake.recordInvocation("GetLoginPrompts", []interface{}{})
   419  	fake.getLoginPromptsMutex.Unlock()
   420  	if fake.GetLoginPromptsStub != nil {
   421  		return fake.GetLoginPromptsStub()
   422  	}
   423  	if specificReturn {
   424  		return ret.result1, ret.result2
   425  	}
   426  	fakeReturns := fake.getLoginPromptsReturns
   427  	return fakeReturns.result1, fakeReturns.result2
   428  }
   429  
   430  func (fake *FakeUAAClient) GetLoginPromptsCallCount() int {
   431  	fake.getLoginPromptsMutex.RLock()
   432  	defer fake.getLoginPromptsMutex.RUnlock()
   433  	return len(fake.getLoginPromptsArgsForCall)
   434  }
   435  
   436  func (fake *FakeUAAClient) GetLoginPromptsCalls(stub func() (map[string][]string, error)) {
   437  	fake.getLoginPromptsMutex.Lock()
   438  	defer fake.getLoginPromptsMutex.Unlock()
   439  	fake.GetLoginPromptsStub = stub
   440  }
   441  
   442  func (fake *FakeUAAClient) GetLoginPromptsReturns(result1 map[string][]string, result2 error) {
   443  	fake.getLoginPromptsMutex.Lock()
   444  	defer fake.getLoginPromptsMutex.Unlock()
   445  	fake.GetLoginPromptsStub = nil
   446  	fake.getLoginPromptsReturns = struct {
   447  		result1 map[string][]string
   448  		result2 error
   449  	}{result1, result2}
   450  }
   451  
   452  func (fake *FakeUAAClient) GetLoginPromptsReturnsOnCall(i int, result1 map[string][]string, result2 error) {
   453  	fake.getLoginPromptsMutex.Lock()
   454  	defer fake.getLoginPromptsMutex.Unlock()
   455  	fake.GetLoginPromptsStub = nil
   456  	if fake.getLoginPromptsReturnsOnCall == nil {
   457  		fake.getLoginPromptsReturnsOnCall = make(map[int]struct {
   458  			result1 map[string][]string
   459  			result2 error
   460  		})
   461  	}
   462  	fake.getLoginPromptsReturnsOnCall[i] = struct {
   463  		result1 map[string][]string
   464  		result2 error
   465  	}{result1, result2}
   466  }
   467  
   468  func (fake *FakeUAAClient) GetSSHPasscode(arg1 string, arg2 string) (string, error) {
   469  	fake.getSSHPasscodeMutex.Lock()
   470  	ret, specificReturn := fake.getSSHPasscodeReturnsOnCall[len(fake.getSSHPasscodeArgsForCall)]
   471  	fake.getSSHPasscodeArgsForCall = append(fake.getSSHPasscodeArgsForCall, struct {
   472  		arg1 string
   473  		arg2 string
   474  	}{arg1, arg2})
   475  	fake.recordInvocation("GetSSHPasscode", []interface{}{arg1, arg2})
   476  	fake.getSSHPasscodeMutex.Unlock()
   477  	if fake.GetSSHPasscodeStub != nil {
   478  		return fake.GetSSHPasscodeStub(arg1, arg2)
   479  	}
   480  	if specificReturn {
   481  		return ret.result1, ret.result2
   482  	}
   483  	fakeReturns := fake.getSSHPasscodeReturns
   484  	return fakeReturns.result1, fakeReturns.result2
   485  }
   486  
   487  func (fake *FakeUAAClient) GetSSHPasscodeCallCount() int {
   488  	fake.getSSHPasscodeMutex.RLock()
   489  	defer fake.getSSHPasscodeMutex.RUnlock()
   490  	return len(fake.getSSHPasscodeArgsForCall)
   491  }
   492  
   493  func (fake *FakeUAAClient) GetSSHPasscodeCalls(stub func(string, string) (string, error)) {
   494  	fake.getSSHPasscodeMutex.Lock()
   495  	defer fake.getSSHPasscodeMutex.Unlock()
   496  	fake.GetSSHPasscodeStub = stub
   497  }
   498  
   499  func (fake *FakeUAAClient) GetSSHPasscodeArgsForCall(i int) (string, string) {
   500  	fake.getSSHPasscodeMutex.RLock()
   501  	defer fake.getSSHPasscodeMutex.RUnlock()
   502  	argsForCall := fake.getSSHPasscodeArgsForCall[i]
   503  	return argsForCall.arg1, argsForCall.arg2
   504  }
   505  
   506  func (fake *FakeUAAClient) GetSSHPasscodeReturns(result1 string, result2 error) {
   507  	fake.getSSHPasscodeMutex.Lock()
   508  	defer fake.getSSHPasscodeMutex.Unlock()
   509  	fake.GetSSHPasscodeStub = nil
   510  	fake.getSSHPasscodeReturns = struct {
   511  		result1 string
   512  		result2 error
   513  	}{result1, result2}
   514  }
   515  
   516  func (fake *FakeUAAClient) GetSSHPasscodeReturnsOnCall(i int, result1 string, result2 error) {
   517  	fake.getSSHPasscodeMutex.Lock()
   518  	defer fake.getSSHPasscodeMutex.Unlock()
   519  	fake.GetSSHPasscodeStub = nil
   520  	if fake.getSSHPasscodeReturnsOnCall == nil {
   521  		fake.getSSHPasscodeReturnsOnCall = make(map[int]struct {
   522  			result1 string
   523  			result2 error
   524  		})
   525  	}
   526  	fake.getSSHPasscodeReturnsOnCall[i] = struct {
   527  		result1 string
   528  		result2 error
   529  	}{result1, result2}
   530  }
   531  
   532  func (fake *FakeUAAClient) ListUsers(arg1 string, arg2 string) ([]uaa.User, error) {
   533  	fake.listUsersMutex.Lock()
   534  	ret, specificReturn := fake.listUsersReturnsOnCall[len(fake.listUsersArgsForCall)]
   535  	fake.listUsersArgsForCall = append(fake.listUsersArgsForCall, struct {
   536  		arg1 string
   537  		arg2 string
   538  	}{arg1, arg2})
   539  	fake.recordInvocation("ListUsers", []interface{}{arg1, arg2})
   540  	fake.listUsersMutex.Unlock()
   541  	if fake.ListUsersStub != nil {
   542  		return fake.ListUsersStub(arg1, arg2)
   543  	}
   544  	if specificReturn {
   545  		return ret.result1, ret.result2
   546  	}
   547  	fakeReturns := fake.listUsersReturns
   548  	return fakeReturns.result1, fakeReturns.result2
   549  }
   550  
   551  func (fake *FakeUAAClient) ListUsersCallCount() int {
   552  	fake.listUsersMutex.RLock()
   553  	defer fake.listUsersMutex.RUnlock()
   554  	return len(fake.listUsersArgsForCall)
   555  }
   556  
   557  func (fake *FakeUAAClient) ListUsersCalls(stub func(string, string) ([]uaa.User, error)) {
   558  	fake.listUsersMutex.Lock()
   559  	defer fake.listUsersMutex.Unlock()
   560  	fake.ListUsersStub = stub
   561  }
   562  
   563  func (fake *FakeUAAClient) ListUsersArgsForCall(i int) (string, string) {
   564  	fake.listUsersMutex.RLock()
   565  	defer fake.listUsersMutex.RUnlock()
   566  	argsForCall := fake.listUsersArgsForCall[i]
   567  	return argsForCall.arg1, argsForCall.arg2
   568  }
   569  
   570  func (fake *FakeUAAClient) ListUsersReturns(result1 []uaa.User, result2 error) {
   571  	fake.listUsersMutex.Lock()
   572  	defer fake.listUsersMutex.Unlock()
   573  	fake.ListUsersStub = nil
   574  	fake.listUsersReturns = struct {
   575  		result1 []uaa.User
   576  		result2 error
   577  	}{result1, result2}
   578  }
   579  
   580  func (fake *FakeUAAClient) ListUsersReturnsOnCall(i int, result1 []uaa.User, result2 error) {
   581  	fake.listUsersMutex.Lock()
   582  	defer fake.listUsersMutex.Unlock()
   583  	fake.ListUsersStub = nil
   584  	if fake.listUsersReturnsOnCall == nil {
   585  		fake.listUsersReturnsOnCall = make(map[int]struct {
   586  			result1 []uaa.User
   587  			result2 error
   588  		})
   589  	}
   590  	fake.listUsersReturnsOnCall[i] = struct {
   591  		result1 []uaa.User
   592  		result2 error
   593  	}{result1, result2}
   594  }
   595  
   596  func (fake *FakeUAAClient) RefreshAccessToken(arg1 string) (uaa.RefreshedTokens, error) {
   597  	fake.refreshAccessTokenMutex.Lock()
   598  	ret, specificReturn := fake.refreshAccessTokenReturnsOnCall[len(fake.refreshAccessTokenArgsForCall)]
   599  	fake.refreshAccessTokenArgsForCall = append(fake.refreshAccessTokenArgsForCall, struct {
   600  		arg1 string
   601  	}{arg1})
   602  	fake.recordInvocation("RefreshAccessToken", []interface{}{arg1})
   603  	fake.refreshAccessTokenMutex.Unlock()
   604  	if fake.RefreshAccessTokenStub != nil {
   605  		return fake.RefreshAccessTokenStub(arg1)
   606  	}
   607  	if specificReturn {
   608  		return ret.result1, ret.result2
   609  	}
   610  	fakeReturns := fake.refreshAccessTokenReturns
   611  	return fakeReturns.result1, fakeReturns.result2
   612  }
   613  
   614  func (fake *FakeUAAClient) RefreshAccessTokenCallCount() int {
   615  	fake.refreshAccessTokenMutex.RLock()
   616  	defer fake.refreshAccessTokenMutex.RUnlock()
   617  	return len(fake.refreshAccessTokenArgsForCall)
   618  }
   619  
   620  func (fake *FakeUAAClient) RefreshAccessTokenCalls(stub func(string) (uaa.RefreshedTokens, error)) {
   621  	fake.refreshAccessTokenMutex.Lock()
   622  	defer fake.refreshAccessTokenMutex.Unlock()
   623  	fake.RefreshAccessTokenStub = stub
   624  }
   625  
   626  func (fake *FakeUAAClient) RefreshAccessTokenArgsForCall(i int) string {
   627  	fake.refreshAccessTokenMutex.RLock()
   628  	defer fake.refreshAccessTokenMutex.RUnlock()
   629  	argsForCall := fake.refreshAccessTokenArgsForCall[i]
   630  	return argsForCall.arg1
   631  }
   632  
   633  func (fake *FakeUAAClient) RefreshAccessTokenReturns(result1 uaa.RefreshedTokens, result2 error) {
   634  	fake.refreshAccessTokenMutex.Lock()
   635  	defer fake.refreshAccessTokenMutex.Unlock()
   636  	fake.RefreshAccessTokenStub = nil
   637  	fake.refreshAccessTokenReturns = struct {
   638  		result1 uaa.RefreshedTokens
   639  		result2 error
   640  	}{result1, result2}
   641  }
   642  
   643  func (fake *FakeUAAClient) RefreshAccessTokenReturnsOnCall(i int, result1 uaa.RefreshedTokens, result2 error) {
   644  	fake.refreshAccessTokenMutex.Lock()
   645  	defer fake.refreshAccessTokenMutex.Unlock()
   646  	fake.RefreshAccessTokenStub = nil
   647  	if fake.refreshAccessTokenReturnsOnCall == nil {
   648  		fake.refreshAccessTokenReturnsOnCall = make(map[int]struct {
   649  			result1 uaa.RefreshedTokens
   650  			result2 error
   651  		})
   652  	}
   653  	fake.refreshAccessTokenReturnsOnCall[i] = struct {
   654  		result1 uaa.RefreshedTokens
   655  		result2 error
   656  	}{result1, result2}
   657  }
   658  
   659  func (fake *FakeUAAClient) Revoke(arg1 string) error {
   660  	fake.revokeMutex.Lock()
   661  	ret, specificReturn := fake.revokeReturnsOnCall[len(fake.revokeArgsForCall)]
   662  	fake.revokeArgsForCall = append(fake.revokeArgsForCall, struct {
   663  		arg1 string
   664  	}{arg1})
   665  	fake.recordInvocation("Revoke", []interface{}{arg1})
   666  	fake.revokeMutex.Unlock()
   667  	if fake.RevokeStub != nil {
   668  		return fake.RevokeStub(arg1)
   669  	}
   670  	if specificReturn {
   671  		return ret.result1
   672  	}
   673  	fakeReturns := fake.revokeReturns
   674  	return fakeReturns.result1
   675  }
   676  
   677  func (fake *FakeUAAClient) RevokeCallCount() int {
   678  	fake.revokeMutex.RLock()
   679  	defer fake.revokeMutex.RUnlock()
   680  	return len(fake.revokeArgsForCall)
   681  }
   682  
   683  func (fake *FakeUAAClient) RevokeCalls(stub func(string) error) {
   684  	fake.revokeMutex.Lock()
   685  	defer fake.revokeMutex.Unlock()
   686  	fake.RevokeStub = stub
   687  }
   688  
   689  func (fake *FakeUAAClient) RevokeArgsForCall(i int) string {
   690  	fake.revokeMutex.RLock()
   691  	defer fake.revokeMutex.RUnlock()
   692  	argsForCall := fake.revokeArgsForCall[i]
   693  	return argsForCall.arg1
   694  }
   695  
   696  func (fake *FakeUAAClient) RevokeReturns(result1 error) {
   697  	fake.revokeMutex.Lock()
   698  	defer fake.revokeMutex.Unlock()
   699  	fake.RevokeStub = nil
   700  	fake.revokeReturns = struct {
   701  		result1 error
   702  	}{result1}
   703  }
   704  
   705  func (fake *FakeUAAClient) RevokeReturnsOnCall(i int, result1 error) {
   706  	fake.revokeMutex.Lock()
   707  	defer fake.revokeMutex.Unlock()
   708  	fake.RevokeStub = nil
   709  	if fake.revokeReturnsOnCall == nil {
   710  		fake.revokeReturnsOnCall = make(map[int]struct {
   711  			result1 error
   712  		})
   713  	}
   714  	fake.revokeReturnsOnCall[i] = struct {
   715  		result1 error
   716  	}{result1}
   717  }
   718  
   719  func (fake *FakeUAAClient) UpdatePassword(arg1 string, arg2 string, arg3 string) error {
   720  	fake.updatePasswordMutex.Lock()
   721  	ret, specificReturn := fake.updatePasswordReturnsOnCall[len(fake.updatePasswordArgsForCall)]
   722  	fake.updatePasswordArgsForCall = append(fake.updatePasswordArgsForCall, struct {
   723  		arg1 string
   724  		arg2 string
   725  		arg3 string
   726  	}{arg1, arg2, arg3})
   727  	fake.recordInvocation("UpdatePassword", []interface{}{arg1, arg2, arg3})
   728  	fake.updatePasswordMutex.Unlock()
   729  	if fake.UpdatePasswordStub != nil {
   730  		return fake.UpdatePasswordStub(arg1, arg2, arg3)
   731  	}
   732  	if specificReturn {
   733  		return ret.result1
   734  	}
   735  	fakeReturns := fake.updatePasswordReturns
   736  	return fakeReturns.result1
   737  }
   738  
   739  func (fake *FakeUAAClient) UpdatePasswordCallCount() int {
   740  	fake.updatePasswordMutex.RLock()
   741  	defer fake.updatePasswordMutex.RUnlock()
   742  	return len(fake.updatePasswordArgsForCall)
   743  }
   744  
   745  func (fake *FakeUAAClient) UpdatePasswordCalls(stub func(string, string, string) error) {
   746  	fake.updatePasswordMutex.Lock()
   747  	defer fake.updatePasswordMutex.Unlock()
   748  	fake.UpdatePasswordStub = stub
   749  }
   750  
   751  func (fake *FakeUAAClient) UpdatePasswordArgsForCall(i int) (string, string, string) {
   752  	fake.updatePasswordMutex.RLock()
   753  	defer fake.updatePasswordMutex.RUnlock()
   754  	argsForCall := fake.updatePasswordArgsForCall[i]
   755  	return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3
   756  }
   757  
   758  func (fake *FakeUAAClient) UpdatePasswordReturns(result1 error) {
   759  	fake.updatePasswordMutex.Lock()
   760  	defer fake.updatePasswordMutex.Unlock()
   761  	fake.UpdatePasswordStub = nil
   762  	fake.updatePasswordReturns = struct {
   763  		result1 error
   764  	}{result1}
   765  }
   766  
   767  func (fake *FakeUAAClient) UpdatePasswordReturnsOnCall(i int, result1 error) {
   768  	fake.updatePasswordMutex.Lock()
   769  	defer fake.updatePasswordMutex.Unlock()
   770  	fake.UpdatePasswordStub = nil
   771  	if fake.updatePasswordReturnsOnCall == nil {
   772  		fake.updatePasswordReturnsOnCall = make(map[int]struct {
   773  			result1 error
   774  		})
   775  	}
   776  	fake.updatePasswordReturnsOnCall[i] = struct {
   777  		result1 error
   778  	}{result1}
   779  }
   780  
   781  func (fake *FakeUAAClient) ValidateClientUser(arg1 string) error {
   782  	fake.validateClientUserMutex.Lock()
   783  	ret, specificReturn := fake.validateClientUserReturnsOnCall[len(fake.validateClientUserArgsForCall)]
   784  	fake.validateClientUserArgsForCall = append(fake.validateClientUserArgsForCall, struct {
   785  		arg1 string
   786  	}{arg1})
   787  	fake.recordInvocation("ValidateClientUser", []interface{}{arg1})
   788  	fake.validateClientUserMutex.Unlock()
   789  	if fake.ValidateClientUserStub != nil {
   790  		return fake.ValidateClientUserStub(arg1)
   791  	}
   792  	if specificReturn {
   793  		return ret.result1
   794  	}
   795  	fakeReturns := fake.validateClientUserReturns
   796  	return fakeReturns.result1
   797  }
   798  
   799  func (fake *FakeUAAClient) ValidateClientUserCallCount() int {
   800  	fake.validateClientUserMutex.RLock()
   801  	defer fake.validateClientUserMutex.RUnlock()
   802  	return len(fake.validateClientUserArgsForCall)
   803  }
   804  
   805  func (fake *FakeUAAClient) ValidateClientUserCalls(stub func(string) error) {
   806  	fake.validateClientUserMutex.Lock()
   807  	defer fake.validateClientUserMutex.Unlock()
   808  	fake.ValidateClientUserStub = stub
   809  }
   810  
   811  func (fake *FakeUAAClient) ValidateClientUserArgsForCall(i int) string {
   812  	fake.validateClientUserMutex.RLock()
   813  	defer fake.validateClientUserMutex.RUnlock()
   814  	argsForCall := fake.validateClientUserArgsForCall[i]
   815  	return argsForCall.arg1
   816  }
   817  
   818  func (fake *FakeUAAClient) ValidateClientUserReturns(result1 error) {
   819  	fake.validateClientUserMutex.Lock()
   820  	defer fake.validateClientUserMutex.Unlock()
   821  	fake.ValidateClientUserStub = nil
   822  	fake.validateClientUserReturns = struct {
   823  		result1 error
   824  	}{result1}
   825  }
   826  
   827  func (fake *FakeUAAClient) ValidateClientUserReturnsOnCall(i int, result1 error) {
   828  	fake.validateClientUserMutex.Lock()
   829  	defer fake.validateClientUserMutex.Unlock()
   830  	fake.ValidateClientUserStub = nil
   831  	if fake.validateClientUserReturnsOnCall == nil {
   832  		fake.validateClientUserReturnsOnCall = make(map[int]struct {
   833  			result1 error
   834  		})
   835  	}
   836  	fake.validateClientUserReturnsOnCall[i] = struct {
   837  		result1 error
   838  	}{result1}
   839  }
   840  
   841  func (fake *FakeUAAClient) Invocations() map[string][][]interface{} {
   842  	fake.invocationsMutex.RLock()
   843  	defer fake.invocationsMutex.RUnlock()
   844  	fake.authenticateMutex.RLock()
   845  	defer fake.authenticateMutex.RUnlock()
   846  	fake.createUserMutex.RLock()
   847  	defer fake.createUserMutex.RUnlock()
   848  	fake.deleteUserMutex.RLock()
   849  	defer fake.deleteUserMutex.RUnlock()
   850  	fake.getAPIVersionMutex.RLock()
   851  	defer fake.getAPIVersionMutex.RUnlock()
   852  	fake.getLoginPromptsMutex.RLock()
   853  	defer fake.getLoginPromptsMutex.RUnlock()
   854  	fake.getSSHPasscodeMutex.RLock()
   855  	defer fake.getSSHPasscodeMutex.RUnlock()
   856  	fake.listUsersMutex.RLock()
   857  	defer fake.listUsersMutex.RUnlock()
   858  	fake.refreshAccessTokenMutex.RLock()
   859  	defer fake.refreshAccessTokenMutex.RUnlock()
   860  	fake.revokeMutex.RLock()
   861  	defer fake.revokeMutex.RUnlock()
   862  	fake.updatePasswordMutex.RLock()
   863  	defer fake.updatePasswordMutex.RUnlock()
   864  	fake.validateClientUserMutex.RLock()
   865  	defer fake.validateClientUserMutex.RUnlock()
   866  	copiedInvocations := map[string][][]interface{}{}
   867  	for key, value := range fake.invocations {
   868  		copiedInvocations[key] = value
   869  	}
   870  	return copiedInvocations
   871  }
   872  
   873  func (fake *FakeUAAClient) recordInvocation(key string, args []interface{}) {
   874  	fake.invocationsMutex.Lock()
   875  	defer fake.invocationsMutex.Unlock()
   876  	if fake.invocations == nil {
   877  		fake.invocations = map[string][][]interface{}{}
   878  	}
   879  	if fake.invocations[key] == nil {
   880  		fake.invocations[key] = [][]interface{}{}
   881  	}
   882  	fake.invocations[key] = append(fake.invocations[key], args)
   883  }
   884  
   885  var _ v7action.UAAClient = new(FakeUAAClient)