github.com/ouraigua/jenkins-library@v0.0.0-20231028010029-fbeaf2f3aa9b/pkg/ado/mocks/Client.go (about)

     1  // Code generated by mockery v2.7.5. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import (
     6  	context "context"
     7  
     8  	build "github.com/microsoft/azure-devops-go-api/azuredevops/build"
     9  
    10  	io "io"
    11  
    12  	mock "github.com/stretchr/testify/mock"
    13  
    14  	webapi "github.com/microsoft/azure-devops-go-api/azuredevops/webapi"
    15  )
    16  
    17  // Client is an autogenerated mock type for the Client type
    18  type Client struct {
    19  	mock.Mock
    20  }
    21  
    22  // AddBuildTag provides a mock function with given fields: _a0, _a1
    23  func (_m *Client) AddBuildTag(_a0 context.Context, _a1 build.AddBuildTagArgs) (*[]string, error) {
    24  	ret := _m.Called(_a0, _a1)
    25  
    26  	var r0 *[]string
    27  	if rf, ok := ret.Get(0).(func(context.Context, build.AddBuildTagArgs) *[]string); ok {
    28  		r0 = rf(_a0, _a1)
    29  	} else {
    30  		if ret.Get(0) != nil {
    31  			r0 = ret.Get(0).(*[]string)
    32  		}
    33  	}
    34  
    35  	var r1 error
    36  	if rf, ok := ret.Get(1).(func(context.Context, build.AddBuildTagArgs) error); ok {
    37  		r1 = rf(_a0, _a1)
    38  	} else {
    39  		r1 = ret.Error(1)
    40  	}
    41  
    42  	return r0, r1
    43  }
    44  
    45  // AddBuildTags provides a mock function with given fields: _a0, _a1
    46  func (_m *Client) AddBuildTags(_a0 context.Context, _a1 build.AddBuildTagsArgs) (*[]string, error) {
    47  	ret := _m.Called(_a0, _a1)
    48  
    49  	var r0 *[]string
    50  	if rf, ok := ret.Get(0).(func(context.Context, build.AddBuildTagsArgs) *[]string); ok {
    51  		r0 = rf(_a0, _a1)
    52  	} else {
    53  		if ret.Get(0) != nil {
    54  			r0 = ret.Get(0).(*[]string)
    55  		}
    56  	}
    57  
    58  	var r1 error
    59  	if rf, ok := ret.Get(1).(func(context.Context, build.AddBuildTagsArgs) error); ok {
    60  		r1 = rf(_a0, _a1)
    61  	} else {
    62  		r1 = ret.Error(1)
    63  	}
    64  
    65  	return r0, r1
    66  }
    67  
    68  // AddDefinitionTag provides a mock function with given fields: _a0, _a1
    69  func (_m *Client) AddDefinitionTag(_a0 context.Context, _a1 build.AddDefinitionTagArgs) (*[]string, error) {
    70  	ret := _m.Called(_a0, _a1)
    71  
    72  	var r0 *[]string
    73  	if rf, ok := ret.Get(0).(func(context.Context, build.AddDefinitionTagArgs) *[]string); ok {
    74  		r0 = rf(_a0, _a1)
    75  	} else {
    76  		if ret.Get(0) != nil {
    77  			r0 = ret.Get(0).(*[]string)
    78  		}
    79  	}
    80  
    81  	var r1 error
    82  	if rf, ok := ret.Get(1).(func(context.Context, build.AddDefinitionTagArgs) error); ok {
    83  		r1 = rf(_a0, _a1)
    84  	} else {
    85  		r1 = ret.Error(1)
    86  	}
    87  
    88  	return r0, r1
    89  }
    90  
    91  // AddDefinitionTags provides a mock function with given fields: _a0, _a1
    92  func (_m *Client) AddDefinitionTags(_a0 context.Context, _a1 build.AddDefinitionTagsArgs) (*[]string, error) {
    93  	ret := _m.Called(_a0, _a1)
    94  
    95  	var r0 *[]string
    96  	if rf, ok := ret.Get(0).(func(context.Context, build.AddDefinitionTagsArgs) *[]string); ok {
    97  		r0 = rf(_a0, _a1)
    98  	} else {
    99  		if ret.Get(0) != nil {
   100  			r0 = ret.Get(0).(*[]string)
   101  		}
   102  	}
   103  
   104  	var r1 error
   105  	if rf, ok := ret.Get(1).(func(context.Context, build.AddDefinitionTagsArgs) error); ok {
   106  		r1 = rf(_a0, _a1)
   107  	} else {
   108  		r1 = ret.Error(1)
   109  	}
   110  
   111  	return r0, r1
   112  }
   113  
   114  // AuthorizeDefinitionResources provides a mock function with given fields: _a0, _a1
   115  func (_m *Client) AuthorizeDefinitionResources(_a0 context.Context, _a1 build.AuthorizeDefinitionResourcesArgs) (*[]build.DefinitionResourceReference, error) {
   116  	ret := _m.Called(_a0, _a1)
   117  
   118  	var r0 *[]build.DefinitionResourceReference
   119  	if rf, ok := ret.Get(0).(func(context.Context, build.AuthorizeDefinitionResourcesArgs) *[]build.DefinitionResourceReference); ok {
   120  		r0 = rf(_a0, _a1)
   121  	} else {
   122  		if ret.Get(0) != nil {
   123  			r0 = ret.Get(0).(*[]build.DefinitionResourceReference)
   124  		}
   125  	}
   126  
   127  	var r1 error
   128  	if rf, ok := ret.Get(1).(func(context.Context, build.AuthorizeDefinitionResourcesArgs) error); ok {
   129  		r1 = rf(_a0, _a1)
   130  	} else {
   131  		r1 = ret.Error(1)
   132  	}
   133  
   134  	return r0, r1
   135  }
   136  
   137  // AuthorizeProjectResources provides a mock function with given fields: _a0, _a1
   138  func (_m *Client) AuthorizeProjectResources(_a0 context.Context, _a1 build.AuthorizeProjectResourcesArgs) (*[]build.DefinitionResourceReference, error) {
   139  	ret := _m.Called(_a0, _a1)
   140  
   141  	var r0 *[]build.DefinitionResourceReference
   142  	if rf, ok := ret.Get(0).(func(context.Context, build.AuthorizeProjectResourcesArgs) *[]build.DefinitionResourceReference); ok {
   143  		r0 = rf(_a0, _a1)
   144  	} else {
   145  		if ret.Get(0) != nil {
   146  			r0 = ret.Get(0).(*[]build.DefinitionResourceReference)
   147  		}
   148  	}
   149  
   150  	var r1 error
   151  	if rf, ok := ret.Get(1).(func(context.Context, build.AuthorizeProjectResourcesArgs) error); ok {
   152  		r1 = rf(_a0, _a1)
   153  	} else {
   154  		r1 = ret.Error(1)
   155  	}
   156  
   157  	return r0, r1
   158  }
   159  
   160  // CreateArtifact provides a mock function with given fields: _a0, _a1
   161  func (_m *Client) CreateArtifact(_a0 context.Context, _a1 build.CreateArtifactArgs) (*build.BuildArtifact, error) {
   162  	ret := _m.Called(_a0, _a1)
   163  
   164  	var r0 *build.BuildArtifact
   165  	if rf, ok := ret.Get(0).(func(context.Context, build.CreateArtifactArgs) *build.BuildArtifact); ok {
   166  		r0 = rf(_a0, _a1)
   167  	} else {
   168  		if ret.Get(0) != nil {
   169  			r0 = ret.Get(0).(*build.BuildArtifact)
   170  		}
   171  	}
   172  
   173  	var r1 error
   174  	if rf, ok := ret.Get(1).(func(context.Context, build.CreateArtifactArgs) error); ok {
   175  		r1 = rf(_a0, _a1)
   176  	} else {
   177  		r1 = ret.Error(1)
   178  	}
   179  
   180  	return r0, r1
   181  }
   182  
   183  // CreateDefinition provides a mock function with given fields: _a0, _a1
   184  func (_m *Client) CreateDefinition(_a0 context.Context, _a1 build.CreateDefinitionArgs) (*build.BuildDefinition, error) {
   185  	ret := _m.Called(_a0, _a1)
   186  
   187  	var r0 *build.BuildDefinition
   188  	if rf, ok := ret.Get(0).(func(context.Context, build.CreateDefinitionArgs) *build.BuildDefinition); ok {
   189  		r0 = rf(_a0, _a1)
   190  	} else {
   191  		if ret.Get(0) != nil {
   192  			r0 = ret.Get(0).(*build.BuildDefinition)
   193  		}
   194  	}
   195  
   196  	var r1 error
   197  	if rf, ok := ret.Get(1).(func(context.Context, build.CreateDefinitionArgs) error); ok {
   198  		r1 = rf(_a0, _a1)
   199  	} else {
   200  		r1 = ret.Error(1)
   201  	}
   202  
   203  	return r0, r1
   204  }
   205  
   206  // CreateFolder provides a mock function with given fields: _a0, _a1
   207  func (_m *Client) CreateFolder(_a0 context.Context, _a1 build.CreateFolderArgs) (*build.Folder, error) {
   208  	ret := _m.Called(_a0, _a1)
   209  
   210  	var r0 *build.Folder
   211  	if rf, ok := ret.Get(0).(func(context.Context, build.CreateFolderArgs) *build.Folder); ok {
   212  		r0 = rf(_a0, _a1)
   213  	} else {
   214  		if ret.Get(0) != nil {
   215  			r0 = ret.Get(0).(*build.Folder)
   216  		}
   217  	}
   218  
   219  	var r1 error
   220  	if rf, ok := ret.Get(1).(func(context.Context, build.CreateFolderArgs) error); ok {
   221  		r1 = rf(_a0, _a1)
   222  	} else {
   223  		r1 = ret.Error(1)
   224  	}
   225  
   226  	return r0, r1
   227  }
   228  
   229  // DeleteBuild provides a mock function with given fields: _a0, _a1
   230  func (_m *Client) DeleteBuild(_a0 context.Context, _a1 build.DeleteBuildArgs) error {
   231  	ret := _m.Called(_a0, _a1)
   232  
   233  	var r0 error
   234  	if rf, ok := ret.Get(0).(func(context.Context, build.DeleteBuildArgs) error); ok {
   235  		r0 = rf(_a0, _a1)
   236  	} else {
   237  		r0 = ret.Error(0)
   238  	}
   239  
   240  	return r0
   241  }
   242  
   243  // DeleteBuildTag provides a mock function with given fields: _a0, _a1
   244  func (_m *Client) DeleteBuildTag(_a0 context.Context, _a1 build.DeleteBuildTagArgs) (*[]string, error) {
   245  	ret := _m.Called(_a0, _a1)
   246  
   247  	var r0 *[]string
   248  	if rf, ok := ret.Get(0).(func(context.Context, build.DeleteBuildTagArgs) *[]string); ok {
   249  		r0 = rf(_a0, _a1)
   250  	} else {
   251  		if ret.Get(0) != nil {
   252  			r0 = ret.Get(0).(*[]string)
   253  		}
   254  	}
   255  
   256  	var r1 error
   257  	if rf, ok := ret.Get(1).(func(context.Context, build.DeleteBuildTagArgs) error); ok {
   258  		r1 = rf(_a0, _a1)
   259  	} else {
   260  		r1 = ret.Error(1)
   261  	}
   262  
   263  	return r0, r1
   264  }
   265  
   266  // DeleteDefinition provides a mock function with given fields: _a0, _a1
   267  func (_m *Client) DeleteDefinition(_a0 context.Context, _a1 build.DeleteDefinitionArgs) error {
   268  	ret := _m.Called(_a0, _a1)
   269  
   270  	var r0 error
   271  	if rf, ok := ret.Get(0).(func(context.Context, build.DeleteDefinitionArgs) error); ok {
   272  		r0 = rf(_a0, _a1)
   273  	} else {
   274  		r0 = ret.Error(0)
   275  	}
   276  
   277  	return r0
   278  }
   279  
   280  // DeleteDefinitionTag provides a mock function with given fields: _a0, _a1
   281  func (_m *Client) DeleteDefinitionTag(_a0 context.Context, _a1 build.DeleteDefinitionTagArgs) (*[]string, error) {
   282  	ret := _m.Called(_a0, _a1)
   283  
   284  	var r0 *[]string
   285  	if rf, ok := ret.Get(0).(func(context.Context, build.DeleteDefinitionTagArgs) *[]string); ok {
   286  		r0 = rf(_a0, _a1)
   287  	} else {
   288  		if ret.Get(0) != nil {
   289  			r0 = ret.Get(0).(*[]string)
   290  		}
   291  	}
   292  
   293  	var r1 error
   294  	if rf, ok := ret.Get(1).(func(context.Context, build.DeleteDefinitionTagArgs) error); ok {
   295  		r1 = rf(_a0, _a1)
   296  	} else {
   297  		r1 = ret.Error(1)
   298  	}
   299  
   300  	return r0, r1
   301  }
   302  
   303  // DeleteFolder provides a mock function with given fields: _a0, _a1
   304  func (_m *Client) DeleteFolder(_a0 context.Context, _a1 build.DeleteFolderArgs) error {
   305  	ret := _m.Called(_a0, _a1)
   306  
   307  	var r0 error
   308  	if rf, ok := ret.Get(0).(func(context.Context, build.DeleteFolderArgs) error); ok {
   309  		r0 = rf(_a0, _a1)
   310  	} else {
   311  		r0 = ret.Error(0)
   312  	}
   313  
   314  	return r0
   315  }
   316  
   317  // DeleteTemplate provides a mock function with given fields: _a0, _a1
   318  func (_m *Client) DeleteTemplate(_a0 context.Context, _a1 build.DeleteTemplateArgs) error {
   319  	ret := _m.Called(_a0, _a1)
   320  
   321  	var r0 error
   322  	if rf, ok := ret.Get(0).(func(context.Context, build.DeleteTemplateArgs) error); ok {
   323  		r0 = rf(_a0, _a1)
   324  	} else {
   325  		r0 = ret.Error(0)
   326  	}
   327  
   328  	return r0
   329  }
   330  
   331  // GetArtifact provides a mock function with given fields: _a0, _a1
   332  func (_m *Client) GetArtifact(_a0 context.Context, _a1 build.GetArtifactArgs) (*build.BuildArtifact, error) {
   333  	ret := _m.Called(_a0, _a1)
   334  
   335  	var r0 *build.BuildArtifact
   336  	if rf, ok := ret.Get(0).(func(context.Context, build.GetArtifactArgs) *build.BuildArtifact); ok {
   337  		r0 = rf(_a0, _a1)
   338  	} else {
   339  		if ret.Get(0) != nil {
   340  			r0 = ret.Get(0).(*build.BuildArtifact)
   341  		}
   342  	}
   343  
   344  	var r1 error
   345  	if rf, ok := ret.Get(1).(func(context.Context, build.GetArtifactArgs) error); ok {
   346  		r1 = rf(_a0, _a1)
   347  	} else {
   348  		r1 = ret.Error(1)
   349  	}
   350  
   351  	return r0, r1
   352  }
   353  
   354  // GetArtifactContentZip provides a mock function with given fields: _a0, _a1
   355  func (_m *Client) GetArtifactContentZip(_a0 context.Context, _a1 build.GetArtifactContentZipArgs) (io.ReadCloser, error) {
   356  	ret := _m.Called(_a0, _a1)
   357  
   358  	var r0 io.ReadCloser
   359  	if rf, ok := ret.Get(0).(func(context.Context, build.GetArtifactContentZipArgs) io.ReadCloser); ok {
   360  		r0 = rf(_a0, _a1)
   361  	} else {
   362  		if ret.Get(0) != nil {
   363  			r0 = ret.Get(0).(io.ReadCloser)
   364  		}
   365  	}
   366  
   367  	var r1 error
   368  	if rf, ok := ret.Get(1).(func(context.Context, build.GetArtifactContentZipArgs) error); ok {
   369  		r1 = rf(_a0, _a1)
   370  	} else {
   371  		r1 = ret.Error(1)
   372  	}
   373  
   374  	return r0, r1
   375  }
   376  
   377  // GetArtifacts provides a mock function with given fields: _a0, _a1
   378  func (_m *Client) GetArtifacts(_a0 context.Context, _a1 build.GetArtifactsArgs) (*[]build.BuildArtifact, error) {
   379  	ret := _m.Called(_a0, _a1)
   380  
   381  	var r0 *[]build.BuildArtifact
   382  	if rf, ok := ret.Get(0).(func(context.Context, build.GetArtifactsArgs) *[]build.BuildArtifact); ok {
   383  		r0 = rf(_a0, _a1)
   384  	} else {
   385  		if ret.Get(0) != nil {
   386  			r0 = ret.Get(0).(*[]build.BuildArtifact)
   387  		}
   388  	}
   389  
   390  	var r1 error
   391  	if rf, ok := ret.Get(1).(func(context.Context, build.GetArtifactsArgs) error); ok {
   392  		r1 = rf(_a0, _a1)
   393  	} else {
   394  		r1 = ret.Error(1)
   395  	}
   396  
   397  	return r0, r1
   398  }
   399  
   400  // GetAttachment provides a mock function with given fields: _a0, _a1
   401  func (_m *Client) GetAttachment(_a0 context.Context, _a1 build.GetAttachmentArgs) (io.ReadCloser, error) {
   402  	ret := _m.Called(_a0, _a1)
   403  
   404  	var r0 io.ReadCloser
   405  	if rf, ok := ret.Get(0).(func(context.Context, build.GetAttachmentArgs) io.ReadCloser); ok {
   406  		r0 = rf(_a0, _a1)
   407  	} else {
   408  		if ret.Get(0) != nil {
   409  			r0 = ret.Get(0).(io.ReadCloser)
   410  		}
   411  	}
   412  
   413  	var r1 error
   414  	if rf, ok := ret.Get(1).(func(context.Context, build.GetAttachmentArgs) error); ok {
   415  		r1 = rf(_a0, _a1)
   416  	} else {
   417  		r1 = ret.Error(1)
   418  	}
   419  
   420  	return r0, r1
   421  }
   422  
   423  // GetAttachments provides a mock function with given fields: _a0, _a1
   424  func (_m *Client) GetAttachments(_a0 context.Context, _a1 build.GetAttachmentsArgs) (*[]build.Attachment, error) {
   425  	ret := _m.Called(_a0, _a1)
   426  
   427  	var r0 *[]build.Attachment
   428  	if rf, ok := ret.Get(0).(func(context.Context, build.GetAttachmentsArgs) *[]build.Attachment); ok {
   429  		r0 = rf(_a0, _a1)
   430  	} else {
   431  		if ret.Get(0) != nil {
   432  			r0 = ret.Get(0).(*[]build.Attachment)
   433  		}
   434  	}
   435  
   436  	var r1 error
   437  	if rf, ok := ret.Get(1).(func(context.Context, build.GetAttachmentsArgs) error); ok {
   438  		r1 = rf(_a0, _a1)
   439  	} else {
   440  		r1 = ret.Error(1)
   441  	}
   442  
   443  	return r0, r1
   444  }
   445  
   446  // GetBuild provides a mock function with given fields: _a0, _a1
   447  func (_m *Client) GetBuild(_a0 context.Context, _a1 build.GetBuildArgs) (*build.Build, error) {
   448  	ret := _m.Called(_a0, _a1)
   449  
   450  	var r0 *build.Build
   451  	if rf, ok := ret.Get(0).(func(context.Context, build.GetBuildArgs) *build.Build); ok {
   452  		r0 = rf(_a0, _a1)
   453  	} else {
   454  		if ret.Get(0) != nil {
   455  			r0 = ret.Get(0).(*build.Build)
   456  		}
   457  	}
   458  
   459  	var r1 error
   460  	if rf, ok := ret.Get(1).(func(context.Context, build.GetBuildArgs) error); ok {
   461  		r1 = rf(_a0, _a1)
   462  	} else {
   463  		r1 = ret.Error(1)
   464  	}
   465  
   466  	return r0, r1
   467  }
   468  
   469  // GetBuildBadge provides a mock function with given fields: _a0, _a1
   470  func (_m *Client) GetBuildBadge(_a0 context.Context, _a1 build.GetBuildBadgeArgs) (*build.BuildBadge, error) {
   471  	ret := _m.Called(_a0, _a1)
   472  
   473  	var r0 *build.BuildBadge
   474  	if rf, ok := ret.Get(0).(func(context.Context, build.GetBuildBadgeArgs) *build.BuildBadge); ok {
   475  		r0 = rf(_a0, _a1)
   476  	} else {
   477  		if ret.Get(0) != nil {
   478  			r0 = ret.Get(0).(*build.BuildBadge)
   479  		}
   480  	}
   481  
   482  	var r1 error
   483  	if rf, ok := ret.Get(1).(func(context.Context, build.GetBuildBadgeArgs) error); ok {
   484  		r1 = rf(_a0, _a1)
   485  	} else {
   486  		r1 = ret.Error(1)
   487  	}
   488  
   489  	return r0, r1
   490  }
   491  
   492  // GetBuildBadgeData provides a mock function with given fields: _a0, _a1
   493  func (_m *Client) GetBuildBadgeData(_a0 context.Context, _a1 build.GetBuildBadgeDataArgs) (*string, error) {
   494  	ret := _m.Called(_a0, _a1)
   495  
   496  	var r0 *string
   497  	if rf, ok := ret.Get(0).(func(context.Context, build.GetBuildBadgeDataArgs) *string); ok {
   498  		r0 = rf(_a0, _a1)
   499  	} else {
   500  		if ret.Get(0) != nil {
   501  			r0 = ret.Get(0).(*string)
   502  		}
   503  	}
   504  
   505  	var r1 error
   506  	if rf, ok := ret.Get(1).(func(context.Context, build.GetBuildBadgeDataArgs) error); ok {
   507  		r1 = rf(_a0, _a1)
   508  	} else {
   509  		r1 = ret.Error(1)
   510  	}
   511  
   512  	return r0, r1
   513  }
   514  
   515  // GetBuildChanges provides a mock function with given fields: _a0, _a1
   516  func (_m *Client) GetBuildChanges(_a0 context.Context, _a1 build.GetBuildChangesArgs) (*build.GetBuildChangesResponseValue, error) {
   517  	ret := _m.Called(_a0, _a1)
   518  
   519  	var r0 *build.GetBuildChangesResponseValue
   520  	if rf, ok := ret.Get(0).(func(context.Context, build.GetBuildChangesArgs) *build.GetBuildChangesResponseValue); ok {
   521  		r0 = rf(_a0, _a1)
   522  	} else {
   523  		if ret.Get(0) != nil {
   524  			r0 = ret.Get(0).(*build.GetBuildChangesResponseValue)
   525  		}
   526  	}
   527  
   528  	var r1 error
   529  	if rf, ok := ret.Get(1).(func(context.Context, build.GetBuildChangesArgs) error); ok {
   530  		r1 = rf(_a0, _a1)
   531  	} else {
   532  		r1 = ret.Error(1)
   533  	}
   534  
   535  	return r0, r1
   536  }
   537  
   538  // GetBuildController provides a mock function with given fields: _a0, _a1
   539  func (_m *Client) GetBuildController(_a0 context.Context, _a1 build.GetBuildControllerArgs) (*build.BuildController, error) {
   540  	ret := _m.Called(_a0, _a1)
   541  
   542  	var r0 *build.BuildController
   543  	if rf, ok := ret.Get(0).(func(context.Context, build.GetBuildControllerArgs) *build.BuildController); ok {
   544  		r0 = rf(_a0, _a1)
   545  	} else {
   546  		if ret.Get(0) != nil {
   547  			r0 = ret.Get(0).(*build.BuildController)
   548  		}
   549  	}
   550  
   551  	var r1 error
   552  	if rf, ok := ret.Get(1).(func(context.Context, build.GetBuildControllerArgs) error); ok {
   553  		r1 = rf(_a0, _a1)
   554  	} else {
   555  		r1 = ret.Error(1)
   556  	}
   557  
   558  	return r0, r1
   559  }
   560  
   561  // GetBuildControllers provides a mock function with given fields: _a0, _a1
   562  func (_m *Client) GetBuildControllers(_a0 context.Context, _a1 build.GetBuildControllersArgs) (*[]build.BuildController, error) {
   563  	ret := _m.Called(_a0, _a1)
   564  
   565  	var r0 *[]build.BuildController
   566  	if rf, ok := ret.Get(0).(func(context.Context, build.GetBuildControllersArgs) *[]build.BuildController); ok {
   567  		r0 = rf(_a0, _a1)
   568  	} else {
   569  		if ret.Get(0) != nil {
   570  			r0 = ret.Get(0).(*[]build.BuildController)
   571  		}
   572  	}
   573  
   574  	var r1 error
   575  	if rf, ok := ret.Get(1).(func(context.Context, build.GetBuildControllersArgs) error); ok {
   576  		r1 = rf(_a0, _a1)
   577  	} else {
   578  		r1 = ret.Error(1)
   579  	}
   580  
   581  	return r0, r1
   582  }
   583  
   584  // GetBuildLog provides a mock function with given fields: _a0, _a1
   585  func (_m *Client) GetBuildLog(_a0 context.Context, _a1 build.GetBuildLogArgs) (io.ReadCloser, error) {
   586  	ret := _m.Called(_a0, _a1)
   587  
   588  	var r0 io.ReadCloser
   589  	if rf, ok := ret.Get(0).(func(context.Context, build.GetBuildLogArgs) io.ReadCloser); ok {
   590  		r0 = rf(_a0, _a1)
   591  	} else {
   592  		if ret.Get(0) != nil {
   593  			r0 = ret.Get(0).(io.ReadCloser)
   594  		}
   595  	}
   596  
   597  	var r1 error
   598  	if rf, ok := ret.Get(1).(func(context.Context, build.GetBuildLogArgs) error); ok {
   599  		r1 = rf(_a0, _a1)
   600  	} else {
   601  		r1 = ret.Error(1)
   602  	}
   603  
   604  	return r0, r1
   605  }
   606  
   607  // GetBuildLogLines provides a mock function with given fields: _a0, _a1
   608  func (_m *Client) GetBuildLogLines(_a0 context.Context, _a1 build.GetBuildLogLinesArgs) (*[]string, error) {
   609  	ret := _m.Called(_a0, _a1)
   610  
   611  	var r0 *[]string
   612  	if rf, ok := ret.Get(0).(func(context.Context, build.GetBuildLogLinesArgs) *[]string); ok {
   613  		r0 = rf(_a0, _a1)
   614  	} else {
   615  		if ret.Get(0) != nil {
   616  			r0 = ret.Get(0).(*[]string)
   617  		}
   618  	}
   619  
   620  	var r1 error
   621  	if rf, ok := ret.Get(1).(func(context.Context, build.GetBuildLogLinesArgs) error); ok {
   622  		r1 = rf(_a0, _a1)
   623  	} else {
   624  		r1 = ret.Error(1)
   625  	}
   626  
   627  	return r0, r1
   628  }
   629  
   630  // GetBuildLogZip provides a mock function with given fields: _a0, _a1
   631  func (_m *Client) GetBuildLogZip(_a0 context.Context, _a1 build.GetBuildLogZipArgs) (io.ReadCloser, error) {
   632  	ret := _m.Called(_a0, _a1)
   633  
   634  	var r0 io.ReadCloser
   635  	if rf, ok := ret.Get(0).(func(context.Context, build.GetBuildLogZipArgs) io.ReadCloser); ok {
   636  		r0 = rf(_a0, _a1)
   637  	} else {
   638  		if ret.Get(0) != nil {
   639  			r0 = ret.Get(0).(io.ReadCloser)
   640  		}
   641  	}
   642  
   643  	var r1 error
   644  	if rf, ok := ret.Get(1).(func(context.Context, build.GetBuildLogZipArgs) error); ok {
   645  		r1 = rf(_a0, _a1)
   646  	} else {
   647  		r1 = ret.Error(1)
   648  	}
   649  
   650  	return r0, r1
   651  }
   652  
   653  // GetBuildLogs provides a mock function with given fields: _a0, _a1
   654  func (_m *Client) GetBuildLogs(_a0 context.Context, _a1 build.GetBuildLogsArgs) (*[]build.BuildLog, error) {
   655  	ret := _m.Called(_a0, _a1)
   656  
   657  	var r0 *[]build.BuildLog
   658  	if rf, ok := ret.Get(0).(func(context.Context, build.GetBuildLogsArgs) *[]build.BuildLog); ok {
   659  		r0 = rf(_a0, _a1)
   660  	} else {
   661  		if ret.Get(0) != nil {
   662  			r0 = ret.Get(0).(*[]build.BuildLog)
   663  		}
   664  	}
   665  
   666  	var r1 error
   667  	if rf, ok := ret.Get(1).(func(context.Context, build.GetBuildLogsArgs) error); ok {
   668  		r1 = rf(_a0, _a1)
   669  	} else {
   670  		r1 = ret.Error(1)
   671  	}
   672  
   673  	return r0, r1
   674  }
   675  
   676  // GetBuildLogsZip provides a mock function with given fields: _a0, _a1
   677  func (_m *Client) GetBuildLogsZip(_a0 context.Context, _a1 build.GetBuildLogsZipArgs) (io.ReadCloser, error) {
   678  	ret := _m.Called(_a0, _a1)
   679  
   680  	var r0 io.ReadCloser
   681  	if rf, ok := ret.Get(0).(func(context.Context, build.GetBuildLogsZipArgs) io.ReadCloser); ok {
   682  		r0 = rf(_a0, _a1)
   683  	} else {
   684  		if ret.Get(0) != nil {
   685  			r0 = ret.Get(0).(io.ReadCloser)
   686  		}
   687  	}
   688  
   689  	var r1 error
   690  	if rf, ok := ret.Get(1).(func(context.Context, build.GetBuildLogsZipArgs) error); ok {
   691  		r1 = rf(_a0, _a1)
   692  	} else {
   693  		r1 = ret.Error(1)
   694  	}
   695  
   696  	return r0, r1
   697  }
   698  
   699  // GetBuildOptionDefinitions provides a mock function with given fields: _a0, _a1
   700  func (_m *Client) GetBuildOptionDefinitions(_a0 context.Context, _a1 build.GetBuildOptionDefinitionsArgs) (*[]build.BuildOptionDefinition, error) {
   701  	ret := _m.Called(_a0, _a1)
   702  
   703  	var r0 *[]build.BuildOptionDefinition
   704  	if rf, ok := ret.Get(0).(func(context.Context, build.GetBuildOptionDefinitionsArgs) *[]build.BuildOptionDefinition); ok {
   705  		r0 = rf(_a0, _a1)
   706  	} else {
   707  		if ret.Get(0) != nil {
   708  			r0 = ret.Get(0).(*[]build.BuildOptionDefinition)
   709  		}
   710  	}
   711  
   712  	var r1 error
   713  	if rf, ok := ret.Get(1).(func(context.Context, build.GetBuildOptionDefinitionsArgs) error); ok {
   714  		r1 = rf(_a0, _a1)
   715  	} else {
   716  		r1 = ret.Error(1)
   717  	}
   718  
   719  	return r0, r1
   720  }
   721  
   722  // GetBuildProperties provides a mock function with given fields: _a0, _a1
   723  func (_m *Client) GetBuildProperties(_a0 context.Context, _a1 build.GetBuildPropertiesArgs) (interface{}, error) {
   724  	ret := _m.Called(_a0, _a1)
   725  
   726  	var r0 interface{}
   727  	if rf, ok := ret.Get(0).(func(context.Context, build.GetBuildPropertiesArgs) interface{}); ok {
   728  		r0 = rf(_a0, _a1)
   729  	} else {
   730  		if ret.Get(0) != nil {
   731  			r0 = ret.Get(0).(interface{})
   732  		}
   733  	}
   734  
   735  	var r1 error
   736  	if rf, ok := ret.Get(1).(func(context.Context, build.GetBuildPropertiesArgs) error); ok {
   737  		r1 = rf(_a0, _a1)
   738  	} else {
   739  		r1 = ret.Error(1)
   740  	}
   741  
   742  	return r0, r1
   743  }
   744  
   745  // GetBuildReport provides a mock function with given fields: _a0, _a1
   746  func (_m *Client) GetBuildReport(_a0 context.Context, _a1 build.GetBuildReportArgs) (*build.BuildReportMetadata, error) {
   747  	ret := _m.Called(_a0, _a1)
   748  
   749  	var r0 *build.BuildReportMetadata
   750  	if rf, ok := ret.Get(0).(func(context.Context, build.GetBuildReportArgs) *build.BuildReportMetadata); ok {
   751  		r0 = rf(_a0, _a1)
   752  	} else {
   753  		if ret.Get(0) != nil {
   754  			r0 = ret.Get(0).(*build.BuildReportMetadata)
   755  		}
   756  	}
   757  
   758  	var r1 error
   759  	if rf, ok := ret.Get(1).(func(context.Context, build.GetBuildReportArgs) error); ok {
   760  		r1 = rf(_a0, _a1)
   761  	} else {
   762  		r1 = ret.Error(1)
   763  	}
   764  
   765  	return r0, r1
   766  }
   767  
   768  // GetBuildReportHtmlContent provides a mock function with given fields: _a0, _a1
   769  func (_m *Client) GetBuildReportHtmlContent(_a0 context.Context, _a1 build.GetBuildReportHtmlContentArgs) (io.ReadCloser, error) {
   770  	ret := _m.Called(_a0, _a1)
   771  
   772  	var r0 io.ReadCloser
   773  	if rf, ok := ret.Get(0).(func(context.Context, build.GetBuildReportHtmlContentArgs) io.ReadCloser); ok {
   774  		r0 = rf(_a0, _a1)
   775  	} else {
   776  		if ret.Get(0) != nil {
   777  			r0 = ret.Get(0).(io.ReadCloser)
   778  		}
   779  	}
   780  
   781  	var r1 error
   782  	if rf, ok := ret.Get(1).(func(context.Context, build.GetBuildReportHtmlContentArgs) error); ok {
   783  		r1 = rf(_a0, _a1)
   784  	} else {
   785  		r1 = ret.Error(1)
   786  	}
   787  
   788  	return r0, r1
   789  }
   790  
   791  // GetBuildSettings provides a mock function with given fields: _a0, _a1
   792  func (_m *Client) GetBuildSettings(_a0 context.Context, _a1 build.GetBuildSettingsArgs) (*build.BuildSettings, error) {
   793  	ret := _m.Called(_a0, _a1)
   794  
   795  	var r0 *build.BuildSettings
   796  	if rf, ok := ret.Get(0).(func(context.Context, build.GetBuildSettingsArgs) *build.BuildSettings); ok {
   797  		r0 = rf(_a0, _a1)
   798  	} else {
   799  		if ret.Get(0) != nil {
   800  			r0 = ret.Get(0).(*build.BuildSettings)
   801  		}
   802  	}
   803  
   804  	var r1 error
   805  	if rf, ok := ret.Get(1).(func(context.Context, build.GetBuildSettingsArgs) error); ok {
   806  		r1 = rf(_a0, _a1)
   807  	} else {
   808  		r1 = ret.Error(1)
   809  	}
   810  
   811  	return r0, r1
   812  }
   813  
   814  // GetBuildTags provides a mock function with given fields: _a0, _a1
   815  func (_m *Client) GetBuildTags(_a0 context.Context, _a1 build.GetBuildTagsArgs) (*[]string, error) {
   816  	ret := _m.Called(_a0, _a1)
   817  
   818  	var r0 *[]string
   819  	if rf, ok := ret.Get(0).(func(context.Context, build.GetBuildTagsArgs) *[]string); ok {
   820  		r0 = rf(_a0, _a1)
   821  	} else {
   822  		if ret.Get(0) != nil {
   823  			r0 = ret.Get(0).(*[]string)
   824  		}
   825  	}
   826  
   827  	var r1 error
   828  	if rf, ok := ret.Get(1).(func(context.Context, build.GetBuildTagsArgs) error); ok {
   829  		r1 = rf(_a0, _a1)
   830  	} else {
   831  		r1 = ret.Error(1)
   832  	}
   833  
   834  	return r0, r1
   835  }
   836  
   837  // GetBuildTimeline provides a mock function with given fields: _a0, _a1
   838  func (_m *Client) GetBuildTimeline(_a0 context.Context, _a1 build.GetBuildTimelineArgs) (*build.Timeline, error) {
   839  	ret := _m.Called(_a0, _a1)
   840  
   841  	var r0 *build.Timeline
   842  	if rf, ok := ret.Get(0).(func(context.Context, build.GetBuildTimelineArgs) *build.Timeline); ok {
   843  		r0 = rf(_a0, _a1)
   844  	} else {
   845  		if ret.Get(0) != nil {
   846  			r0 = ret.Get(0).(*build.Timeline)
   847  		}
   848  	}
   849  
   850  	var r1 error
   851  	if rf, ok := ret.Get(1).(func(context.Context, build.GetBuildTimelineArgs) error); ok {
   852  		r1 = rf(_a0, _a1)
   853  	} else {
   854  		r1 = ret.Error(1)
   855  	}
   856  
   857  	return r0, r1
   858  }
   859  
   860  // GetBuildWorkItemsRefs provides a mock function with given fields: _a0, _a1
   861  func (_m *Client) GetBuildWorkItemsRefs(_a0 context.Context, _a1 build.GetBuildWorkItemsRefsArgs) (*[]webapi.ResourceRef, error) {
   862  	ret := _m.Called(_a0, _a1)
   863  
   864  	var r0 *[]webapi.ResourceRef
   865  	if rf, ok := ret.Get(0).(func(context.Context, build.GetBuildWorkItemsRefsArgs) *[]webapi.ResourceRef); ok {
   866  		r0 = rf(_a0, _a1)
   867  	} else {
   868  		if ret.Get(0) != nil {
   869  			r0 = ret.Get(0).(*[]webapi.ResourceRef)
   870  		}
   871  	}
   872  
   873  	var r1 error
   874  	if rf, ok := ret.Get(1).(func(context.Context, build.GetBuildWorkItemsRefsArgs) error); ok {
   875  		r1 = rf(_a0, _a1)
   876  	} else {
   877  		r1 = ret.Error(1)
   878  	}
   879  
   880  	return r0, r1
   881  }
   882  
   883  // GetBuildWorkItemsRefsFromCommits provides a mock function with given fields: _a0, _a1
   884  func (_m *Client) GetBuildWorkItemsRefsFromCommits(_a0 context.Context, _a1 build.GetBuildWorkItemsRefsFromCommitsArgs) (*[]webapi.ResourceRef, error) {
   885  	ret := _m.Called(_a0, _a1)
   886  
   887  	var r0 *[]webapi.ResourceRef
   888  	if rf, ok := ret.Get(0).(func(context.Context, build.GetBuildWorkItemsRefsFromCommitsArgs) *[]webapi.ResourceRef); ok {
   889  		r0 = rf(_a0, _a1)
   890  	} else {
   891  		if ret.Get(0) != nil {
   892  			r0 = ret.Get(0).(*[]webapi.ResourceRef)
   893  		}
   894  	}
   895  
   896  	var r1 error
   897  	if rf, ok := ret.Get(1).(func(context.Context, build.GetBuildWorkItemsRefsFromCommitsArgs) error); ok {
   898  		r1 = rf(_a0, _a1)
   899  	} else {
   900  		r1 = ret.Error(1)
   901  	}
   902  
   903  	return r0, r1
   904  }
   905  
   906  // GetBuilds provides a mock function with given fields: _a0, _a1
   907  func (_m *Client) GetBuilds(_a0 context.Context, _a1 build.GetBuildsArgs) (*build.GetBuildsResponseValue, error) {
   908  	ret := _m.Called(_a0, _a1)
   909  
   910  	var r0 *build.GetBuildsResponseValue
   911  	if rf, ok := ret.Get(0).(func(context.Context, build.GetBuildsArgs) *build.GetBuildsResponseValue); ok {
   912  		r0 = rf(_a0, _a1)
   913  	} else {
   914  		if ret.Get(0) != nil {
   915  			r0 = ret.Get(0).(*build.GetBuildsResponseValue)
   916  		}
   917  	}
   918  
   919  	var r1 error
   920  	if rf, ok := ret.Get(1).(func(context.Context, build.GetBuildsArgs) error); ok {
   921  		r1 = rf(_a0, _a1)
   922  	} else {
   923  		r1 = ret.Error(1)
   924  	}
   925  
   926  	return r0, r1
   927  }
   928  
   929  // GetChangesBetweenBuilds provides a mock function with given fields: _a0, _a1
   930  func (_m *Client) GetChangesBetweenBuilds(_a0 context.Context, _a1 build.GetChangesBetweenBuildsArgs) (*[]build.Change, error) {
   931  	ret := _m.Called(_a0, _a1)
   932  
   933  	var r0 *[]build.Change
   934  	if rf, ok := ret.Get(0).(func(context.Context, build.GetChangesBetweenBuildsArgs) *[]build.Change); ok {
   935  		r0 = rf(_a0, _a1)
   936  	} else {
   937  		if ret.Get(0) != nil {
   938  			r0 = ret.Get(0).(*[]build.Change)
   939  		}
   940  	}
   941  
   942  	var r1 error
   943  	if rf, ok := ret.Get(1).(func(context.Context, build.GetChangesBetweenBuildsArgs) error); ok {
   944  		r1 = rf(_a0, _a1)
   945  	} else {
   946  		r1 = ret.Error(1)
   947  	}
   948  
   949  	return r0, r1
   950  }
   951  
   952  // GetDefinition provides a mock function with given fields: _a0, _a1
   953  func (_m *Client) GetDefinition(_a0 context.Context, _a1 build.GetDefinitionArgs) (*build.BuildDefinition, error) {
   954  	ret := _m.Called(_a0, _a1)
   955  
   956  	var r0 *build.BuildDefinition
   957  	if rf, ok := ret.Get(0).(func(context.Context, build.GetDefinitionArgs) *build.BuildDefinition); ok {
   958  		r0 = rf(_a0, _a1)
   959  	} else {
   960  		if ret.Get(0) != nil {
   961  			r0 = ret.Get(0).(*build.BuildDefinition)
   962  		}
   963  	}
   964  
   965  	var r1 error
   966  	if rf, ok := ret.Get(1).(func(context.Context, build.GetDefinitionArgs) error); ok {
   967  		r1 = rf(_a0, _a1)
   968  	} else {
   969  		r1 = ret.Error(1)
   970  	}
   971  
   972  	return r0, r1
   973  }
   974  
   975  // GetDefinitionMetrics provides a mock function with given fields: _a0, _a1
   976  func (_m *Client) GetDefinitionMetrics(_a0 context.Context, _a1 build.GetDefinitionMetricsArgs) (*[]build.BuildMetric, error) {
   977  	ret := _m.Called(_a0, _a1)
   978  
   979  	var r0 *[]build.BuildMetric
   980  	if rf, ok := ret.Get(0).(func(context.Context, build.GetDefinitionMetricsArgs) *[]build.BuildMetric); ok {
   981  		r0 = rf(_a0, _a1)
   982  	} else {
   983  		if ret.Get(0) != nil {
   984  			r0 = ret.Get(0).(*[]build.BuildMetric)
   985  		}
   986  	}
   987  
   988  	var r1 error
   989  	if rf, ok := ret.Get(1).(func(context.Context, build.GetDefinitionMetricsArgs) error); ok {
   990  		r1 = rf(_a0, _a1)
   991  	} else {
   992  		r1 = ret.Error(1)
   993  	}
   994  
   995  	return r0, r1
   996  }
   997  
   998  // GetDefinitionProperties provides a mock function with given fields: _a0, _a1
   999  func (_m *Client) GetDefinitionProperties(_a0 context.Context, _a1 build.GetDefinitionPropertiesArgs) (interface{}, error) {
  1000  	ret := _m.Called(_a0, _a1)
  1001  
  1002  	var r0 interface{}
  1003  	if rf, ok := ret.Get(0).(func(context.Context, build.GetDefinitionPropertiesArgs) interface{}); ok {
  1004  		r0 = rf(_a0, _a1)
  1005  	} else {
  1006  		if ret.Get(0) != nil {
  1007  			r0 = ret.Get(0).(interface{})
  1008  		}
  1009  	}
  1010  
  1011  	var r1 error
  1012  	if rf, ok := ret.Get(1).(func(context.Context, build.GetDefinitionPropertiesArgs) error); ok {
  1013  		r1 = rf(_a0, _a1)
  1014  	} else {
  1015  		r1 = ret.Error(1)
  1016  	}
  1017  
  1018  	return r0, r1
  1019  }
  1020  
  1021  // GetDefinitionResources provides a mock function with given fields: _a0, _a1
  1022  func (_m *Client) GetDefinitionResources(_a0 context.Context, _a1 build.GetDefinitionResourcesArgs) (*[]build.DefinitionResourceReference, error) {
  1023  	ret := _m.Called(_a0, _a1)
  1024  
  1025  	var r0 *[]build.DefinitionResourceReference
  1026  	if rf, ok := ret.Get(0).(func(context.Context, build.GetDefinitionResourcesArgs) *[]build.DefinitionResourceReference); ok {
  1027  		r0 = rf(_a0, _a1)
  1028  	} else {
  1029  		if ret.Get(0) != nil {
  1030  			r0 = ret.Get(0).(*[]build.DefinitionResourceReference)
  1031  		}
  1032  	}
  1033  
  1034  	var r1 error
  1035  	if rf, ok := ret.Get(1).(func(context.Context, build.GetDefinitionResourcesArgs) error); ok {
  1036  		r1 = rf(_a0, _a1)
  1037  	} else {
  1038  		r1 = ret.Error(1)
  1039  	}
  1040  
  1041  	return r0, r1
  1042  }
  1043  
  1044  // GetDefinitionRevisions provides a mock function with given fields: _a0, _a1
  1045  func (_m *Client) GetDefinitionRevisions(_a0 context.Context, _a1 build.GetDefinitionRevisionsArgs) (*[]build.BuildDefinitionRevision, error) {
  1046  	ret := _m.Called(_a0, _a1)
  1047  
  1048  	var r0 *[]build.BuildDefinitionRevision
  1049  	if rf, ok := ret.Get(0).(func(context.Context, build.GetDefinitionRevisionsArgs) *[]build.BuildDefinitionRevision); ok {
  1050  		r0 = rf(_a0, _a1)
  1051  	} else {
  1052  		if ret.Get(0) != nil {
  1053  			r0 = ret.Get(0).(*[]build.BuildDefinitionRevision)
  1054  		}
  1055  	}
  1056  
  1057  	var r1 error
  1058  	if rf, ok := ret.Get(1).(func(context.Context, build.GetDefinitionRevisionsArgs) error); ok {
  1059  		r1 = rf(_a0, _a1)
  1060  	} else {
  1061  		r1 = ret.Error(1)
  1062  	}
  1063  
  1064  	return r0, r1
  1065  }
  1066  
  1067  // GetDefinitionTags provides a mock function with given fields: _a0, _a1
  1068  func (_m *Client) GetDefinitionTags(_a0 context.Context, _a1 build.GetDefinitionTagsArgs) (*[]string, error) {
  1069  	ret := _m.Called(_a0, _a1)
  1070  
  1071  	var r0 *[]string
  1072  	if rf, ok := ret.Get(0).(func(context.Context, build.GetDefinitionTagsArgs) *[]string); ok {
  1073  		r0 = rf(_a0, _a1)
  1074  	} else {
  1075  		if ret.Get(0) != nil {
  1076  			r0 = ret.Get(0).(*[]string)
  1077  		}
  1078  	}
  1079  
  1080  	var r1 error
  1081  	if rf, ok := ret.Get(1).(func(context.Context, build.GetDefinitionTagsArgs) error); ok {
  1082  		r1 = rf(_a0, _a1)
  1083  	} else {
  1084  		r1 = ret.Error(1)
  1085  	}
  1086  
  1087  	return r0, r1
  1088  }
  1089  
  1090  // GetDefinitions provides a mock function with given fields: _a0, _a1
  1091  func (_m *Client) GetDefinitions(_a0 context.Context, _a1 build.GetDefinitionsArgs) (*build.GetDefinitionsResponseValue, error) {
  1092  	ret := _m.Called(_a0, _a1)
  1093  
  1094  	var r0 *build.GetDefinitionsResponseValue
  1095  	if rf, ok := ret.Get(0).(func(context.Context, build.GetDefinitionsArgs) *build.GetDefinitionsResponseValue); ok {
  1096  		r0 = rf(_a0, _a1)
  1097  	} else {
  1098  		if ret.Get(0) != nil {
  1099  			r0 = ret.Get(0).(*build.GetDefinitionsResponseValue)
  1100  		}
  1101  	}
  1102  
  1103  	var r1 error
  1104  	if rf, ok := ret.Get(1).(func(context.Context, build.GetDefinitionsArgs) error); ok {
  1105  		r1 = rf(_a0, _a1)
  1106  	} else {
  1107  		r1 = ret.Error(1)
  1108  	}
  1109  
  1110  	return r0, r1
  1111  }
  1112  
  1113  // GetFile provides a mock function with given fields: _a0, _a1
  1114  func (_m *Client) GetFile(_a0 context.Context, _a1 build.GetFileArgs) (io.ReadCloser, error) {
  1115  	ret := _m.Called(_a0, _a1)
  1116  
  1117  	var r0 io.ReadCloser
  1118  	if rf, ok := ret.Get(0).(func(context.Context, build.GetFileArgs) io.ReadCloser); ok {
  1119  		r0 = rf(_a0, _a1)
  1120  	} else {
  1121  		if ret.Get(0) != nil {
  1122  			r0 = ret.Get(0).(io.ReadCloser)
  1123  		}
  1124  	}
  1125  
  1126  	var r1 error
  1127  	if rf, ok := ret.Get(1).(func(context.Context, build.GetFileArgs) error); ok {
  1128  		r1 = rf(_a0, _a1)
  1129  	} else {
  1130  		r1 = ret.Error(1)
  1131  	}
  1132  
  1133  	return r0, r1
  1134  }
  1135  
  1136  // GetFileContents provides a mock function with given fields: _a0, _a1
  1137  func (_m *Client) GetFileContents(_a0 context.Context, _a1 build.GetFileContentsArgs) (io.ReadCloser, error) {
  1138  	ret := _m.Called(_a0, _a1)
  1139  
  1140  	var r0 io.ReadCloser
  1141  	if rf, ok := ret.Get(0).(func(context.Context, build.GetFileContentsArgs) io.ReadCloser); ok {
  1142  		r0 = rf(_a0, _a1)
  1143  	} else {
  1144  		if ret.Get(0) != nil {
  1145  			r0 = ret.Get(0).(io.ReadCloser)
  1146  		}
  1147  	}
  1148  
  1149  	var r1 error
  1150  	if rf, ok := ret.Get(1).(func(context.Context, build.GetFileContentsArgs) error); ok {
  1151  		r1 = rf(_a0, _a1)
  1152  	} else {
  1153  		r1 = ret.Error(1)
  1154  	}
  1155  
  1156  	return r0, r1
  1157  }
  1158  
  1159  // GetFolders provides a mock function with given fields: _a0, _a1
  1160  func (_m *Client) GetFolders(_a0 context.Context, _a1 build.GetFoldersArgs) (*[]build.Folder, error) {
  1161  	ret := _m.Called(_a0, _a1)
  1162  
  1163  	var r0 *[]build.Folder
  1164  	if rf, ok := ret.Get(0).(func(context.Context, build.GetFoldersArgs) *[]build.Folder); ok {
  1165  		r0 = rf(_a0, _a1)
  1166  	} else {
  1167  		if ret.Get(0) != nil {
  1168  			r0 = ret.Get(0).(*[]build.Folder)
  1169  		}
  1170  	}
  1171  
  1172  	var r1 error
  1173  	if rf, ok := ret.Get(1).(func(context.Context, build.GetFoldersArgs) error); ok {
  1174  		r1 = rf(_a0, _a1)
  1175  	} else {
  1176  		r1 = ret.Error(1)
  1177  	}
  1178  
  1179  	return r0, r1
  1180  }
  1181  
  1182  // GetLatestBuild provides a mock function with given fields: _a0, _a1
  1183  func (_m *Client) GetLatestBuild(_a0 context.Context, _a1 build.GetLatestBuildArgs) (*build.Build, error) {
  1184  	ret := _m.Called(_a0, _a1)
  1185  
  1186  	var r0 *build.Build
  1187  	if rf, ok := ret.Get(0).(func(context.Context, build.GetLatestBuildArgs) *build.Build); ok {
  1188  		r0 = rf(_a0, _a1)
  1189  	} else {
  1190  		if ret.Get(0) != nil {
  1191  			r0 = ret.Get(0).(*build.Build)
  1192  		}
  1193  	}
  1194  
  1195  	var r1 error
  1196  	if rf, ok := ret.Get(1).(func(context.Context, build.GetLatestBuildArgs) error); ok {
  1197  		r1 = rf(_a0, _a1)
  1198  	} else {
  1199  		r1 = ret.Error(1)
  1200  	}
  1201  
  1202  	return r0, r1
  1203  }
  1204  
  1205  // GetPathContents provides a mock function with given fields: _a0, _a1
  1206  func (_m *Client) GetPathContents(_a0 context.Context, _a1 build.GetPathContentsArgs) (*[]build.SourceRepositoryItem, error) {
  1207  	ret := _m.Called(_a0, _a1)
  1208  
  1209  	var r0 *[]build.SourceRepositoryItem
  1210  	if rf, ok := ret.Get(0).(func(context.Context, build.GetPathContentsArgs) *[]build.SourceRepositoryItem); ok {
  1211  		r0 = rf(_a0, _a1)
  1212  	} else {
  1213  		if ret.Get(0) != nil {
  1214  			r0 = ret.Get(0).(*[]build.SourceRepositoryItem)
  1215  		}
  1216  	}
  1217  
  1218  	var r1 error
  1219  	if rf, ok := ret.Get(1).(func(context.Context, build.GetPathContentsArgs) error); ok {
  1220  		r1 = rf(_a0, _a1)
  1221  	} else {
  1222  		r1 = ret.Error(1)
  1223  	}
  1224  
  1225  	return r0, r1
  1226  }
  1227  
  1228  // GetProjectMetrics provides a mock function with given fields: _a0, _a1
  1229  func (_m *Client) GetProjectMetrics(_a0 context.Context, _a1 build.GetProjectMetricsArgs) (*[]build.BuildMetric, error) {
  1230  	ret := _m.Called(_a0, _a1)
  1231  
  1232  	var r0 *[]build.BuildMetric
  1233  	if rf, ok := ret.Get(0).(func(context.Context, build.GetProjectMetricsArgs) *[]build.BuildMetric); ok {
  1234  		r0 = rf(_a0, _a1)
  1235  	} else {
  1236  		if ret.Get(0) != nil {
  1237  			r0 = ret.Get(0).(*[]build.BuildMetric)
  1238  		}
  1239  	}
  1240  
  1241  	var r1 error
  1242  	if rf, ok := ret.Get(1).(func(context.Context, build.GetProjectMetricsArgs) error); ok {
  1243  		r1 = rf(_a0, _a1)
  1244  	} else {
  1245  		r1 = ret.Error(1)
  1246  	}
  1247  
  1248  	return r0, r1
  1249  }
  1250  
  1251  // GetProjectResources provides a mock function with given fields: _a0, _a1
  1252  func (_m *Client) GetProjectResources(_a0 context.Context, _a1 build.GetProjectResourcesArgs) (*[]build.DefinitionResourceReference, error) {
  1253  	ret := _m.Called(_a0, _a1)
  1254  
  1255  	var r0 *[]build.DefinitionResourceReference
  1256  	if rf, ok := ret.Get(0).(func(context.Context, build.GetProjectResourcesArgs) *[]build.DefinitionResourceReference); ok {
  1257  		r0 = rf(_a0, _a1)
  1258  	} else {
  1259  		if ret.Get(0) != nil {
  1260  			r0 = ret.Get(0).(*[]build.DefinitionResourceReference)
  1261  		}
  1262  	}
  1263  
  1264  	var r1 error
  1265  	if rf, ok := ret.Get(1).(func(context.Context, build.GetProjectResourcesArgs) error); ok {
  1266  		r1 = rf(_a0, _a1)
  1267  	} else {
  1268  		r1 = ret.Error(1)
  1269  	}
  1270  
  1271  	return r0, r1
  1272  }
  1273  
  1274  // GetPullRequest provides a mock function with given fields: _a0, _a1
  1275  func (_m *Client) GetPullRequest(_a0 context.Context, _a1 build.GetPullRequestArgs) (*build.PullRequest, error) {
  1276  	ret := _m.Called(_a0, _a1)
  1277  
  1278  	var r0 *build.PullRequest
  1279  	if rf, ok := ret.Get(0).(func(context.Context, build.GetPullRequestArgs) *build.PullRequest); ok {
  1280  		r0 = rf(_a0, _a1)
  1281  	} else {
  1282  		if ret.Get(0) != nil {
  1283  			r0 = ret.Get(0).(*build.PullRequest)
  1284  		}
  1285  	}
  1286  
  1287  	var r1 error
  1288  	if rf, ok := ret.Get(1).(func(context.Context, build.GetPullRequestArgs) error); ok {
  1289  		r1 = rf(_a0, _a1)
  1290  	} else {
  1291  		r1 = ret.Error(1)
  1292  	}
  1293  
  1294  	return r0, r1
  1295  }
  1296  
  1297  // GetResourceUsage provides a mock function with given fields: _a0, _a1
  1298  func (_m *Client) GetResourceUsage(_a0 context.Context, _a1 build.GetResourceUsageArgs) (*build.BuildResourceUsage, error) {
  1299  	ret := _m.Called(_a0, _a1)
  1300  
  1301  	var r0 *build.BuildResourceUsage
  1302  	if rf, ok := ret.Get(0).(func(context.Context, build.GetResourceUsageArgs) *build.BuildResourceUsage); ok {
  1303  		r0 = rf(_a0, _a1)
  1304  	} else {
  1305  		if ret.Get(0) != nil {
  1306  			r0 = ret.Get(0).(*build.BuildResourceUsage)
  1307  		}
  1308  	}
  1309  
  1310  	var r1 error
  1311  	if rf, ok := ret.Get(1).(func(context.Context, build.GetResourceUsageArgs) error); ok {
  1312  		r1 = rf(_a0, _a1)
  1313  	} else {
  1314  		r1 = ret.Error(1)
  1315  	}
  1316  
  1317  	return r0, r1
  1318  }
  1319  
  1320  // GetStatusBadge provides a mock function with given fields: _a0, _a1
  1321  func (_m *Client) GetStatusBadge(_a0 context.Context, _a1 build.GetStatusBadgeArgs) (*string, error) {
  1322  	ret := _m.Called(_a0, _a1)
  1323  
  1324  	var r0 *string
  1325  	if rf, ok := ret.Get(0).(func(context.Context, build.GetStatusBadgeArgs) *string); ok {
  1326  		r0 = rf(_a0, _a1)
  1327  	} else {
  1328  		if ret.Get(0) != nil {
  1329  			r0 = ret.Get(0).(*string)
  1330  		}
  1331  	}
  1332  
  1333  	var r1 error
  1334  	if rf, ok := ret.Get(1).(func(context.Context, build.GetStatusBadgeArgs) error); ok {
  1335  		r1 = rf(_a0, _a1)
  1336  	} else {
  1337  		r1 = ret.Error(1)
  1338  	}
  1339  
  1340  	return r0, r1
  1341  }
  1342  
  1343  // GetTags provides a mock function with given fields: _a0, _a1
  1344  func (_m *Client) GetTags(_a0 context.Context, _a1 build.GetTagsArgs) (*[]string, error) {
  1345  	ret := _m.Called(_a0, _a1)
  1346  
  1347  	var r0 *[]string
  1348  	if rf, ok := ret.Get(0).(func(context.Context, build.GetTagsArgs) *[]string); ok {
  1349  		r0 = rf(_a0, _a1)
  1350  	} else {
  1351  		if ret.Get(0) != nil {
  1352  			r0 = ret.Get(0).(*[]string)
  1353  		}
  1354  	}
  1355  
  1356  	var r1 error
  1357  	if rf, ok := ret.Get(1).(func(context.Context, build.GetTagsArgs) error); ok {
  1358  		r1 = rf(_a0, _a1)
  1359  	} else {
  1360  		r1 = ret.Error(1)
  1361  	}
  1362  
  1363  	return r0, r1
  1364  }
  1365  
  1366  // GetTemplate provides a mock function with given fields: _a0, _a1
  1367  func (_m *Client) GetTemplate(_a0 context.Context, _a1 build.GetTemplateArgs) (*build.BuildDefinitionTemplate, error) {
  1368  	ret := _m.Called(_a0, _a1)
  1369  
  1370  	var r0 *build.BuildDefinitionTemplate
  1371  	if rf, ok := ret.Get(0).(func(context.Context, build.GetTemplateArgs) *build.BuildDefinitionTemplate); ok {
  1372  		r0 = rf(_a0, _a1)
  1373  	} else {
  1374  		if ret.Get(0) != nil {
  1375  			r0 = ret.Get(0).(*build.BuildDefinitionTemplate)
  1376  		}
  1377  	}
  1378  
  1379  	var r1 error
  1380  	if rf, ok := ret.Get(1).(func(context.Context, build.GetTemplateArgs) error); ok {
  1381  		r1 = rf(_a0, _a1)
  1382  	} else {
  1383  		r1 = ret.Error(1)
  1384  	}
  1385  
  1386  	return r0, r1
  1387  }
  1388  
  1389  // GetTemplates provides a mock function with given fields: _a0, _a1
  1390  func (_m *Client) GetTemplates(_a0 context.Context, _a1 build.GetTemplatesArgs) (*[]build.BuildDefinitionTemplate, error) {
  1391  	ret := _m.Called(_a0, _a1)
  1392  
  1393  	var r0 *[]build.BuildDefinitionTemplate
  1394  	if rf, ok := ret.Get(0).(func(context.Context, build.GetTemplatesArgs) *[]build.BuildDefinitionTemplate); ok {
  1395  		r0 = rf(_a0, _a1)
  1396  	} else {
  1397  		if ret.Get(0) != nil {
  1398  			r0 = ret.Get(0).(*[]build.BuildDefinitionTemplate)
  1399  		}
  1400  	}
  1401  
  1402  	var r1 error
  1403  	if rf, ok := ret.Get(1).(func(context.Context, build.GetTemplatesArgs) error); ok {
  1404  		r1 = rf(_a0, _a1)
  1405  	} else {
  1406  		r1 = ret.Error(1)
  1407  	}
  1408  
  1409  	return r0, r1
  1410  }
  1411  
  1412  // GetWorkItemsBetweenBuilds provides a mock function with given fields: _a0, _a1
  1413  func (_m *Client) GetWorkItemsBetweenBuilds(_a0 context.Context, _a1 build.GetWorkItemsBetweenBuildsArgs) (*[]webapi.ResourceRef, error) {
  1414  	ret := _m.Called(_a0, _a1)
  1415  
  1416  	var r0 *[]webapi.ResourceRef
  1417  	if rf, ok := ret.Get(0).(func(context.Context, build.GetWorkItemsBetweenBuildsArgs) *[]webapi.ResourceRef); ok {
  1418  		r0 = rf(_a0, _a1)
  1419  	} else {
  1420  		if ret.Get(0) != nil {
  1421  			r0 = ret.Get(0).(*[]webapi.ResourceRef)
  1422  		}
  1423  	}
  1424  
  1425  	var r1 error
  1426  	if rf, ok := ret.Get(1).(func(context.Context, build.GetWorkItemsBetweenBuildsArgs) error); ok {
  1427  		r1 = rf(_a0, _a1)
  1428  	} else {
  1429  		r1 = ret.Error(1)
  1430  	}
  1431  
  1432  	return r0, r1
  1433  }
  1434  
  1435  // ListBranches provides a mock function with given fields: _a0, _a1
  1436  func (_m *Client) ListBranches(_a0 context.Context, _a1 build.ListBranchesArgs) (*[]string, error) {
  1437  	ret := _m.Called(_a0, _a1)
  1438  
  1439  	var r0 *[]string
  1440  	if rf, ok := ret.Get(0).(func(context.Context, build.ListBranchesArgs) *[]string); ok {
  1441  		r0 = rf(_a0, _a1)
  1442  	} else {
  1443  		if ret.Get(0) != nil {
  1444  			r0 = ret.Get(0).(*[]string)
  1445  		}
  1446  	}
  1447  
  1448  	var r1 error
  1449  	if rf, ok := ret.Get(1).(func(context.Context, build.ListBranchesArgs) error); ok {
  1450  		r1 = rf(_a0, _a1)
  1451  	} else {
  1452  		r1 = ret.Error(1)
  1453  	}
  1454  
  1455  	return r0, r1
  1456  }
  1457  
  1458  // ListRepositories provides a mock function with given fields: _a0, _a1
  1459  func (_m *Client) ListRepositories(_a0 context.Context, _a1 build.ListRepositoriesArgs) (*build.SourceRepositories, error) {
  1460  	ret := _m.Called(_a0, _a1)
  1461  
  1462  	var r0 *build.SourceRepositories
  1463  	if rf, ok := ret.Get(0).(func(context.Context, build.ListRepositoriesArgs) *build.SourceRepositories); ok {
  1464  		r0 = rf(_a0, _a1)
  1465  	} else {
  1466  		if ret.Get(0) != nil {
  1467  			r0 = ret.Get(0).(*build.SourceRepositories)
  1468  		}
  1469  	}
  1470  
  1471  	var r1 error
  1472  	if rf, ok := ret.Get(1).(func(context.Context, build.ListRepositoriesArgs) error); ok {
  1473  		r1 = rf(_a0, _a1)
  1474  	} else {
  1475  		r1 = ret.Error(1)
  1476  	}
  1477  
  1478  	return r0, r1
  1479  }
  1480  
  1481  // ListSourceProviders provides a mock function with given fields: _a0, _a1
  1482  func (_m *Client) ListSourceProviders(_a0 context.Context, _a1 build.ListSourceProvidersArgs) (*[]build.SourceProviderAttributes, error) {
  1483  	ret := _m.Called(_a0, _a1)
  1484  
  1485  	var r0 *[]build.SourceProviderAttributes
  1486  	if rf, ok := ret.Get(0).(func(context.Context, build.ListSourceProvidersArgs) *[]build.SourceProviderAttributes); ok {
  1487  		r0 = rf(_a0, _a1)
  1488  	} else {
  1489  		if ret.Get(0) != nil {
  1490  			r0 = ret.Get(0).(*[]build.SourceProviderAttributes)
  1491  		}
  1492  	}
  1493  
  1494  	var r1 error
  1495  	if rf, ok := ret.Get(1).(func(context.Context, build.ListSourceProvidersArgs) error); ok {
  1496  		r1 = rf(_a0, _a1)
  1497  	} else {
  1498  		r1 = ret.Error(1)
  1499  	}
  1500  
  1501  	return r0, r1
  1502  }
  1503  
  1504  // ListWebhooks provides a mock function with given fields: _a0, _a1
  1505  func (_m *Client) ListWebhooks(_a0 context.Context, _a1 build.ListWebhooksArgs) (*[]build.RepositoryWebhook, error) {
  1506  	ret := _m.Called(_a0, _a1)
  1507  
  1508  	var r0 *[]build.RepositoryWebhook
  1509  	if rf, ok := ret.Get(0).(func(context.Context, build.ListWebhooksArgs) *[]build.RepositoryWebhook); ok {
  1510  		r0 = rf(_a0, _a1)
  1511  	} else {
  1512  		if ret.Get(0) != nil {
  1513  			r0 = ret.Get(0).(*[]build.RepositoryWebhook)
  1514  		}
  1515  	}
  1516  
  1517  	var r1 error
  1518  	if rf, ok := ret.Get(1).(func(context.Context, build.ListWebhooksArgs) error); ok {
  1519  		r1 = rf(_a0, _a1)
  1520  	} else {
  1521  		r1 = ret.Error(1)
  1522  	}
  1523  
  1524  	return r0, r1
  1525  }
  1526  
  1527  // QueueBuild provides a mock function with given fields: _a0, _a1
  1528  func (_m *Client) QueueBuild(_a0 context.Context, _a1 build.QueueBuildArgs) (*build.Build, error) {
  1529  	ret := _m.Called(_a0, _a1)
  1530  
  1531  	var r0 *build.Build
  1532  	if rf, ok := ret.Get(0).(func(context.Context, build.QueueBuildArgs) *build.Build); ok {
  1533  		r0 = rf(_a0, _a1)
  1534  	} else {
  1535  		if ret.Get(0) != nil {
  1536  			r0 = ret.Get(0).(*build.Build)
  1537  		}
  1538  	}
  1539  
  1540  	var r1 error
  1541  	if rf, ok := ret.Get(1).(func(context.Context, build.QueueBuildArgs) error); ok {
  1542  		r1 = rf(_a0, _a1)
  1543  	} else {
  1544  		r1 = ret.Error(1)
  1545  	}
  1546  
  1547  	return r0, r1
  1548  }
  1549  
  1550  // RestoreDefinition provides a mock function with given fields: _a0, _a1
  1551  func (_m *Client) RestoreDefinition(_a0 context.Context, _a1 build.RestoreDefinitionArgs) (*build.BuildDefinition, error) {
  1552  	ret := _m.Called(_a0, _a1)
  1553  
  1554  	var r0 *build.BuildDefinition
  1555  	if rf, ok := ret.Get(0).(func(context.Context, build.RestoreDefinitionArgs) *build.BuildDefinition); ok {
  1556  		r0 = rf(_a0, _a1)
  1557  	} else {
  1558  		if ret.Get(0) != nil {
  1559  			r0 = ret.Get(0).(*build.BuildDefinition)
  1560  		}
  1561  	}
  1562  
  1563  	var r1 error
  1564  	if rf, ok := ret.Get(1).(func(context.Context, build.RestoreDefinitionArgs) error); ok {
  1565  		r1 = rf(_a0, _a1)
  1566  	} else {
  1567  		r1 = ret.Error(1)
  1568  	}
  1569  
  1570  	return r0, r1
  1571  }
  1572  
  1573  // RestoreWebhooks provides a mock function with given fields: _a0, _a1
  1574  func (_m *Client) RestoreWebhooks(_a0 context.Context, _a1 build.RestoreWebhooksArgs) error {
  1575  	ret := _m.Called(_a0, _a1)
  1576  
  1577  	var r0 error
  1578  	if rf, ok := ret.Get(0).(func(context.Context, build.RestoreWebhooksArgs) error); ok {
  1579  		r0 = rf(_a0, _a1)
  1580  	} else {
  1581  		r0 = ret.Error(0)
  1582  	}
  1583  
  1584  	return r0
  1585  }
  1586  
  1587  // SaveTemplate provides a mock function with given fields: _a0, _a1
  1588  func (_m *Client) SaveTemplate(_a0 context.Context, _a1 build.SaveTemplateArgs) (*build.BuildDefinitionTemplate, error) {
  1589  	ret := _m.Called(_a0, _a1)
  1590  
  1591  	var r0 *build.BuildDefinitionTemplate
  1592  	if rf, ok := ret.Get(0).(func(context.Context, build.SaveTemplateArgs) *build.BuildDefinitionTemplate); ok {
  1593  		r0 = rf(_a0, _a1)
  1594  	} else {
  1595  		if ret.Get(0) != nil {
  1596  			r0 = ret.Get(0).(*build.BuildDefinitionTemplate)
  1597  		}
  1598  	}
  1599  
  1600  	var r1 error
  1601  	if rf, ok := ret.Get(1).(func(context.Context, build.SaveTemplateArgs) error); ok {
  1602  		r1 = rf(_a0, _a1)
  1603  	} else {
  1604  		r1 = ret.Error(1)
  1605  	}
  1606  
  1607  	return r0, r1
  1608  }
  1609  
  1610  // UpdateBuild provides a mock function with given fields: _a0, _a1
  1611  func (_m *Client) UpdateBuild(_a0 context.Context, _a1 build.UpdateBuildArgs) (*build.Build, error) {
  1612  	ret := _m.Called(_a0, _a1)
  1613  
  1614  	var r0 *build.Build
  1615  	if rf, ok := ret.Get(0).(func(context.Context, build.UpdateBuildArgs) *build.Build); ok {
  1616  		r0 = rf(_a0, _a1)
  1617  	} else {
  1618  		if ret.Get(0) != nil {
  1619  			r0 = ret.Get(0).(*build.Build)
  1620  		}
  1621  	}
  1622  
  1623  	var r1 error
  1624  	if rf, ok := ret.Get(1).(func(context.Context, build.UpdateBuildArgs) error); ok {
  1625  		r1 = rf(_a0, _a1)
  1626  	} else {
  1627  		r1 = ret.Error(1)
  1628  	}
  1629  
  1630  	return r0, r1
  1631  }
  1632  
  1633  // UpdateBuildProperties provides a mock function with given fields: _a0, _a1
  1634  func (_m *Client) UpdateBuildProperties(_a0 context.Context, _a1 build.UpdateBuildPropertiesArgs) (interface{}, error) {
  1635  	ret := _m.Called(_a0, _a1)
  1636  
  1637  	var r0 interface{}
  1638  	if rf, ok := ret.Get(0).(func(context.Context, build.UpdateBuildPropertiesArgs) interface{}); ok {
  1639  		r0 = rf(_a0, _a1)
  1640  	} else {
  1641  		if ret.Get(0) != nil {
  1642  			r0 = ret.Get(0).(interface{})
  1643  		}
  1644  	}
  1645  
  1646  	var r1 error
  1647  	if rf, ok := ret.Get(1).(func(context.Context, build.UpdateBuildPropertiesArgs) error); ok {
  1648  		r1 = rf(_a0, _a1)
  1649  	} else {
  1650  		r1 = ret.Error(1)
  1651  	}
  1652  
  1653  	return r0, r1
  1654  }
  1655  
  1656  // UpdateBuildSettings provides a mock function with given fields: _a0, _a1
  1657  func (_m *Client) UpdateBuildSettings(_a0 context.Context, _a1 build.UpdateBuildSettingsArgs) (*build.BuildSettings, error) {
  1658  	ret := _m.Called(_a0, _a1)
  1659  
  1660  	var r0 *build.BuildSettings
  1661  	if rf, ok := ret.Get(0).(func(context.Context, build.UpdateBuildSettingsArgs) *build.BuildSettings); ok {
  1662  		r0 = rf(_a0, _a1)
  1663  	} else {
  1664  		if ret.Get(0) != nil {
  1665  			r0 = ret.Get(0).(*build.BuildSettings)
  1666  		}
  1667  	}
  1668  
  1669  	var r1 error
  1670  	if rf, ok := ret.Get(1).(func(context.Context, build.UpdateBuildSettingsArgs) error); ok {
  1671  		r1 = rf(_a0, _a1)
  1672  	} else {
  1673  		r1 = ret.Error(1)
  1674  	}
  1675  
  1676  	return r0, r1
  1677  }
  1678  
  1679  // UpdateBuilds provides a mock function with given fields: _a0, _a1
  1680  func (_m *Client) UpdateBuilds(_a0 context.Context, _a1 build.UpdateBuildsArgs) (*[]build.Build, error) {
  1681  	ret := _m.Called(_a0, _a1)
  1682  
  1683  	var r0 *[]build.Build
  1684  	if rf, ok := ret.Get(0).(func(context.Context, build.UpdateBuildsArgs) *[]build.Build); ok {
  1685  		r0 = rf(_a0, _a1)
  1686  	} else {
  1687  		if ret.Get(0) != nil {
  1688  			r0 = ret.Get(0).(*[]build.Build)
  1689  		}
  1690  	}
  1691  
  1692  	var r1 error
  1693  	if rf, ok := ret.Get(1).(func(context.Context, build.UpdateBuildsArgs) error); ok {
  1694  		r1 = rf(_a0, _a1)
  1695  	} else {
  1696  		r1 = ret.Error(1)
  1697  	}
  1698  
  1699  	return r0, r1
  1700  }
  1701  
  1702  // UpdateDefinition provides a mock function with given fields: _a0, _a1
  1703  func (_m *Client) UpdateDefinition(_a0 context.Context, _a1 build.UpdateDefinitionArgs) (*build.BuildDefinition, error) {
  1704  	ret := _m.Called(_a0, _a1)
  1705  
  1706  	var r0 *build.BuildDefinition
  1707  	if rf, ok := ret.Get(0).(func(context.Context, build.UpdateDefinitionArgs) *build.BuildDefinition); ok {
  1708  		r0 = rf(_a0, _a1)
  1709  	} else {
  1710  		if ret.Get(0) != nil {
  1711  			r0 = ret.Get(0).(*build.BuildDefinition)
  1712  		}
  1713  	}
  1714  
  1715  	var r1 error
  1716  	if rf, ok := ret.Get(1).(func(context.Context, build.UpdateDefinitionArgs) error); ok {
  1717  		r1 = rf(_a0, _a1)
  1718  	} else {
  1719  		r1 = ret.Error(1)
  1720  	}
  1721  
  1722  	return r0, r1
  1723  }
  1724  
  1725  // UpdateDefinitionProperties provides a mock function with given fields: _a0, _a1
  1726  func (_m *Client) UpdateDefinitionProperties(_a0 context.Context, _a1 build.UpdateDefinitionPropertiesArgs) (interface{}, error) {
  1727  	ret := _m.Called(_a0, _a1)
  1728  
  1729  	var r0 interface{}
  1730  	if rf, ok := ret.Get(0).(func(context.Context, build.UpdateDefinitionPropertiesArgs) interface{}); ok {
  1731  		r0 = rf(_a0, _a1)
  1732  	} else {
  1733  		if ret.Get(0) != nil {
  1734  			r0 = ret.Get(0).(interface{})
  1735  		}
  1736  	}
  1737  
  1738  	var r1 error
  1739  	if rf, ok := ret.Get(1).(func(context.Context, build.UpdateDefinitionPropertiesArgs) error); ok {
  1740  		r1 = rf(_a0, _a1)
  1741  	} else {
  1742  		r1 = ret.Error(1)
  1743  	}
  1744  
  1745  	return r0, r1
  1746  }
  1747  
  1748  // UpdateFolder provides a mock function with given fields: _a0, _a1
  1749  func (_m *Client) UpdateFolder(_a0 context.Context, _a1 build.UpdateFolderArgs) (*build.Folder, error) {
  1750  	ret := _m.Called(_a0, _a1)
  1751  
  1752  	var r0 *build.Folder
  1753  	if rf, ok := ret.Get(0).(func(context.Context, build.UpdateFolderArgs) *build.Folder); ok {
  1754  		r0 = rf(_a0, _a1)
  1755  	} else {
  1756  		if ret.Get(0) != nil {
  1757  			r0 = ret.Get(0).(*build.Folder)
  1758  		}
  1759  	}
  1760  
  1761  	var r1 error
  1762  	if rf, ok := ret.Get(1).(func(context.Context, build.UpdateFolderArgs) error); ok {
  1763  		r1 = rf(_a0, _a1)
  1764  	} else {
  1765  		r1 = ret.Error(1)
  1766  	}
  1767  
  1768  	return r0, r1
  1769  }