diff --git a/.circleci/config.yml b/.circleci/config.yml index 13c3507ed..21a0f4289 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -8,8 +8,8 @@ prelude: &prelude use_docker: &use_docker setup_remote_docker -quay_login: &quay_login - run: docker login -u "${DOCKER_USER}" -p "${DOCKER_PASS}" quay.io +docker_login: &docker_login + run: docker login -u "${JFROG_DOCKER_USER}" -p "${JFROG_DOCKER_API_KEY}" babylon.jfrog.io install_base: &install_base run: apk add git bash curl gcc build-base g++ jq libc-dev openssh-client @@ -74,7 +74,7 @@ jobs: - *install_docker - checkout - *use_docker - - *quay_login + - *docker_login - run: babylon/build build - run: babylon/build install tag-semver: @@ -84,5 +84,5 @@ jobs: - *install_docker - checkout - *use_docker - - *quay_login + - *docker_login - run: babylon/build tag-semver diff --git a/azdosdkmocks/accounts_sdk_mock.go b/azdosdkmocks/accounts_sdk_mock.go index 43ac83408..35fcd2b67 100644 --- a/azdosdkmocks/accounts_sdk_mock.go +++ b/azdosdkmocks/accounts_sdk_mock.go @@ -43,7 +43,7 @@ func (m *MockAccountsClient) GetAccounts(arg0 context.Context, arg1 accounts.Get return ret0, ret1 } -// GetAccounts indicates an expected call of GetAccounts +// GetAccounts indicates an expected call of GetAccounts. func (mr *MockAccountsClientMockRecorder) GetAccounts(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccounts", reflect.TypeOf((*MockAccountsClient)(nil).GetAccounts), arg0, arg1) diff --git a/azdosdkmocks/build_sdk_mock.go b/azdosdkmocks/build_sdk_mock.go index 2255ac83d..c2450d114 100644 --- a/azdosdkmocks/build_sdk_mock.go +++ b/azdosdkmocks/build_sdk_mock.go @@ -45,13 +45,13 @@ func (m *MockBuildClient) AddBuildTag(arg0 context.Context, arg1 build.AddBuildT return ret0, ret1 } -// AddBuildTag indicates an expected call of AddBuildTag +// AddBuildTag indicates an expected call of AddBuildTag. func (mr *MockBuildClientMockRecorder) AddBuildTag(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddBuildTag", reflect.TypeOf((*MockBuildClient)(nil).AddBuildTag), arg0, arg1) } -// AddBuildTags mocks base method +// AddBuildTags mocks base method. func (m *MockBuildClient) AddBuildTags(arg0 context.Context, arg1 build.AddBuildTagsArgs) (*[]string, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddBuildTags", arg0, arg1) @@ -60,13 +60,13 @@ func (m *MockBuildClient) AddBuildTags(arg0 context.Context, arg1 build.AddBuild return ret0, ret1 } -// AddBuildTags indicates an expected call of AddBuildTags +// AddBuildTags indicates an expected call of AddBuildTags. func (mr *MockBuildClientMockRecorder) AddBuildTags(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddBuildTags", reflect.TypeOf((*MockBuildClient)(nil).AddBuildTags), arg0, arg1) } -// AddDefinitionTag mocks base method +// AddDefinitionTag mocks base method. func (m *MockBuildClient) AddDefinitionTag(arg0 context.Context, arg1 build.AddDefinitionTagArgs) (*[]string, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddDefinitionTag", arg0, arg1) @@ -75,13 +75,13 @@ func (m *MockBuildClient) AddDefinitionTag(arg0 context.Context, arg1 build.AddD return ret0, ret1 } -// AddDefinitionTag indicates an expected call of AddDefinitionTag +// AddDefinitionTag indicates an expected call of AddDefinitionTag. func (mr *MockBuildClientMockRecorder) AddDefinitionTag(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddDefinitionTag", reflect.TypeOf((*MockBuildClient)(nil).AddDefinitionTag), arg0, arg1) } -// AddDefinitionTags mocks base method +// AddDefinitionTags mocks base method. func (m *MockBuildClient) AddDefinitionTags(arg0 context.Context, arg1 build.AddDefinitionTagsArgs) (*[]string, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddDefinitionTags", arg0, arg1) @@ -90,13 +90,28 @@ func (m *MockBuildClient) AddDefinitionTags(arg0 context.Context, arg1 build.Add return ret0, ret1 } -// AddDefinitionTags indicates an expected call of AddDefinitionTags +// AddDefinitionTags indicates an expected call of AddDefinitionTags. func (mr *MockBuildClientMockRecorder) AddDefinitionTags(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddDefinitionTags", reflect.TypeOf((*MockBuildClient)(nil).AddDefinitionTags), arg0, arg1) } -// AuthorizeDefinitionResources mocks base method +// AddRetentionLeases mocks base method. +func (m *MockBuildClient) AddRetentionLeases(arg0 context.Context, arg1 build.AddRetentionLeasesArgs) (*[]build.RetentionLease, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AddRetentionLeases", arg0, arg1) + ret0, _ := ret[0].(*[]build.RetentionLease) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AddRetentionLeases indicates an expected call of AddRetentionLeases. +func (mr *MockBuildClientMockRecorder) AddRetentionLeases(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddRetentionLeases", reflect.TypeOf((*MockBuildClient)(nil).AddRetentionLeases), arg0, arg1) +} + +// AuthorizeDefinitionResources mocks base method. func (m *MockBuildClient) AuthorizeDefinitionResources(arg0 context.Context, arg1 build.AuthorizeDefinitionResourcesArgs) (*[]build.DefinitionResourceReference, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AuthorizeDefinitionResources", arg0, arg1) @@ -105,13 +120,13 @@ func (m *MockBuildClient) AuthorizeDefinitionResources(arg0 context.Context, arg return ret0, ret1 } -// AuthorizeDefinitionResources indicates an expected call of AuthorizeDefinitionResources +// AuthorizeDefinitionResources indicates an expected call of AuthorizeDefinitionResources. func (mr *MockBuildClientMockRecorder) AuthorizeDefinitionResources(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthorizeDefinitionResources", reflect.TypeOf((*MockBuildClient)(nil).AuthorizeDefinitionResources), arg0, arg1) } -// AuthorizeProjectResources mocks base method +// AuthorizeProjectResources mocks base method. func (m *MockBuildClient) AuthorizeProjectResources(arg0 context.Context, arg1 build.AuthorizeProjectResourcesArgs) (*[]build.DefinitionResourceReference, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AuthorizeProjectResources", arg0, arg1) @@ -120,13 +135,13 @@ func (m *MockBuildClient) AuthorizeProjectResources(arg0 context.Context, arg1 b return ret0, ret1 } -// AuthorizeProjectResources indicates an expected call of AuthorizeProjectResources +// AuthorizeProjectResources indicates an expected call of AuthorizeProjectResources. func (mr *MockBuildClientMockRecorder) AuthorizeProjectResources(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthorizeProjectResources", reflect.TypeOf((*MockBuildClient)(nil).AuthorizeProjectResources), arg0, arg1) } -// CreateArtifact mocks base method +// CreateArtifact mocks base method. func (m *MockBuildClient) CreateArtifact(arg0 context.Context, arg1 build.CreateArtifactArgs) (*build.BuildArtifact, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateArtifact", arg0, arg1) @@ -135,13 +150,13 @@ func (m *MockBuildClient) CreateArtifact(arg0 context.Context, arg1 build.Create return ret0, ret1 } -// CreateArtifact indicates an expected call of CreateArtifact +// CreateArtifact indicates an expected call of CreateArtifact. func (mr *MockBuildClientMockRecorder) CreateArtifact(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateArtifact", reflect.TypeOf((*MockBuildClient)(nil).CreateArtifact), arg0, arg1) } -// CreateDefinition mocks base method +// CreateDefinition mocks base method. func (m *MockBuildClient) CreateDefinition(arg0 context.Context, arg1 build.CreateDefinitionArgs) (*build.BuildDefinition, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateDefinition", arg0, arg1) @@ -150,13 +165,13 @@ func (m *MockBuildClient) CreateDefinition(arg0 context.Context, arg1 build.Crea return ret0, ret1 } -// CreateDefinition indicates an expected call of CreateDefinition +// CreateDefinition indicates an expected call of CreateDefinition. func (mr *MockBuildClientMockRecorder) CreateDefinition(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateDefinition", reflect.TypeOf((*MockBuildClient)(nil).CreateDefinition), arg0, arg1) } -// CreateFolder mocks base method +// CreateFolder mocks base method. func (m *MockBuildClient) CreateFolder(arg0 context.Context, arg1 build.CreateFolderArgs) (*build.Folder, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateFolder", arg0, arg1) @@ -165,13 +180,13 @@ func (m *MockBuildClient) CreateFolder(arg0 context.Context, arg1 build.CreateFo return ret0, ret1 } -// CreateFolder indicates an expected call of CreateFolder +// CreateFolder indicates an expected call of CreateFolder. func (mr *MockBuildClientMockRecorder) CreateFolder(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateFolder", reflect.TypeOf((*MockBuildClient)(nil).CreateFolder), arg0, arg1) } -// DeleteBuild mocks base method +// DeleteBuild mocks base method. func (m *MockBuildClient) DeleteBuild(arg0 context.Context, arg1 build.DeleteBuildArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteBuild", arg0, arg1) @@ -179,13 +194,13 @@ func (m *MockBuildClient) DeleteBuild(arg0 context.Context, arg1 build.DeleteBui return ret0 } -// DeleteBuild indicates an expected call of DeleteBuild +// DeleteBuild indicates an expected call of DeleteBuild. func (mr *MockBuildClientMockRecorder) DeleteBuild(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteBuild", reflect.TypeOf((*MockBuildClient)(nil).DeleteBuild), arg0, arg1) } -// DeleteBuildTag mocks base method +// DeleteBuildTag mocks base method. func (m *MockBuildClient) DeleteBuildTag(arg0 context.Context, arg1 build.DeleteBuildTagArgs) (*[]string, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteBuildTag", arg0, arg1) @@ -194,13 +209,13 @@ func (m *MockBuildClient) DeleteBuildTag(arg0 context.Context, arg1 build.Delete return ret0, ret1 } -// DeleteBuildTag indicates an expected call of DeleteBuildTag +// DeleteBuildTag indicates an expected call of DeleteBuildTag. func (mr *MockBuildClientMockRecorder) DeleteBuildTag(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteBuildTag", reflect.TypeOf((*MockBuildClient)(nil).DeleteBuildTag), arg0, arg1) } -// DeleteDefinition mocks base method +// DeleteDefinition mocks base method. func (m *MockBuildClient) DeleteDefinition(arg0 context.Context, arg1 build.DeleteDefinitionArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteDefinition", arg0, arg1) @@ -208,13 +223,13 @@ func (m *MockBuildClient) DeleteDefinition(arg0 context.Context, arg1 build.Dele return ret0 } -// DeleteDefinition indicates an expected call of DeleteDefinition +// DeleteDefinition indicates an expected call of DeleteDefinition. func (mr *MockBuildClientMockRecorder) DeleteDefinition(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteDefinition", reflect.TypeOf((*MockBuildClient)(nil).DeleteDefinition), arg0, arg1) } -// DeleteDefinitionTag mocks base method +// DeleteDefinitionTag mocks base method. func (m *MockBuildClient) DeleteDefinitionTag(arg0 context.Context, arg1 build.DeleteDefinitionTagArgs) (*[]string, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteDefinitionTag", arg0, arg1) @@ -223,13 +238,13 @@ func (m *MockBuildClient) DeleteDefinitionTag(arg0 context.Context, arg1 build.D return ret0, ret1 } -// DeleteDefinitionTag indicates an expected call of DeleteDefinitionTag +// DeleteDefinitionTag indicates an expected call of DeleteDefinitionTag. func (mr *MockBuildClientMockRecorder) DeleteDefinitionTag(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteDefinitionTag", reflect.TypeOf((*MockBuildClient)(nil).DeleteDefinitionTag), arg0, arg1) } -// DeleteFolder mocks base method +// DeleteFolder mocks base method. func (m *MockBuildClient) DeleteFolder(arg0 context.Context, arg1 build.DeleteFolderArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteFolder", arg0, arg1) @@ -237,13 +252,42 @@ func (m *MockBuildClient) DeleteFolder(arg0 context.Context, arg1 build.DeleteFo return ret0 } -// DeleteFolder indicates an expected call of DeleteFolder +// DeleteFolder indicates an expected call of DeleteFolder. func (mr *MockBuildClientMockRecorder) DeleteFolder(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteFolder", reflect.TypeOf((*MockBuildClient)(nil).DeleteFolder), arg0, arg1) } -// DeleteTemplate mocks base method +// DeleteRetentionLeasesById mocks base method. +func (m *MockBuildClient) DeleteRetentionLeasesById(arg0 context.Context, arg1 build.DeleteRetentionLeasesByIdArgs) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteRetentionLeasesById", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DeleteRetentionLeasesById indicates an expected call of DeleteRetentionLeasesById. +func (mr *MockBuildClientMockRecorder) DeleteRetentionLeasesById(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRetentionLeasesById", reflect.TypeOf((*MockBuildClient)(nil).DeleteRetentionLeasesById), arg0, arg1) +} + +// DeleteTag mocks base method. +func (m *MockBuildClient) DeleteTag(arg0 context.Context, arg1 build.DeleteTagArgs) (*[]string, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteTag", arg0, arg1) + ret0, _ := ret[0].(*[]string) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteTag indicates an expected call of DeleteTag. +func (mr *MockBuildClientMockRecorder) DeleteTag(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTag", reflect.TypeOf((*MockBuildClient)(nil).DeleteTag), arg0, arg1) +} + +// DeleteTemplate mocks base method. func (m *MockBuildClient) DeleteTemplate(arg0 context.Context, arg1 build.DeleteTemplateArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteTemplate", arg0, arg1) @@ -251,13 +295,13 @@ func (m *MockBuildClient) DeleteTemplate(arg0 context.Context, arg1 build.Delete return ret0 } -// DeleteTemplate indicates an expected call of DeleteTemplate +// DeleteTemplate indicates an expected call of DeleteTemplate. func (mr *MockBuildClientMockRecorder) DeleteTemplate(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTemplate", reflect.TypeOf((*MockBuildClient)(nil).DeleteTemplate), arg0, arg1) } -// GetArtifact mocks base method +// GetArtifact mocks base method. func (m *MockBuildClient) GetArtifact(arg0 context.Context, arg1 build.GetArtifactArgs) (*build.BuildArtifact, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetArtifact", arg0, arg1) @@ -266,13 +310,13 @@ func (m *MockBuildClient) GetArtifact(arg0 context.Context, arg1 build.GetArtifa return ret0, ret1 } -// GetArtifact indicates an expected call of GetArtifact +// GetArtifact indicates an expected call of GetArtifact. func (mr *MockBuildClientMockRecorder) GetArtifact(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetArtifact", reflect.TypeOf((*MockBuildClient)(nil).GetArtifact), arg0, arg1) } -// GetArtifactContentZip mocks base method +// GetArtifactContentZip mocks base method. func (m *MockBuildClient) GetArtifactContentZip(arg0 context.Context, arg1 build.GetArtifactContentZipArgs) (io.ReadCloser, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetArtifactContentZip", arg0, arg1) @@ -281,13 +325,13 @@ func (m *MockBuildClient) GetArtifactContentZip(arg0 context.Context, arg1 build return ret0, ret1 } -// GetArtifactContentZip indicates an expected call of GetArtifactContentZip +// GetArtifactContentZip indicates an expected call of GetArtifactContentZip. func (mr *MockBuildClientMockRecorder) GetArtifactContentZip(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetArtifactContentZip", reflect.TypeOf((*MockBuildClient)(nil).GetArtifactContentZip), arg0, arg1) } -// GetArtifacts mocks base method +// GetArtifacts mocks base method. func (m *MockBuildClient) GetArtifacts(arg0 context.Context, arg1 build.GetArtifactsArgs) (*[]build.BuildArtifact, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetArtifacts", arg0, arg1) @@ -296,13 +340,13 @@ func (m *MockBuildClient) GetArtifacts(arg0 context.Context, arg1 build.GetArtif return ret0, ret1 } -// GetArtifacts indicates an expected call of GetArtifacts +// GetArtifacts indicates an expected call of GetArtifacts. func (mr *MockBuildClientMockRecorder) GetArtifacts(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetArtifacts", reflect.TypeOf((*MockBuildClient)(nil).GetArtifacts), arg0, arg1) } -// GetAttachment mocks base method +// GetAttachment mocks base method. func (m *MockBuildClient) GetAttachment(arg0 context.Context, arg1 build.GetAttachmentArgs) (io.ReadCloser, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetAttachment", arg0, arg1) @@ -311,13 +355,13 @@ func (m *MockBuildClient) GetAttachment(arg0 context.Context, arg1 build.GetAtta return ret0, ret1 } -// GetAttachment indicates an expected call of GetAttachment +// GetAttachment indicates an expected call of GetAttachment. func (mr *MockBuildClientMockRecorder) GetAttachment(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAttachment", reflect.TypeOf((*MockBuildClient)(nil).GetAttachment), arg0, arg1) } -// GetAttachments mocks base method +// GetAttachments mocks base method. func (m *MockBuildClient) GetAttachments(arg0 context.Context, arg1 build.GetAttachmentsArgs) (*[]build.Attachment, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetAttachments", arg0, arg1) @@ -326,13 +370,13 @@ func (m *MockBuildClient) GetAttachments(arg0 context.Context, arg1 build.GetAtt return ret0, ret1 } -// GetAttachments indicates an expected call of GetAttachments +// GetAttachments indicates an expected call of GetAttachments. func (mr *MockBuildClientMockRecorder) GetAttachments(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAttachments", reflect.TypeOf((*MockBuildClient)(nil).GetAttachments), arg0, arg1) } -// GetBuild mocks base method +// GetBuild mocks base method. func (m *MockBuildClient) GetBuild(arg0 context.Context, arg1 build.GetBuildArgs) (*build.Build, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetBuild", arg0, arg1) @@ -341,13 +385,13 @@ func (m *MockBuildClient) GetBuild(arg0 context.Context, arg1 build.GetBuildArgs return ret0, ret1 } -// GetBuild indicates an expected call of GetBuild +// GetBuild indicates an expected call of GetBuild. func (mr *MockBuildClientMockRecorder) GetBuild(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBuild", reflect.TypeOf((*MockBuildClient)(nil).GetBuild), arg0, arg1) } -// GetBuildBadge mocks base method +// GetBuildBadge mocks base method. func (m *MockBuildClient) GetBuildBadge(arg0 context.Context, arg1 build.GetBuildBadgeArgs) (*build.BuildBadge, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetBuildBadge", arg0, arg1) @@ -356,13 +400,13 @@ func (m *MockBuildClient) GetBuildBadge(arg0 context.Context, arg1 build.GetBuil return ret0, ret1 } -// GetBuildBadge indicates an expected call of GetBuildBadge +// GetBuildBadge indicates an expected call of GetBuildBadge. func (mr *MockBuildClientMockRecorder) GetBuildBadge(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBuildBadge", reflect.TypeOf((*MockBuildClient)(nil).GetBuildBadge), arg0, arg1) } -// GetBuildBadgeData mocks base method +// GetBuildBadgeData mocks base method. func (m *MockBuildClient) GetBuildBadgeData(arg0 context.Context, arg1 build.GetBuildBadgeDataArgs) (*string, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetBuildBadgeData", arg0, arg1) @@ -371,13 +415,13 @@ func (m *MockBuildClient) GetBuildBadgeData(arg0 context.Context, arg1 build.Get return ret0, ret1 } -// GetBuildBadgeData indicates an expected call of GetBuildBadgeData +// GetBuildBadgeData indicates an expected call of GetBuildBadgeData. func (mr *MockBuildClientMockRecorder) GetBuildBadgeData(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBuildBadgeData", reflect.TypeOf((*MockBuildClient)(nil).GetBuildBadgeData), arg0, arg1) } -// GetBuildChanges mocks base method +// GetBuildChanges mocks base method. func (m *MockBuildClient) GetBuildChanges(arg0 context.Context, arg1 build.GetBuildChangesArgs) (*build.GetBuildChangesResponseValue, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetBuildChanges", arg0, arg1) @@ -386,13 +430,13 @@ func (m *MockBuildClient) GetBuildChanges(arg0 context.Context, arg1 build.GetBu return ret0, ret1 } -// GetBuildChanges indicates an expected call of GetBuildChanges +// GetBuildChanges indicates an expected call of GetBuildChanges. func (mr *MockBuildClientMockRecorder) GetBuildChanges(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBuildChanges", reflect.TypeOf((*MockBuildClient)(nil).GetBuildChanges), arg0, arg1) } -// GetBuildController mocks base method +// GetBuildController mocks base method. func (m *MockBuildClient) GetBuildController(arg0 context.Context, arg1 build.GetBuildControllerArgs) (*build.BuildController, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetBuildController", arg0, arg1) @@ -401,13 +445,13 @@ func (m *MockBuildClient) GetBuildController(arg0 context.Context, arg1 build.Ge return ret0, ret1 } -// GetBuildController indicates an expected call of GetBuildController +// GetBuildController indicates an expected call of GetBuildController. func (mr *MockBuildClientMockRecorder) GetBuildController(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBuildController", reflect.TypeOf((*MockBuildClient)(nil).GetBuildController), arg0, arg1) } -// GetBuildControllers mocks base method +// GetBuildControllers mocks base method. func (m *MockBuildClient) GetBuildControllers(arg0 context.Context, arg1 build.GetBuildControllersArgs) (*[]build.BuildController, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetBuildControllers", arg0, arg1) @@ -416,13 +460,28 @@ func (m *MockBuildClient) GetBuildControllers(arg0 context.Context, arg1 build.G return ret0, ret1 } -// GetBuildControllers indicates an expected call of GetBuildControllers +// GetBuildControllers indicates an expected call of GetBuildControllers. func (mr *MockBuildClientMockRecorder) GetBuildControllers(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBuildControllers", reflect.TypeOf((*MockBuildClient)(nil).GetBuildControllers), arg0, arg1) } -// GetBuildLog mocks base method +// GetBuildGeneralSettings mocks base method. +func (m *MockBuildClient) GetBuildGeneralSettings(arg0 context.Context, arg1 build.GetBuildGeneralSettingsArgs) (*build.PipelineGeneralSettings, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetBuildGeneralSettings", arg0, arg1) + ret0, _ := ret[0].(*build.PipelineGeneralSettings) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetBuildGeneralSettings indicates an expected call of GetBuildGeneralSettings. +func (mr *MockBuildClientMockRecorder) GetBuildGeneralSettings(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBuildGeneralSettings", reflect.TypeOf((*MockBuildClient)(nil).GetBuildGeneralSettings), arg0, arg1) +} + +// GetBuildLog mocks base method. func (m *MockBuildClient) GetBuildLog(arg0 context.Context, arg1 build.GetBuildLogArgs) (io.ReadCloser, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetBuildLog", arg0, arg1) @@ -431,13 +490,13 @@ func (m *MockBuildClient) GetBuildLog(arg0 context.Context, arg1 build.GetBuildL return ret0, ret1 } -// GetBuildLog indicates an expected call of GetBuildLog +// GetBuildLog indicates an expected call of GetBuildLog. func (mr *MockBuildClientMockRecorder) GetBuildLog(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBuildLog", reflect.TypeOf((*MockBuildClient)(nil).GetBuildLog), arg0, arg1) } -// GetBuildLogLines mocks base method +// GetBuildLogLines mocks base method. func (m *MockBuildClient) GetBuildLogLines(arg0 context.Context, arg1 build.GetBuildLogLinesArgs) (*[]string, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetBuildLogLines", arg0, arg1) @@ -446,13 +505,13 @@ func (m *MockBuildClient) GetBuildLogLines(arg0 context.Context, arg1 build.GetB return ret0, ret1 } -// GetBuildLogLines indicates an expected call of GetBuildLogLines +// GetBuildLogLines indicates an expected call of GetBuildLogLines. func (mr *MockBuildClientMockRecorder) GetBuildLogLines(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBuildLogLines", reflect.TypeOf((*MockBuildClient)(nil).GetBuildLogLines), arg0, arg1) } -// GetBuildLogZip mocks base method +// GetBuildLogZip mocks base method. func (m *MockBuildClient) GetBuildLogZip(arg0 context.Context, arg1 build.GetBuildLogZipArgs) (io.ReadCloser, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetBuildLogZip", arg0, arg1) @@ -461,13 +520,13 @@ func (m *MockBuildClient) GetBuildLogZip(arg0 context.Context, arg1 build.GetBui return ret0, ret1 } -// GetBuildLogZip indicates an expected call of GetBuildLogZip +// GetBuildLogZip indicates an expected call of GetBuildLogZip. func (mr *MockBuildClientMockRecorder) GetBuildLogZip(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBuildLogZip", reflect.TypeOf((*MockBuildClient)(nil).GetBuildLogZip), arg0, arg1) } -// GetBuildLogs mocks base method +// GetBuildLogs mocks base method. func (m *MockBuildClient) GetBuildLogs(arg0 context.Context, arg1 build.GetBuildLogsArgs) (*[]build.BuildLog, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetBuildLogs", arg0, arg1) @@ -476,13 +535,13 @@ func (m *MockBuildClient) GetBuildLogs(arg0 context.Context, arg1 build.GetBuild return ret0, ret1 } -// GetBuildLogs indicates an expected call of GetBuildLogs +// GetBuildLogs indicates an expected call of GetBuildLogs. func (mr *MockBuildClientMockRecorder) GetBuildLogs(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBuildLogs", reflect.TypeOf((*MockBuildClient)(nil).GetBuildLogs), arg0, arg1) } -// GetBuildLogsZip mocks base method +// GetBuildLogsZip mocks base method. func (m *MockBuildClient) GetBuildLogsZip(arg0 context.Context, arg1 build.GetBuildLogsZipArgs) (io.ReadCloser, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetBuildLogsZip", arg0, arg1) @@ -491,13 +550,13 @@ func (m *MockBuildClient) GetBuildLogsZip(arg0 context.Context, arg1 build.GetBu return ret0, ret1 } -// GetBuildLogsZip indicates an expected call of GetBuildLogsZip +// GetBuildLogsZip indicates an expected call of GetBuildLogsZip. func (mr *MockBuildClientMockRecorder) GetBuildLogsZip(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBuildLogsZip", reflect.TypeOf((*MockBuildClient)(nil).GetBuildLogsZip), arg0, arg1) } -// GetBuildOptionDefinitions mocks base method +// GetBuildOptionDefinitions mocks base method. func (m *MockBuildClient) GetBuildOptionDefinitions(arg0 context.Context, arg1 build.GetBuildOptionDefinitionsArgs) (*[]build.BuildOptionDefinition, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetBuildOptionDefinitions", arg0, arg1) @@ -506,13 +565,13 @@ func (m *MockBuildClient) GetBuildOptionDefinitions(arg0 context.Context, arg1 b return ret0, ret1 } -// GetBuildOptionDefinitions indicates an expected call of GetBuildOptionDefinitions +// GetBuildOptionDefinitions indicates an expected call of GetBuildOptionDefinitions. func (mr *MockBuildClientMockRecorder) GetBuildOptionDefinitions(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBuildOptionDefinitions", reflect.TypeOf((*MockBuildClient)(nil).GetBuildOptionDefinitions), arg0, arg1) } -// GetBuildProperties mocks base method +// GetBuildProperties mocks base method. func (m *MockBuildClient) GetBuildProperties(arg0 context.Context, arg1 build.GetBuildPropertiesArgs) (interface{}, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetBuildProperties", arg0, arg1) @@ -521,13 +580,13 @@ func (m *MockBuildClient) GetBuildProperties(arg0 context.Context, arg1 build.Ge return ret0, ret1 } -// GetBuildProperties indicates an expected call of GetBuildProperties +// GetBuildProperties indicates an expected call of GetBuildProperties. func (mr *MockBuildClientMockRecorder) GetBuildProperties(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBuildProperties", reflect.TypeOf((*MockBuildClient)(nil).GetBuildProperties), arg0, arg1) } -// GetBuildReport mocks base method +// GetBuildReport mocks base method. func (m *MockBuildClient) GetBuildReport(arg0 context.Context, arg1 build.GetBuildReportArgs) (*build.BuildReportMetadata, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetBuildReport", arg0, arg1) @@ -536,13 +595,13 @@ func (m *MockBuildClient) GetBuildReport(arg0 context.Context, arg1 build.GetBui return ret0, ret1 } -// GetBuildReport indicates an expected call of GetBuildReport +// GetBuildReport indicates an expected call of GetBuildReport. func (mr *MockBuildClientMockRecorder) GetBuildReport(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBuildReport", reflect.TypeOf((*MockBuildClient)(nil).GetBuildReport), arg0, arg1) } -// GetBuildReportHtmlContent mocks base method +// GetBuildReportHtmlContent mocks base method. func (m *MockBuildClient) GetBuildReportHtmlContent(arg0 context.Context, arg1 build.GetBuildReportHtmlContentArgs) (io.ReadCloser, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetBuildReportHtmlContent", arg0, arg1) @@ -551,13 +610,13 @@ func (m *MockBuildClient) GetBuildReportHtmlContent(arg0 context.Context, arg1 b return ret0, ret1 } -// GetBuildReportHtmlContent indicates an expected call of GetBuildReportHtmlContent +// GetBuildReportHtmlContent indicates an expected call of GetBuildReportHtmlContent. func (mr *MockBuildClientMockRecorder) GetBuildReportHtmlContent(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBuildReportHtmlContent", reflect.TypeOf((*MockBuildClient)(nil).GetBuildReportHtmlContent), arg0, arg1) } -// GetBuildSettings mocks base method +// GetBuildSettings mocks base method. func (m *MockBuildClient) GetBuildSettings(arg0 context.Context, arg1 build.GetBuildSettingsArgs) (*build.BuildSettings, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetBuildSettings", arg0, arg1) @@ -566,13 +625,13 @@ func (m *MockBuildClient) GetBuildSettings(arg0 context.Context, arg1 build.GetB return ret0, ret1 } -// GetBuildSettings indicates an expected call of GetBuildSettings +// GetBuildSettings indicates an expected call of GetBuildSettings. func (mr *MockBuildClientMockRecorder) GetBuildSettings(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBuildSettings", reflect.TypeOf((*MockBuildClient)(nil).GetBuildSettings), arg0, arg1) } -// GetBuildTags mocks base method +// GetBuildTags mocks base method. func (m *MockBuildClient) GetBuildTags(arg0 context.Context, arg1 build.GetBuildTagsArgs) (*[]string, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetBuildTags", arg0, arg1) @@ -581,13 +640,13 @@ func (m *MockBuildClient) GetBuildTags(arg0 context.Context, arg1 build.GetBuild return ret0, ret1 } -// GetBuildTags indicates an expected call of GetBuildTags +// GetBuildTags indicates an expected call of GetBuildTags. func (mr *MockBuildClientMockRecorder) GetBuildTags(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBuildTags", reflect.TypeOf((*MockBuildClient)(nil).GetBuildTags), arg0, arg1) } -// GetBuildTimeline mocks base method +// GetBuildTimeline mocks base method. func (m *MockBuildClient) GetBuildTimeline(arg0 context.Context, arg1 build.GetBuildTimelineArgs) (*build.Timeline, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetBuildTimeline", arg0, arg1) @@ -596,13 +655,13 @@ func (m *MockBuildClient) GetBuildTimeline(arg0 context.Context, arg1 build.GetB return ret0, ret1 } -// GetBuildTimeline indicates an expected call of GetBuildTimeline +// GetBuildTimeline indicates an expected call of GetBuildTimeline. func (mr *MockBuildClientMockRecorder) GetBuildTimeline(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBuildTimeline", reflect.TypeOf((*MockBuildClient)(nil).GetBuildTimeline), arg0, arg1) } -// GetBuildWorkItemsRefs mocks base method +// GetBuildWorkItemsRefs mocks base method. func (m *MockBuildClient) GetBuildWorkItemsRefs(arg0 context.Context, arg1 build.GetBuildWorkItemsRefsArgs) (*[]webapi.ResourceRef, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetBuildWorkItemsRefs", arg0, arg1) @@ -611,13 +670,13 @@ func (m *MockBuildClient) GetBuildWorkItemsRefs(arg0 context.Context, arg1 build return ret0, ret1 } -// GetBuildWorkItemsRefs indicates an expected call of GetBuildWorkItemsRefs +// GetBuildWorkItemsRefs indicates an expected call of GetBuildWorkItemsRefs. func (mr *MockBuildClientMockRecorder) GetBuildWorkItemsRefs(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBuildWorkItemsRefs", reflect.TypeOf((*MockBuildClient)(nil).GetBuildWorkItemsRefs), arg0, arg1) } -// GetBuildWorkItemsRefsFromCommits mocks base method +// GetBuildWorkItemsRefsFromCommits mocks base method. func (m *MockBuildClient) GetBuildWorkItemsRefsFromCommits(arg0 context.Context, arg1 build.GetBuildWorkItemsRefsFromCommitsArgs) (*[]webapi.ResourceRef, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetBuildWorkItemsRefsFromCommits", arg0, arg1) @@ -626,13 +685,13 @@ func (m *MockBuildClient) GetBuildWorkItemsRefsFromCommits(arg0 context.Context, return ret0, ret1 } -// GetBuildWorkItemsRefsFromCommits indicates an expected call of GetBuildWorkItemsRefsFromCommits +// GetBuildWorkItemsRefsFromCommits indicates an expected call of GetBuildWorkItemsRefsFromCommits. func (mr *MockBuildClientMockRecorder) GetBuildWorkItemsRefsFromCommits(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBuildWorkItemsRefsFromCommits", reflect.TypeOf((*MockBuildClient)(nil).GetBuildWorkItemsRefsFromCommits), arg0, arg1) } -// GetBuilds mocks base method +// GetBuilds mocks base method. func (m *MockBuildClient) GetBuilds(arg0 context.Context, arg1 build.GetBuildsArgs) (*build.GetBuildsResponseValue, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetBuilds", arg0, arg1) @@ -641,13 +700,13 @@ func (m *MockBuildClient) GetBuilds(arg0 context.Context, arg1 build.GetBuildsAr return ret0, ret1 } -// GetBuilds indicates an expected call of GetBuilds +// GetBuilds indicates an expected call of GetBuilds. func (mr *MockBuildClientMockRecorder) GetBuilds(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBuilds", reflect.TypeOf((*MockBuildClient)(nil).GetBuilds), arg0, arg1) } -// GetChangesBetweenBuilds mocks base method +// GetChangesBetweenBuilds mocks base method. func (m *MockBuildClient) GetChangesBetweenBuilds(arg0 context.Context, arg1 build.GetChangesBetweenBuildsArgs) (*[]build.Change, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetChangesBetweenBuilds", arg0, arg1) @@ -656,13 +715,13 @@ func (m *MockBuildClient) GetChangesBetweenBuilds(arg0 context.Context, arg1 bui return ret0, ret1 } -// GetChangesBetweenBuilds indicates an expected call of GetChangesBetweenBuilds +// GetChangesBetweenBuilds indicates an expected call of GetChangesBetweenBuilds. func (mr *MockBuildClientMockRecorder) GetChangesBetweenBuilds(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetChangesBetweenBuilds", reflect.TypeOf((*MockBuildClient)(nil).GetChangesBetweenBuilds), arg0, arg1) } -// GetDefinition mocks base method +// GetDefinition mocks base method. func (m *MockBuildClient) GetDefinition(arg0 context.Context, arg1 build.GetDefinitionArgs) (*build.BuildDefinition, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetDefinition", arg0, arg1) @@ -671,13 +730,13 @@ func (m *MockBuildClient) GetDefinition(arg0 context.Context, arg1 build.GetDefi return ret0, ret1 } -// GetDefinition indicates an expected call of GetDefinition +// GetDefinition indicates an expected call of GetDefinition. func (mr *MockBuildClientMockRecorder) GetDefinition(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDefinition", reflect.TypeOf((*MockBuildClient)(nil).GetDefinition), arg0, arg1) } -// GetDefinitionMetrics mocks base method +// GetDefinitionMetrics mocks base method. func (m *MockBuildClient) GetDefinitionMetrics(arg0 context.Context, arg1 build.GetDefinitionMetricsArgs) (*[]build.BuildMetric, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetDefinitionMetrics", arg0, arg1) @@ -686,13 +745,13 @@ func (m *MockBuildClient) GetDefinitionMetrics(arg0 context.Context, arg1 build. return ret0, ret1 } -// GetDefinitionMetrics indicates an expected call of GetDefinitionMetrics +// GetDefinitionMetrics indicates an expected call of GetDefinitionMetrics. func (mr *MockBuildClientMockRecorder) GetDefinitionMetrics(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDefinitionMetrics", reflect.TypeOf((*MockBuildClient)(nil).GetDefinitionMetrics), arg0, arg1) } -// GetDefinitionProperties mocks base method +// GetDefinitionProperties mocks base method. func (m *MockBuildClient) GetDefinitionProperties(arg0 context.Context, arg1 build.GetDefinitionPropertiesArgs) (interface{}, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetDefinitionProperties", arg0, arg1) @@ -701,13 +760,13 @@ func (m *MockBuildClient) GetDefinitionProperties(arg0 context.Context, arg1 bui return ret0, ret1 } -// GetDefinitionProperties indicates an expected call of GetDefinitionProperties +// GetDefinitionProperties indicates an expected call of GetDefinitionProperties. func (mr *MockBuildClientMockRecorder) GetDefinitionProperties(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDefinitionProperties", reflect.TypeOf((*MockBuildClient)(nil).GetDefinitionProperties), arg0, arg1) } -// GetDefinitionResources mocks base method +// GetDefinitionResources mocks base method. func (m *MockBuildClient) GetDefinitionResources(arg0 context.Context, arg1 build.GetDefinitionResourcesArgs) (*[]build.DefinitionResourceReference, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetDefinitionResources", arg0, arg1) @@ -716,13 +775,13 @@ func (m *MockBuildClient) GetDefinitionResources(arg0 context.Context, arg1 buil return ret0, ret1 } -// GetDefinitionResources indicates an expected call of GetDefinitionResources +// GetDefinitionResources indicates an expected call of GetDefinitionResources. func (mr *MockBuildClientMockRecorder) GetDefinitionResources(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDefinitionResources", reflect.TypeOf((*MockBuildClient)(nil).GetDefinitionResources), arg0, arg1) } -// GetDefinitionRevisions mocks base method +// GetDefinitionRevisions mocks base method. func (m *MockBuildClient) GetDefinitionRevisions(arg0 context.Context, arg1 build.GetDefinitionRevisionsArgs) (*[]build.BuildDefinitionRevision, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetDefinitionRevisions", arg0, arg1) @@ -731,13 +790,13 @@ func (m *MockBuildClient) GetDefinitionRevisions(arg0 context.Context, arg1 buil return ret0, ret1 } -// GetDefinitionRevisions indicates an expected call of GetDefinitionRevisions +// GetDefinitionRevisions indicates an expected call of GetDefinitionRevisions. func (mr *MockBuildClientMockRecorder) GetDefinitionRevisions(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDefinitionRevisions", reflect.TypeOf((*MockBuildClient)(nil).GetDefinitionRevisions), arg0, arg1) } -// GetDefinitionTags mocks base method +// GetDefinitionTags mocks base method. func (m *MockBuildClient) GetDefinitionTags(arg0 context.Context, arg1 build.GetDefinitionTagsArgs) (*[]string, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetDefinitionTags", arg0, arg1) @@ -746,13 +805,13 @@ func (m *MockBuildClient) GetDefinitionTags(arg0 context.Context, arg1 build.Get return ret0, ret1 } -// GetDefinitionTags indicates an expected call of GetDefinitionTags +// GetDefinitionTags indicates an expected call of GetDefinitionTags. func (mr *MockBuildClientMockRecorder) GetDefinitionTags(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDefinitionTags", reflect.TypeOf((*MockBuildClient)(nil).GetDefinitionTags), arg0, arg1) } -// GetDefinitions mocks base method +// GetDefinitions mocks base method. func (m *MockBuildClient) GetDefinitions(arg0 context.Context, arg1 build.GetDefinitionsArgs) (*build.GetDefinitionsResponseValue, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetDefinitions", arg0, arg1) @@ -761,13 +820,13 @@ func (m *MockBuildClient) GetDefinitions(arg0 context.Context, arg1 build.GetDef return ret0, ret1 } -// GetDefinitions indicates an expected call of GetDefinitions +// GetDefinitions indicates an expected call of GetDefinitions. func (mr *MockBuildClientMockRecorder) GetDefinitions(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDefinitions", reflect.TypeOf((*MockBuildClient)(nil).GetDefinitions), arg0, arg1) } -// GetFile mocks base method +// GetFile mocks base method. func (m *MockBuildClient) GetFile(arg0 context.Context, arg1 build.GetFileArgs) (io.ReadCloser, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetFile", arg0, arg1) @@ -776,13 +835,13 @@ func (m *MockBuildClient) GetFile(arg0 context.Context, arg1 build.GetFileArgs) return ret0, ret1 } -// GetFile indicates an expected call of GetFile +// GetFile indicates an expected call of GetFile. func (mr *MockBuildClientMockRecorder) GetFile(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFile", reflect.TypeOf((*MockBuildClient)(nil).GetFile), arg0, arg1) } -// GetFileContents mocks base method +// GetFileContents mocks base method. func (m *MockBuildClient) GetFileContents(arg0 context.Context, arg1 build.GetFileContentsArgs) (io.ReadCloser, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetFileContents", arg0, arg1) @@ -791,13 +850,13 @@ func (m *MockBuildClient) GetFileContents(arg0 context.Context, arg1 build.GetFi return ret0, ret1 } -// GetFileContents indicates an expected call of GetFileContents +// GetFileContents indicates an expected call of GetFileContents. func (mr *MockBuildClientMockRecorder) GetFileContents(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFileContents", reflect.TypeOf((*MockBuildClient)(nil).GetFileContents), arg0, arg1) } -// GetFolders mocks base method +// GetFolders mocks base method. func (m *MockBuildClient) GetFolders(arg0 context.Context, arg1 build.GetFoldersArgs) (*[]build.Folder, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetFolders", arg0, arg1) @@ -806,13 +865,13 @@ func (m *MockBuildClient) GetFolders(arg0 context.Context, arg1 build.GetFolders return ret0, ret1 } -// GetFolders indicates an expected call of GetFolders +// GetFolders indicates an expected call of GetFolders. func (mr *MockBuildClientMockRecorder) GetFolders(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFolders", reflect.TypeOf((*MockBuildClient)(nil).GetFolders), arg0, arg1) } -// GetLatestBuild mocks base method +// GetLatestBuild mocks base method. func (m *MockBuildClient) GetLatestBuild(arg0 context.Context, arg1 build.GetLatestBuildArgs) (*build.Build, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetLatestBuild", arg0, arg1) @@ -821,13 +880,13 @@ func (m *MockBuildClient) GetLatestBuild(arg0 context.Context, arg1 build.GetLat return ret0, ret1 } -// GetLatestBuild indicates an expected call of GetLatestBuild +// GetLatestBuild indicates an expected call of GetLatestBuild. func (mr *MockBuildClientMockRecorder) GetLatestBuild(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLatestBuild", reflect.TypeOf((*MockBuildClient)(nil).GetLatestBuild), arg0, arg1) } -// GetPathContents mocks base method +// GetPathContents mocks base method. func (m *MockBuildClient) GetPathContents(arg0 context.Context, arg1 build.GetPathContentsArgs) (*[]build.SourceRepositoryItem, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetPathContents", arg0, arg1) @@ -836,13 +895,13 @@ func (m *MockBuildClient) GetPathContents(arg0 context.Context, arg1 build.GetPa return ret0, ret1 } -// GetPathContents indicates an expected call of GetPathContents +// GetPathContents indicates an expected call of GetPathContents. func (mr *MockBuildClientMockRecorder) GetPathContents(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPathContents", reflect.TypeOf((*MockBuildClient)(nil).GetPathContents), arg0, arg1) } -// GetProjectMetrics mocks base method +// GetProjectMetrics mocks base method. func (m *MockBuildClient) GetProjectMetrics(arg0 context.Context, arg1 build.GetProjectMetricsArgs) (*[]build.BuildMetric, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetProjectMetrics", arg0, arg1) @@ -851,13 +910,13 @@ func (m *MockBuildClient) GetProjectMetrics(arg0 context.Context, arg1 build.Get return ret0, ret1 } -// GetProjectMetrics indicates an expected call of GetProjectMetrics +// GetProjectMetrics indicates an expected call of GetProjectMetrics. func (mr *MockBuildClientMockRecorder) GetProjectMetrics(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetProjectMetrics", reflect.TypeOf((*MockBuildClient)(nil).GetProjectMetrics), arg0, arg1) } -// GetProjectResources mocks base method +// GetProjectResources mocks base method. func (m *MockBuildClient) GetProjectResources(arg0 context.Context, arg1 build.GetProjectResourcesArgs) (*[]build.DefinitionResourceReference, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetProjectResources", arg0, arg1) @@ -866,13 +925,13 @@ func (m *MockBuildClient) GetProjectResources(arg0 context.Context, arg1 build.G return ret0, ret1 } -// GetProjectResources indicates an expected call of GetProjectResources +// GetProjectResources indicates an expected call of GetProjectResources. func (mr *MockBuildClientMockRecorder) GetProjectResources(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetProjectResources", reflect.TypeOf((*MockBuildClient)(nil).GetProjectResources), arg0, arg1) } -// GetPullRequest mocks base method +// GetPullRequest mocks base method. func (m *MockBuildClient) GetPullRequest(arg0 context.Context, arg1 build.GetPullRequestArgs) (*build.PullRequest, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetPullRequest", arg0, arg1) @@ -881,13 +940,13 @@ func (m *MockBuildClient) GetPullRequest(arg0 context.Context, arg1 build.GetPul return ret0, ret1 } -// GetPullRequest indicates an expected call of GetPullRequest +// GetPullRequest indicates an expected call of GetPullRequest. func (mr *MockBuildClientMockRecorder) GetPullRequest(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPullRequest", reflect.TypeOf((*MockBuildClient)(nil).GetPullRequest), arg0, arg1) } -// GetResourceUsage mocks base method +// GetResourceUsage mocks base method. func (m *MockBuildClient) GetResourceUsage(arg0 context.Context, arg1 build.GetResourceUsageArgs) (*build.BuildResourceUsage, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetResourceUsage", arg0, arg1) @@ -896,13 +955,88 @@ func (m *MockBuildClient) GetResourceUsage(arg0 context.Context, arg1 build.GetR return ret0, ret1 } -// GetResourceUsage indicates an expected call of GetResourceUsage +// GetResourceUsage indicates an expected call of GetResourceUsage. func (mr *MockBuildClientMockRecorder) GetResourceUsage(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetResourceUsage", reflect.TypeOf((*MockBuildClient)(nil).GetResourceUsage), arg0, arg1) } -// GetStatusBadge mocks base method +// GetRetentionLease mocks base method. +func (m *MockBuildClient) GetRetentionLease(arg0 context.Context, arg1 build.GetRetentionLeaseArgs) (*build.RetentionLease, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetRetentionLease", arg0, arg1) + ret0, _ := ret[0].(*build.RetentionLease) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetRetentionLease indicates an expected call of GetRetentionLease. +func (mr *MockBuildClientMockRecorder) GetRetentionLease(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRetentionLease", reflect.TypeOf((*MockBuildClient)(nil).GetRetentionLease), arg0, arg1) +} + +// GetRetentionLeasesByMinimalRetentionLeases mocks base method. +func (m *MockBuildClient) GetRetentionLeasesByMinimalRetentionLeases(arg0 context.Context, arg1 build.GetRetentionLeasesByMinimalRetentionLeasesArgs) (*[]build.RetentionLease, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetRetentionLeasesByMinimalRetentionLeases", arg0, arg1) + ret0, _ := ret[0].(*[]build.RetentionLease) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetRetentionLeasesByMinimalRetentionLeases indicates an expected call of GetRetentionLeasesByMinimalRetentionLeases. +func (mr *MockBuildClientMockRecorder) GetRetentionLeasesByMinimalRetentionLeases(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRetentionLeasesByMinimalRetentionLeases", reflect.TypeOf((*MockBuildClient)(nil).GetRetentionLeasesByMinimalRetentionLeases), arg0, arg1) +} + +// GetRetentionLeasesByOwnerId mocks base method. +func (m *MockBuildClient) GetRetentionLeasesByOwnerId(arg0 context.Context, arg1 build.GetRetentionLeasesByOwnerIdArgs) (*[]build.RetentionLease, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetRetentionLeasesByOwnerId", arg0, arg1) + ret0, _ := ret[0].(*[]build.RetentionLease) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetRetentionLeasesByOwnerId indicates an expected call of GetRetentionLeasesByOwnerId. +func (mr *MockBuildClientMockRecorder) GetRetentionLeasesByOwnerId(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRetentionLeasesByOwnerId", reflect.TypeOf((*MockBuildClient)(nil).GetRetentionLeasesByOwnerId), arg0, arg1) +} + +// GetRetentionLeasesByUserId mocks base method. +func (m *MockBuildClient) GetRetentionLeasesByUserId(arg0 context.Context, arg1 build.GetRetentionLeasesByUserIdArgs) (*[]build.RetentionLease, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetRetentionLeasesByUserId", arg0, arg1) + ret0, _ := ret[0].(*[]build.RetentionLease) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetRetentionLeasesByUserId indicates an expected call of GetRetentionLeasesByUserId. +func (mr *MockBuildClientMockRecorder) GetRetentionLeasesByUserId(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRetentionLeasesByUserId", reflect.TypeOf((*MockBuildClient)(nil).GetRetentionLeasesByUserId), arg0, arg1) +} + +// GetRetentionSettings mocks base method. +func (m *MockBuildClient) GetRetentionSettings(arg0 context.Context, arg1 build.GetRetentionSettingsArgs) (*build.ProjectRetentionSetting, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetRetentionSettings", arg0, arg1) + ret0, _ := ret[0].(*build.ProjectRetentionSetting) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetRetentionSettings indicates an expected call of GetRetentionSettings. +func (mr *MockBuildClientMockRecorder) GetRetentionSettings(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRetentionSettings", reflect.TypeOf((*MockBuildClient)(nil).GetRetentionSettings), arg0, arg1) +} + +// GetStatusBadge mocks base method. func (m *MockBuildClient) GetStatusBadge(arg0 context.Context, arg1 build.GetStatusBadgeArgs) (*string, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetStatusBadge", arg0, arg1) @@ -911,13 +1045,13 @@ func (m *MockBuildClient) GetStatusBadge(arg0 context.Context, arg1 build.GetSta return ret0, ret1 } -// GetStatusBadge indicates an expected call of GetStatusBadge +// GetStatusBadge indicates an expected call of GetStatusBadge. func (mr *MockBuildClientMockRecorder) GetStatusBadge(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetStatusBadge", reflect.TypeOf((*MockBuildClient)(nil).GetStatusBadge), arg0, arg1) } -// GetTags mocks base method +// GetTags mocks base method. func (m *MockBuildClient) GetTags(arg0 context.Context, arg1 build.GetTagsArgs) (*[]string, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetTags", arg0, arg1) @@ -926,13 +1060,13 @@ func (m *MockBuildClient) GetTags(arg0 context.Context, arg1 build.GetTagsArgs) return ret0, ret1 } -// GetTags indicates an expected call of GetTags +// GetTags indicates an expected call of GetTags. func (mr *MockBuildClientMockRecorder) GetTags(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTags", reflect.TypeOf((*MockBuildClient)(nil).GetTags), arg0, arg1) } -// GetTemplate mocks base method +// GetTemplate mocks base method. func (m *MockBuildClient) GetTemplate(arg0 context.Context, arg1 build.GetTemplateArgs) (*build.BuildDefinitionTemplate, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetTemplate", arg0, arg1) @@ -941,13 +1075,13 @@ func (m *MockBuildClient) GetTemplate(arg0 context.Context, arg1 build.GetTempla return ret0, ret1 } -// GetTemplate indicates an expected call of GetTemplate +// GetTemplate indicates an expected call of GetTemplate. func (mr *MockBuildClientMockRecorder) GetTemplate(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTemplate", reflect.TypeOf((*MockBuildClient)(nil).GetTemplate), arg0, arg1) } -// GetTemplates mocks base method +// GetTemplates mocks base method. func (m *MockBuildClient) GetTemplates(arg0 context.Context, arg1 build.GetTemplatesArgs) (*[]build.BuildDefinitionTemplate, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetTemplates", arg0, arg1) @@ -956,13 +1090,13 @@ func (m *MockBuildClient) GetTemplates(arg0 context.Context, arg1 build.GetTempl return ret0, ret1 } -// GetTemplates indicates an expected call of GetTemplates +// GetTemplates indicates an expected call of GetTemplates. func (mr *MockBuildClientMockRecorder) GetTemplates(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTemplates", reflect.TypeOf((*MockBuildClient)(nil).GetTemplates), arg0, arg1) } -// GetWorkItemsBetweenBuilds mocks base method +// GetWorkItemsBetweenBuilds mocks base method. func (m *MockBuildClient) GetWorkItemsBetweenBuilds(arg0 context.Context, arg1 build.GetWorkItemsBetweenBuildsArgs) (*[]webapi.ResourceRef, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetWorkItemsBetweenBuilds", arg0, arg1) @@ -971,13 +1105,13 @@ func (m *MockBuildClient) GetWorkItemsBetweenBuilds(arg0 context.Context, arg1 b return ret0, ret1 } -// GetWorkItemsBetweenBuilds indicates an expected call of GetWorkItemsBetweenBuilds +// GetWorkItemsBetweenBuilds indicates an expected call of GetWorkItemsBetweenBuilds. func (mr *MockBuildClientMockRecorder) GetWorkItemsBetweenBuilds(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWorkItemsBetweenBuilds", reflect.TypeOf((*MockBuildClient)(nil).GetWorkItemsBetweenBuilds), arg0, arg1) } -// ListBranches mocks base method +// ListBranches mocks base method. func (m *MockBuildClient) ListBranches(arg0 context.Context, arg1 build.ListBranchesArgs) (*[]string, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ListBranches", arg0, arg1) @@ -986,13 +1120,13 @@ func (m *MockBuildClient) ListBranches(arg0 context.Context, arg1 build.ListBran return ret0, ret1 } -// ListBranches indicates an expected call of ListBranches +// ListBranches indicates an expected call of ListBranches. func (mr *MockBuildClientMockRecorder) ListBranches(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListBranches", reflect.TypeOf((*MockBuildClient)(nil).ListBranches), arg0, arg1) } -// ListRepositories mocks base method +// ListRepositories mocks base method. func (m *MockBuildClient) ListRepositories(arg0 context.Context, arg1 build.ListRepositoriesArgs) (*build.SourceRepositories, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ListRepositories", arg0, arg1) @@ -1001,13 +1135,13 @@ func (m *MockBuildClient) ListRepositories(arg0 context.Context, arg1 build.List return ret0, ret1 } -// ListRepositories indicates an expected call of ListRepositories +// ListRepositories indicates an expected call of ListRepositories. func (mr *MockBuildClientMockRecorder) ListRepositories(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRepositories", reflect.TypeOf((*MockBuildClient)(nil).ListRepositories), arg0, arg1) } -// ListSourceProviders mocks base method +// ListSourceProviders mocks base method. func (m *MockBuildClient) ListSourceProviders(arg0 context.Context, arg1 build.ListSourceProvidersArgs) (*[]build.SourceProviderAttributes, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ListSourceProviders", arg0, arg1) @@ -1016,13 +1150,13 @@ func (m *MockBuildClient) ListSourceProviders(arg0 context.Context, arg1 build.L return ret0, ret1 } -// ListSourceProviders indicates an expected call of ListSourceProviders +// ListSourceProviders indicates an expected call of ListSourceProviders. func (mr *MockBuildClientMockRecorder) ListSourceProviders(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSourceProviders", reflect.TypeOf((*MockBuildClient)(nil).ListSourceProviders), arg0, arg1) } -// ListWebhooks mocks base method +// ListWebhooks mocks base method. func (m *MockBuildClient) ListWebhooks(arg0 context.Context, arg1 build.ListWebhooksArgs) (*[]build.RepositoryWebhook, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ListWebhooks", arg0, arg1) @@ -1031,13 +1165,13 @@ func (m *MockBuildClient) ListWebhooks(arg0 context.Context, arg1 build.ListWebh return ret0, ret1 } -// ListWebhooks indicates an expected call of ListWebhooks +// ListWebhooks indicates an expected call of ListWebhooks. func (mr *MockBuildClientMockRecorder) ListWebhooks(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListWebhooks", reflect.TypeOf((*MockBuildClient)(nil).ListWebhooks), arg0, arg1) } -// QueueBuild mocks base method +// QueueBuild mocks base method. func (m *MockBuildClient) QueueBuild(arg0 context.Context, arg1 build.QueueBuildArgs) (*build.Build, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "QueueBuild", arg0, arg1) @@ -1046,13 +1180,13 @@ func (m *MockBuildClient) QueueBuild(arg0 context.Context, arg1 build.QueueBuild return ret0, ret1 } -// QueueBuild indicates an expected call of QueueBuild +// QueueBuild indicates an expected call of QueueBuild. func (mr *MockBuildClientMockRecorder) QueueBuild(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueBuild", reflect.TypeOf((*MockBuildClient)(nil).QueueBuild), arg0, arg1) } -// RestoreDefinition mocks base method +// RestoreDefinition mocks base method. func (m *MockBuildClient) RestoreDefinition(arg0 context.Context, arg1 build.RestoreDefinitionArgs) (*build.BuildDefinition, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "RestoreDefinition", arg0, arg1) @@ -1061,13 +1195,13 @@ func (m *MockBuildClient) RestoreDefinition(arg0 context.Context, arg1 build.Res return ret0, ret1 } -// RestoreDefinition indicates an expected call of RestoreDefinition +// RestoreDefinition indicates an expected call of RestoreDefinition. func (mr *MockBuildClientMockRecorder) RestoreDefinition(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RestoreDefinition", reflect.TypeOf((*MockBuildClient)(nil).RestoreDefinition), arg0, arg1) } -// RestoreWebhooks mocks base method +// RestoreWebhooks mocks base method. func (m *MockBuildClient) RestoreWebhooks(arg0 context.Context, arg1 build.RestoreWebhooksArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "RestoreWebhooks", arg0, arg1) @@ -1075,13 +1209,13 @@ func (m *MockBuildClient) RestoreWebhooks(arg0 context.Context, arg1 build.Resto return ret0 } -// RestoreWebhooks indicates an expected call of RestoreWebhooks +// RestoreWebhooks indicates an expected call of RestoreWebhooks. func (mr *MockBuildClientMockRecorder) RestoreWebhooks(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RestoreWebhooks", reflect.TypeOf((*MockBuildClient)(nil).RestoreWebhooks), arg0, arg1) } -// SaveTemplate mocks base method +// SaveTemplate mocks base method. func (m *MockBuildClient) SaveTemplate(arg0 context.Context, arg1 build.SaveTemplateArgs) (*build.BuildDefinitionTemplate, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SaveTemplate", arg0, arg1) @@ -1090,13 +1224,13 @@ func (m *MockBuildClient) SaveTemplate(arg0 context.Context, arg1 build.SaveTemp return ret0, ret1 } -// SaveTemplate indicates an expected call of SaveTemplate +// SaveTemplate indicates an expected call of SaveTemplate. func (mr *MockBuildClientMockRecorder) SaveTemplate(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaveTemplate", reflect.TypeOf((*MockBuildClient)(nil).SaveTemplate), arg0, arg1) } -// UpdateBuild mocks base method +// UpdateBuild mocks base method. func (m *MockBuildClient) UpdateBuild(arg0 context.Context, arg1 build.UpdateBuildArgs) (*build.Build, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateBuild", arg0, arg1) @@ -1105,13 +1239,28 @@ func (m *MockBuildClient) UpdateBuild(arg0 context.Context, arg1 build.UpdateBui return ret0, ret1 } -// UpdateBuild indicates an expected call of UpdateBuild +// UpdateBuild indicates an expected call of UpdateBuild. func (mr *MockBuildClientMockRecorder) UpdateBuild(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateBuild", reflect.TypeOf((*MockBuildClient)(nil).UpdateBuild), arg0, arg1) } -// UpdateBuildProperties mocks base method +// UpdateBuildGeneralSettings mocks base method. +func (m *MockBuildClient) UpdateBuildGeneralSettings(arg0 context.Context, arg1 build.UpdateBuildGeneralSettingsArgs) (*build.PipelineGeneralSettings, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateBuildGeneralSettings", arg0, arg1) + ret0, _ := ret[0].(*build.PipelineGeneralSettings) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateBuildGeneralSettings indicates an expected call of UpdateBuildGeneralSettings. +func (mr *MockBuildClientMockRecorder) UpdateBuildGeneralSettings(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateBuildGeneralSettings", reflect.TypeOf((*MockBuildClient)(nil).UpdateBuildGeneralSettings), arg0, arg1) +} + +// UpdateBuildProperties mocks base method. func (m *MockBuildClient) UpdateBuildProperties(arg0 context.Context, arg1 build.UpdateBuildPropertiesArgs) (interface{}, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateBuildProperties", arg0, arg1) @@ -1120,13 +1269,13 @@ func (m *MockBuildClient) UpdateBuildProperties(arg0 context.Context, arg1 build return ret0, ret1 } -// UpdateBuildProperties indicates an expected call of UpdateBuildProperties +// UpdateBuildProperties indicates an expected call of UpdateBuildProperties. func (mr *MockBuildClientMockRecorder) UpdateBuildProperties(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateBuildProperties", reflect.TypeOf((*MockBuildClient)(nil).UpdateBuildProperties), arg0, arg1) } -// UpdateBuildSettings mocks base method +// UpdateBuildSettings mocks base method. func (m *MockBuildClient) UpdateBuildSettings(arg0 context.Context, arg1 build.UpdateBuildSettingsArgs) (*build.BuildSettings, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateBuildSettings", arg0, arg1) @@ -1135,13 +1284,13 @@ func (m *MockBuildClient) UpdateBuildSettings(arg0 context.Context, arg1 build.U return ret0, ret1 } -// UpdateBuildSettings indicates an expected call of UpdateBuildSettings +// UpdateBuildSettings indicates an expected call of UpdateBuildSettings. func (mr *MockBuildClientMockRecorder) UpdateBuildSettings(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateBuildSettings", reflect.TypeOf((*MockBuildClient)(nil).UpdateBuildSettings), arg0, arg1) } -// UpdateBuilds mocks base method +// UpdateBuilds mocks base method. func (m *MockBuildClient) UpdateBuilds(arg0 context.Context, arg1 build.UpdateBuildsArgs) (*[]build.Build, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateBuilds", arg0, arg1) @@ -1150,13 +1299,13 @@ func (m *MockBuildClient) UpdateBuilds(arg0 context.Context, arg1 build.UpdateBu return ret0, ret1 } -// UpdateBuilds indicates an expected call of UpdateBuilds +// UpdateBuilds indicates an expected call of UpdateBuilds. func (mr *MockBuildClientMockRecorder) UpdateBuilds(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateBuilds", reflect.TypeOf((*MockBuildClient)(nil).UpdateBuilds), arg0, arg1) } -// UpdateDefinition mocks base method +// UpdateDefinition mocks base method. func (m *MockBuildClient) UpdateDefinition(arg0 context.Context, arg1 build.UpdateDefinitionArgs) (*build.BuildDefinition, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateDefinition", arg0, arg1) @@ -1165,13 +1314,13 @@ func (m *MockBuildClient) UpdateDefinition(arg0 context.Context, arg1 build.Upda return ret0, ret1 } -// UpdateDefinition indicates an expected call of UpdateDefinition +// UpdateDefinition indicates an expected call of UpdateDefinition. func (mr *MockBuildClientMockRecorder) UpdateDefinition(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDefinition", reflect.TypeOf((*MockBuildClient)(nil).UpdateDefinition), arg0, arg1) } -// UpdateDefinitionProperties mocks base method +// UpdateDefinitionProperties mocks base method. func (m *MockBuildClient) UpdateDefinitionProperties(arg0 context.Context, arg1 build.UpdateDefinitionPropertiesArgs) (interface{}, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateDefinitionProperties", arg0, arg1) @@ -1180,13 +1329,13 @@ func (m *MockBuildClient) UpdateDefinitionProperties(arg0 context.Context, arg1 return ret0, ret1 } -// UpdateDefinitionProperties indicates an expected call of UpdateDefinitionProperties +// UpdateDefinitionProperties indicates an expected call of UpdateDefinitionProperties. func (mr *MockBuildClientMockRecorder) UpdateDefinitionProperties(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDefinitionProperties", reflect.TypeOf((*MockBuildClient)(nil).UpdateDefinitionProperties), arg0, arg1) } -// UpdateFolder mocks base method +// UpdateFolder mocks base method. func (m *MockBuildClient) UpdateFolder(arg0 context.Context, arg1 build.UpdateFolderArgs) (*build.Folder, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateFolder", arg0, arg1) @@ -1195,8 +1344,37 @@ func (m *MockBuildClient) UpdateFolder(arg0 context.Context, arg1 build.UpdateFo return ret0, ret1 } -// UpdateFolder indicates an expected call of UpdateFolder +// UpdateFolder indicates an expected call of UpdateFolder. func (mr *MockBuildClientMockRecorder) UpdateFolder(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateFolder", reflect.TypeOf((*MockBuildClient)(nil).UpdateFolder), arg0, arg1) } + +// UpdateRetentionSettings mocks base method. +func (m *MockBuildClient) UpdateRetentionSettings(arg0 context.Context, arg1 build.UpdateRetentionSettingsArgs) (*build.ProjectRetentionSetting, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateRetentionSettings", arg0, arg1) + ret0, _ := ret[0].(*build.ProjectRetentionSetting) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateRetentionSettings indicates an expected call of UpdateRetentionSettings. +func (mr *MockBuildClientMockRecorder) UpdateRetentionSettings(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRetentionSettings", reflect.TypeOf((*MockBuildClient)(nil).UpdateRetentionSettings), arg0, arg1) +} + +// UpdateStage mocks base method. +func (m *MockBuildClient) UpdateStage(arg0 context.Context, arg1 build.UpdateStageArgs) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateStage", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// UpdateStage indicates an expected call of UpdateStage. +func (mr *MockBuildClientMockRecorder) UpdateStage(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStage", reflect.TypeOf((*MockBuildClient)(nil).UpdateStage), arg0, arg1) +} diff --git a/azdosdkmocks/core_sdk_mock.go b/azdosdkmocks/core_sdk_mock.go index b86b6ac0c..22bbac177 100644 --- a/azdosdkmocks/core_sdk_mock.go +++ b/azdosdkmocks/core_sdk_mock.go @@ -45,13 +45,13 @@ func (m *MockCoreClient) CreateConnectedService(arg0 context.Context, arg1 core. return ret0, ret1 } -// CreateConnectedService indicates an expected call of CreateConnectedService +// CreateConnectedService indicates an expected call of CreateConnectedService. func (mr *MockCoreClientMockRecorder) CreateConnectedService(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateConnectedService", reflect.TypeOf((*MockCoreClient)(nil).CreateConnectedService), arg0, arg1) } -// CreateOrUpdateProxy mocks base method +// CreateOrUpdateProxy mocks base method. func (m *MockCoreClient) CreateOrUpdateProxy(arg0 context.Context, arg1 core.CreateOrUpdateProxyArgs) (*core.Proxy, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateOrUpdateProxy", arg0, arg1) @@ -60,13 +60,13 @@ func (m *MockCoreClient) CreateOrUpdateProxy(arg0 context.Context, arg1 core.Cre return ret0, ret1 } -// CreateOrUpdateProxy indicates an expected call of CreateOrUpdateProxy +// CreateOrUpdateProxy indicates an expected call of CreateOrUpdateProxy. func (mr *MockCoreClientMockRecorder) CreateOrUpdateProxy(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOrUpdateProxy", reflect.TypeOf((*MockCoreClient)(nil).CreateOrUpdateProxy), arg0, arg1) } -// CreateTeam mocks base method +// CreateTeam mocks base method. func (m *MockCoreClient) CreateTeam(arg0 context.Context, arg1 core.CreateTeamArgs) (*core.WebApiTeam, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateTeam", arg0, arg1) @@ -75,13 +75,13 @@ func (m *MockCoreClient) CreateTeam(arg0 context.Context, arg1 core.CreateTeamAr return ret0, ret1 } -// CreateTeam indicates an expected call of CreateTeam +// CreateTeam indicates an expected call of CreateTeam. func (mr *MockCoreClientMockRecorder) CreateTeam(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTeam", reflect.TypeOf((*MockCoreClient)(nil).CreateTeam), arg0, arg1) } -// DeleteProxy mocks base method +// DeleteProxy mocks base method. func (m *MockCoreClient) DeleteProxy(arg0 context.Context, arg1 core.DeleteProxyArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteProxy", arg0, arg1) @@ -89,13 +89,13 @@ func (m *MockCoreClient) DeleteProxy(arg0 context.Context, arg1 core.DeleteProxy return ret0 } -// DeleteProxy indicates an expected call of DeleteProxy +// DeleteProxy indicates an expected call of DeleteProxy. func (mr *MockCoreClientMockRecorder) DeleteProxy(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteProxy", reflect.TypeOf((*MockCoreClient)(nil).DeleteProxy), arg0, arg1) } -// DeleteTeam mocks base method +// DeleteTeam mocks base method. func (m *MockCoreClient) DeleteTeam(arg0 context.Context, arg1 core.DeleteTeamArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteTeam", arg0, arg1) @@ -103,13 +103,13 @@ func (m *MockCoreClient) DeleteTeam(arg0 context.Context, arg1 core.DeleteTeamAr return ret0 } -// DeleteTeam indicates an expected call of DeleteTeam +// DeleteTeam indicates an expected call of DeleteTeam. func (mr *MockCoreClientMockRecorder) DeleteTeam(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTeam", reflect.TypeOf((*MockCoreClient)(nil).DeleteTeam), arg0, arg1) } -// GetAllTeams mocks base method +// GetAllTeams mocks base method. func (m *MockCoreClient) GetAllTeams(arg0 context.Context, arg1 core.GetAllTeamsArgs) (*[]core.WebApiTeam, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetAllTeams", arg0, arg1) @@ -118,13 +118,13 @@ func (m *MockCoreClient) GetAllTeams(arg0 context.Context, arg1 core.GetAllTeams return ret0, ret1 } -// GetAllTeams indicates an expected call of GetAllTeams +// GetAllTeams indicates an expected call of GetAllTeams. func (mr *MockCoreClientMockRecorder) GetAllTeams(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAllTeams", reflect.TypeOf((*MockCoreClient)(nil).GetAllTeams), arg0, arg1) } -// GetConnectedServiceDetails mocks base method +// GetConnectedServiceDetails mocks base method. func (m *MockCoreClient) GetConnectedServiceDetails(arg0 context.Context, arg1 core.GetConnectedServiceDetailsArgs) (*core.WebApiConnectedServiceDetails, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetConnectedServiceDetails", arg0, arg1) @@ -133,13 +133,13 @@ func (m *MockCoreClient) GetConnectedServiceDetails(arg0 context.Context, arg1 c return ret0, ret1 } -// GetConnectedServiceDetails indicates an expected call of GetConnectedServiceDetails +// GetConnectedServiceDetails indicates an expected call of GetConnectedServiceDetails. func (mr *MockCoreClientMockRecorder) GetConnectedServiceDetails(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetConnectedServiceDetails", reflect.TypeOf((*MockCoreClient)(nil).GetConnectedServiceDetails), arg0, arg1) } -// GetConnectedServices mocks base method +// GetConnectedServices mocks base method. func (m *MockCoreClient) GetConnectedServices(arg0 context.Context, arg1 core.GetConnectedServicesArgs) (*[]core.WebApiConnectedService, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetConnectedServices", arg0, arg1) @@ -148,13 +148,13 @@ func (m *MockCoreClient) GetConnectedServices(arg0 context.Context, arg1 core.Ge return ret0, ret1 } -// GetConnectedServices indicates an expected call of GetConnectedServices +// GetConnectedServices indicates an expected call of GetConnectedServices. func (mr *MockCoreClientMockRecorder) GetConnectedServices(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetConnectedServices", reflect.TypeOf((*MockCoreClient)(nil).GetConnectedServices), arg0, arg1) } -// GetProcessById mocks base method +// GetProcessById mocks base method. func (m *MockCoreClient) GetProcessById(arg0 context.Context, arg1 core.GetProcessByIdArgs) (*core.Process, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetProcessById", arg0, arg1) @@ -163,13 +163,13 @@ func (m *MockCoreClient) GetProcessById(arg0 context.Context, arg1 core.GetProce return ret0, ret1 } -// GetProcessById indicates an expected call of GetProcessById +// GetProcessById indicates an expected call of GetProcessById. func (mr *MockCoreClientMockRecorder) GetProcessById(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetProcessById", reflect.TypeOf((*MockCoreClient)(nil).GetProcessById), arg0, arg1) } -// GetProcesses mocks base method +// GetProcesses mocks base method. func (m *MockCoreClient) GetProcesses(arg0 context.Context, arg1 core.GetProcessesArgs) (*[]core.Process, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetProcesses", arg0, arg1) @@ -178,13 +178,13 @@ func (m *MockCoreClient) GetProcesses(arg0 context.Context, arg1 core.GetProcess return ret0, ret1 } -// GetProcesses indicates an expected call of GetProcesses +// GetProcesses indicates an expected call of GetProcesses. func (mr *MockCoreClientMockRecorder) GetProcesses(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetProcesses", reflect.TypeOf((*MockCoreClient)(nil).GetProcesses), arg0, arg1) } -// GetProject mocks base method +// GetProject mocks base method. func (m *MockCoreClient) GetProject(arg0 context.Context, arg1 core.GetProjectArgs) (*core.TeamProject, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetProject", arg0, arg1) @@ -193,13 +193,13 @@ func (m *MockCoreClient) GetProject(arg0 context.Context, arg1 core.GetProjectAr return ret0, ret1 } -// GetProject indicates an expected call of GetProject +// GetProject indicates an expected call of GetProject. func (mr *MockCoreClientMockRecorder) GetProject(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetProject", reflect.TypeOf((*MockCoreClient)(nil).GetProject), arg0, arg1) } -// GetProjectCollection mocks base method +// GetProjectCollection mocks base method. func (m *MockCoreClient) GetProjectCollection(arg0 context.Context, arg1 core.GetProjectCollectionArgs) (*core.TeamProjectCollection, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetProjectCollection", arg0, arg1) @@ -208,13 +208,13 @@ func (m *MockCoreClient) GetProjectCollection(arg0 context.Context, arg1 core.Ge return ret0, ret1 } -// GetProjectCollection indicates an expected call of GetProjectCollection +// GetProjectCollection indicates an expected call of GetProjectCollection. func (mr *MockCoreClientMockRecorder) GetProjectCollection(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetProjectCollection", reflect.TypeOf((*MockCoreClient)(nil).GetProjectCollection), arg0, arg1) } -// GetProjectCollections mocks base method +// GetProjectCollections mocks base method. func (m *MockCoreClient) GetProjectCollections(arg0 context.Context, arg1 core.GetProjectCollectionsArgs) (*[]core.TeamProjectCollectionReference, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetProjectCollections", arg0, arg1) @@ -223,13 +223,13 @@ func (m *MockCoreClient) GetProjectCollections(arg0 context.Context, arg1 core.G return ret0, ret1 } -// GetProjectCollections indicates an expected call of GetProjectCollections +// GetProjectCollections indicates an expected call of GetProjectCollections. func (mr *MockCoreClientMockRecorder) GetProjectCollections(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetProjectCollections", reflect.TypeOf((*MockCoreClient)(nil).GetProjectCollections), arg0, arg1) } -// GetProjectProperties mocks base method +// GetProjectProperties mocks base method. func (m *MockCoreClient) GetProjectProperties(arg0 context.Context, arg1 core.GetProjectPropertiesArgs) (*[]core.ProjectProperty, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetProjectProperties", arg0, arg1) @@ -238,13 +238,13 @@ func (m *MockCoreClient) GetProjectProperties(arg0 context.Context, arg1 core.Ge return ret0, ret1 } -// GetProjectProperties indicates an expected call of GetProjectProperties +// GetProjectProperties indicates an expected call of GetProjectProperties. func (mr *MockCoreClientMockRecorder) GetProjectProperties(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetProjectProperties", reflect.TypeOf((*MockCoreClient)(nil).GetProjectProperties), arg0, arg1) } -// GetProjects mocks base method +// GetProjects mocks base method. func (m *MockCoreClient) GetProjects(arg0 context.Context, arg1 core.GetProjectsArgs) (*core.GetProjectsResponseValue, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetProjects", arg0, arg1) @@ -253,13 +253,13 @@ func (m *MockCoreClient) GetProjects(arg0 context.Context, arg1 core.GetProjects return ret0, ret1 } -// GetProjects indicates an expected call of GetProjects +// GetProjects indicates an expected call of GetProjects. func (mr *MockCoreClientMockRecorder) GetProjects(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetProjects", reflect.TypeOf((*MockCoreClient)(nil).GetProjects), arg0, arg1) } -// GetProxies mocks base method +// GetProxies mocks base method. func (m *MockCoreClient) GetProxies(arg0 context.Context, arg1 core.GetProxiesArgs) (*[]core.Proxy, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetProxies", arg0, arg1) @@ -268,13 +268,13 @@ func (m *MockCoreClient) GetProxies(arg0 context.Context, arg1 core.GetProxiesAr return ret0, ret1 } -// GetProxies indicates an expected call of GetProxies +// GetProxies indicates an expected call of GetProxies. func (mr *MockCoreClientMockRecorder) GetProxies(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetProxies", reflect.TypeOf((*MockCoreClient)(nil).GetProxies), arg0, arg1) } -// GetTeam mocks base method +// GetTeam mocks base method. func (m *MockCoreClient) GetTeam(arg0 context.Context, arg1 core.GetTeamArgs) (*core.WebApiTeam, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetTeam", arg0, arg1) @@ -283,13 +283,13 @@ func (m *MockCoreClient) GetTeam(arg0 context.Context, arg1 core.GetTeamArgs) (* return ret0, ret1 } -// GetTeam indicates an expected call of GetTeam +// GetTeam indicates an expected call of GetTeam. func (mr *MockCoreClientMockRecorder) GetTeam(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTeam", reflect.TypeOf((*MockCoreClient)(nil).GetTeam), arg0, arg1) } -// GetTeamMembersWithExtendedProperties mocks base method +// GetTeamMembersWithExtendedProperties mocks base method. func (m *MockCoreClient) GetTeamMembersWithExtendedProperties(arg0 context.Context, arg1 core.GetTeamMembersWithExtendedPropertiesArgs) (*[]webapi.TeamMember, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetTeamMembersWithExtendedProperties", arg0, arg1) @@ -298,13 +298,13 @@ func (m *MockCoreClient) GetTeamMembersWithExtendedProperties(arg0 context.Conte return ret0, ret1 } -// GetTeamMembersWithExtendedProperties indicates an expected call of GetTeamMembersWithExtendedProperties +// GetTeamMembersWithExtendedProperties indicates an expected call of GetTeamMembersWithExtendedProperties. func (mr *MockCoreClientMockRecorder) GetTeamMembersWithExtendedProperties(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTeamMembersWithExtendedProperties", reflect.TypeOf((*MockCoreClient)(nil).GetTeamMembersWithExtendedProperties), arg0, arg1) } -// GetTeams mocks base method +// GetTeams mocks base method. func (m *MockCoreClient) GetTeams(arg0 context.Context, arg1 core.GetTeamsArgs) (*[]core.WebApiTeam, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetTeams", arg0, arg1) @@ -313,13 +313,13 @@ func (m *MockCoreClient) GetTeams(arg0 context.Context, arg1 core.GetTeamsArgs) return ret0, ret1 } -// GetTeams indicates an expected call of GetTeams +// GetTeams indicates an expected call of GetTeams. func (mr *MockCoreClientMockRecorder) GetTeams(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTeams", reflect.TypeOf((*MockCoreClient)(nil).GetTeams), arg0, arg1) } -// QueueCreateProject mocks base method +// QueueCreateProject mocks base method. func (m *MockCoreClient) QueueCreateProject(arg0 context.Context, arg1 core.QueueCreateProjectArgs) (*operations.OperationReference, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "QueueCreateProject", arg0, arg1) @@ -328,13 +328,13 @@ func (m *MockCoreClient) QueueCreateProject(arg0 context.Context, arg1 core.Queu return ret0, ret1 } -// QueueCreateProject indicates an expected call of QueueCreateProject +// QueueCreateProject indicates an expected call of QueueCreateProject. func (mr *MockCoreClientMockRecorder) QueueCreateProject(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueCreateProject", reflect.TypeOf((*MockCoreClient)(nil).QueueCreateProject), arg0, arg1) } -// QueueDeleteProject mocks base method +// QueueDeleteProject mocks base method. func (m *MockCoreClient) QueueDeleteProject(arg0 context.Context, arg1 core.QueueDeleteProjectArgs) (*operations.OperationReference, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "QueueDeleteProject", arg0, arg1) @@ -343,13 +343,13 @@ func (m *MockCoreClient) QueueDeleteProject(arg0 context.Context, arg1 core.Queu return ret0, ret1 } -// QueueDeleteProject indicates an expected call of QueueDeleteProject +// QueueDeleteProject indicates an expected call of QueueDeleteProject. func (mr *MockCoreClientMockRecorder) QueueDeleteProject(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueDeleteProject", reflect.TypeOf((*MockCoreClient)(nil).QueueDeleteProject), arg0, arg1) } -// RemoveProjectAvatar mocks base method +// RemoveProjectAvatar mocks base method. func (m *MockCoreClient) RemoveProjectAvatar(arg0 context.Context, arg1 core.RemoveProjectAvatarArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "RemoveProjectAvatar", arg0, arg1) @@ -357,13 +357,13 @@ func (m *MockCoreClient) RemoveProjectAvatar(arg0 context.Context, arg1 core.Rem return ret0 } -// RemoveProjectAvatar indicates an expected call of RemoveProjectAvatar +// RemoveProjectAvatar indicates an expected call of RemoveProjectAvatar. func (mr *MockCoreClientMockRecorder) RemoveProjectAvatar(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveProjectAvatar", reflect.TypeOf((*MockCoreClient)(nil).RemoveProjectAvatar), arg0, arg1) } -// SetProjectAvatar mocks base method +// SetProjectAvatar mocks base method. func (m *MockCoreClient) SetProjectAvatar(arg0 context.Context, arg1 core.SetProjectAvatarArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SetProjectAvatar", arg0, arg1) @@ -371,13 +371,13 @@ func (m *MockCoreClient) SetProjectAvatar(arg0 context.Context, arg1 core.SetPro return ret0 } -// SetProjectAvatar indicates an expected call of SetProjectAvatar +// SetProjectAvatar indicates an expected call of SetProjectAvatar. func (mr *MockCoreClientMockRecorder) SetProjectAvatar(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetProjectAvatar", reflect.TypeOf((*MockCoreClient)(nil).SetProjectAvatar), arg0, arg1) } -// SetProjectProperties mocks base method +// SetProjectProperties mocks base method. func (m *MockCoreClient) SetProjectProperties(arg0 context.Context, arg1 core.SetProjectPropertiesArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SetProjectProperties", arg0, arg1) @@ -385,13 +385,13 @@ func (m *MockCoreClient) SetProjectProperties(arg0 context.Context, arg1 core.Se return ret0 } -// SetProjectProperties indicates an expected call of SetProjectProperties +// SetProjectProperties indicates an expected call of SetProjectProperties. func (mr *MockCoreClientMockRecorder) SetProjectProperties(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetProjectProperties", reflect.TypeOf((*MockCoreClient)(nil).SetProjectProperties), arg0, arg1) } -// UpdateProject mocks base method +// UpdateProject mocks base method. func (m *MockCoreClient) UpdateProject(arg0 context.Context, arg1 core.UpdateProjectArgs) (*operations.OperationReference, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateProject", arg0, arg1) @@ -400,13 +400,13 @@ func (m *MockCoreClient) UpdateProject(arg0 context.Context, arg1 core.UpdatePro return ret0, ret1 } -// UpdateProject indicates an expected call of UpdateProject +// UpdateProject indicates an expected call of UpdateProject. func (mr *MockCoreClientMockRecorder) UpdateProject(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateProject", reflect.TypeOf((*MockCoreClient)(nil).UpdateProject), arg0, arg1) } -// UpdateTeam mocks base method +// UpdateTeam mocks base method. func (m *MockCoreClient) UpdateTeam(arg0 context.Context, arg1 core.UpdateTeamArgs) (*core.WebApiTeam, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateTeam", arg0, arg1) @@ -415,7 +415,7 @@ func (m *MockCoreClient) UpdateTeam(arg0 context.Context, arg1 core.UpdateTeamAr return ret0, ret1 } -// UpdateTeam indicates an expected call of UpdateTeam +// UpdateTeam indicates an expected call of UpdateTeam. func (mr *MockCoreClientMockRecorder) UpdateTeam(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTeam", reflect.TypeOf((*MockCoreClient)(nil).UpdateTeam), arg0, arg1) diff --git a/azdosdkmocks/featuremanagement_sdk_mock.go b/azdosdkmocks/featuremanagement_sdk_mock.go index 6f760d2b2..985e94f16 100644 --- a/azdosdkmocks/featuremanagement_sdk_mock.go +++ b/azdosdkmocks/featuremanagement_sdk_mock.go @@ -43,13 +43,13 @@ func (m *MockFeaturemanagementClient) GetFeature(arg0 context.Context, arg1 feat return ret0, ret1 } -// GetFeature indicates an expected call of GetFeature +// GetFeature indicates an expected call of GetFeature. func (mr *MockFeaturemanagementClientMockRecorder) GetFeature(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFeature", reflect.TypeOf((*MockFeaturemanagementClient)(nil).GetFeature), arg0, arg1) } -// GetFeatureState mocks base method +// GetFeatureState mocks base method. func (m *MockFeaturemanagementClient) GetFeatureState(arg0 context.Context, arg1 featuremanagement.GetFeatureStateArgs) (*featuremanagement.ContributedFeatureState, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetFeatureState", arg0, arg1) @@ -58,13 +58,13 @@ func (m *MockFeaturemanagementClient) GetFeatureState(arg0 context.Context, arg1 return ret0, ret1 } -// GetFeatureState indicates an expected call of GetFeatureState +// GetFeatureState indicates an expected call of GetFeatureState. func (mr *MockFeaturemanagementClientMockRecorder) GetFeatureState(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFeatureState", reflect.TypeOf((*MockFeaturemanagementClient)(nil).GetFeatureState), arg0, arg1) } -// GetFeatureStateForScope mocks base method +// GetFeatureStateForScope mocks base method. func (m *MockFeaturemanagementClient) GetFeatureStateForScope(arg0 context.Context, arg1 featuremanagement.GetFeatureStateForScopeArgs) (*featuremanagement.ContributedFeatureState, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetFeatureStateForScope", arg0, arg1) @@ -73,13 +73,13 @@ func (m *MockFeaturemanagementClient) GetFeatureStateForScope(arg0 context.Conte return ret0, ret1 } -// GetFeatureStateForScope indicates an expected call of GetFeatureStateForScope +// GetFeatureStateForScope indicates an expected call of GetFeatureStateForScope. func (mr *MockFeaturemanagementClientMockRecorder) GetFeatureStateForScope(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFeatureStateForScope", reflect.TypeOf((*MockFeaturemanagementClient)(nil).GetFeatureStateForScope), arg0, arg1) } -// GetFeatures mocks base method +// GetFeatures mocks base method. func (m *MockFeaturemanagementClient) GetFeatures(arg0 context.Context, arg1 featuremanagement.GetFeaturesArgs) (*[]featuremanagement.ContributedFeature, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetFeatures", arg0, arg1) @@ -88,13 +88,13 @@ func (m *MockFeaturemanagementClient) GetFeatures(arg0 context.Context, arg1 fea return ret0, ret1 } -// GetFeatures indicates an expected call of GetFeatures +// GetFeatures indicates an expected call of GetFeatures. func (mr *MockFeaturemanagementClientMockRecorder) GetFeatures(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFeatures", reflect.TypeOf((*MockFeaturemanagementClient)(nil).GetFeatures), arg0, arg1) } -// QueryFeatureStates mocks base method +// QueryFeatureStates mocks base method. func (m *MockFeaturemanagementClient) QueryFeatureStates(arg0 context.Context, arg1 featuremanagement.QueryFeatureStatesArgs) (*featuremanagement.ContributedFeatureStateQuery, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "QueryFeatureStates", arg0, arg1) @@ -103,13 +103,13 @@ func (m *MockFeaturemanagementClient) QueryFeatureStates(arg0 context.Context, a return ret0, ret1 } -// QueryFeatureStates indicates an expected call of QueryFeatureStates +// QueryFeatureStates indicates an expected call of QueryFeatureStates. func (mr *MockFeaturemanagementClientMockRecorder) QueryFeatureStates(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryFeatureStates", reflect.TypeOf((*MockFeaturemanagementClient)(nil).QueryFeatureStates), arg0, arg1) } -// QueryFeatureStatesForDefaultScope mocks base method +// QueryFeatureStatesForDefaultScope mocks base method. func (m *MockFeaturemanagementClient) QueryFeatureStatesForDefaultScope(arg0 context.Context, arg1 featuremanagement.QueryFeatureStatesForDefaultScopeArgs) (*featuremanagement.ContributedFeatureStateQuery, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "QueryFeatureStatesForDefaultScope", arg0, arg1) @@ -118,13 +118,13 @@ func (m *MockFeaturemanagementClient) QueryFeatureStatesForDefaultScope(arg0 con return ret0, ret1 } -// QueryFeatureStatesForDefaultScope indicates an expected call of QueryFeatureStatesForDefaultScope +// QueryFeatureStatesForDefaultScope indicates an expected call of QueryFeatureStatesForDefaultScope. func (mr *MockFeaturemanagementClientMockRecorder) QueryFeatureStatesForDefaultScope(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryFeatureStatesForDefaultScope", reflect.TypeOf((*MockFeaturemanagementClient)(nil).QueryFeatureStatesForDefaultScope), arg0, arg1) } -// QueryFeatureStatesForNamedScope mocks base method +// QueryFeatureStatesForNamedScope mocks base method. func (m *MockFeaturemanagementClient) QueryFeatureStatesForNamedScope(arg0 context.Context, arg1 featuremanagement.QueryFeatureStatesForNamedScopeArgs) (*featuremanagement.ContributedFeatureStateQuery, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "QueryFeatureStatesForNamedScope", arg0, arg1) @@ -133,13 +133,13 @@ func (m *MockFeaturemanagementClient) QueryFeatureStatesForNamedScope(arg0 conte return ret0, ret1 } -// QueryFeatureStatesForNamedScope indicates an expected call of QueryFeatureStatesForNamedScope +// QueryFeatureStatesForNamedScope indicates an expected call of QueryFeatureStatesForNamedScope. func (mr *MockFeaturemanagementClientMockRecorder) QueryFeatureStatesForNamedScope(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryFeatureStatesForNamedScope", reflect.TypeOf((*MockFeaturemanagementClient)(nil).QueryFeatureStatesForNamedScope), arg0, arg1) } -// SetFeatureState mocks base method +// SetFeatureState mocks base method. func (m *MockFeaturemanagementClient) SetFeatureState(arg0 context.Context, arg1 featuremanagement.SetFeatureStateArgs) (*featuremanagement.ContributedFeatureState, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SetFeatureState", arg0, arg1) @@ -148,13 +148,13 @@ func (m *MockFeaturemanagementClient) SetFeatureState(arg0 context.Context, arg1 return ret0, ret1 } -// SetFeatureState indicates an expected call of SetFeatureState +// SetFeatureState indicates an expected call of SetFeatureState. func (mr *MockFeaturemanagementClientMockRecorder) SetFeatureState(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetFeatureState", reflect.TypeOf((*MockFeaturemanagementClient)(nil).SetFeatureState), arg0, arg1) } -// SetFeatureStateForScope mocks base method +// SetFeatureStateForScope mocks base method. func (m *MockFeaturemanagementClient) SetFeatureStateForScope(arg0 context.Context, arg1 featuremanagement.SetFeatureStateForScopeArgs) (*featuremanagement.ContributedFeatureState, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SetFeatureStateForScope", arg0, arg1) @@ -163,7 +163,7 @@ func (m *MockFeaturemanagementClient) SetFeatureStateForScope(arg0 context.Conte return ret0, ret1 } -// SetFeatureStateForScope indicates an expected call of SetFeatureStateForScope +// SetFeatureStateForScope indicates an expected call of SetFeatureStateForScope. func (mr *MockFeaturemanagementClientMockRecorder) SetFeatureStateForScope(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetFeatureStateForScope", reflect.TypeOf((*MockFeaturemanagementClient)(nil).SetFeatureStateForScope), arg0, arg1) diff --git a/azdosdkmocks/git_sdk_mock.go b/azdosdkmocks/git_sdk_mock.go index fef3dd741..8924a6e87 100644 --- a/azdosdkmocks/git_sdk_mock.go +++ b/azdosdkmocks/git_sdk_mock.go @@ -46,13 +46,13 @@ func (m *MockGitClient) CreateAnnotatedTag(arg0 context.Context, arg1 git.Create return ret0, ret1 } -// CreateAnnotatedTag indicates an expected call of CreateAnnotatedTag +// CreateAnnotatedTag indicates an expected call of CreateAnnotatedTag. func (mr *MockGitClientMockRecorder) CreateAnnotatedTag(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAnnotatedTag", reflect.TypeOf((*MockGitClient)(nil).CreateAnnotatedTag), arg0, arg1) } -// CreateAttachment mocks base method +// CreateAttachment mocks base method. func (m *MockGitClient) CreateAttachment(arg0 context.Context, arg1 git.CreateAttachmentArgs) (*git.Attachment, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateAttachment", arg0, arg1) @@ -61,13 +61,13 @@ func (m *MockGitClient) CreateAttachment(arg0 context.Context, arg1 git.CreateAt return ret0, ret1 } -// CreateAttachment indicates an expected call of CreateAttachment +// CreateAttachment indicates an expected call of CreateAttachment. func (mr *MockGitClientMockRecorder) CreateAttachment(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAttachment", reflect.TypeOf((*MockGitClient)(nil).CreateAttachment), arg0, arg1) } -// CreateCherryPick mocks base method +// CreateCherryPick mocks base method. func (m *MockGitClient) CreateCherryPick(arg0 context.Context, arg1 git.CreateCherryPickArgs) (*git.GitCherryPick, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateCherryPick", arg0, arg1) @@ -76,13 +76,13 @@ func (m *MockGitClient) CreateCherryPick(arg0 context.Context, arg1 git.CreateCh return ret0, ret1 } -// CreateCherryPick indicates an expected call of CreateCherryPick +// CreateCherryPick indicates an expected call of CreateCherryPick. func (mr *MockGitClientMockRecorder) CreateCherryPick(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCherryPick", reflect.TypeOf((*MockGitClient)(nil).CreateCherryPick), arg0, arg1) } -// CreateComment mocks base method +// CreateComment mocks base method. func (m *MockGitClient) CreateComment(arg0 context.Context, arg1 git.CreateCommentArgs) (*git.Comment, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateComment", arg0, arg1) @@ -91,13 +91,13 @@ func (m *MockGitClient) CreateComment(arg0 context.Context, arg1 git.CreateComme return ret0, ret1 } -// CreateComment indicates an expected call of CreateComment +// CreateComment indicates an expected call of CreateComment. func (mr *MockGitClientMockRecorder) CreateComment(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateComment", reflect.TypeOf((*MockGitClient)(nil).CreateComment), arg0, arg1) } -// CreateCommitStatus mocks base method +// CreateCommitStatus mocks base method. func (m *MockGitClient) CreateCommitStatus(arg0 context.Context, arg1 git.CreateCommitStatusArgs) (*git.GitStatus, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateCommitStatus", arg0, arg1) @@ -106,13 +106,13 @@ func (m *MockGitClient) CreateCommitStatus(arg0 context.Context, arg1 git.Create return ret0, ret1 } -// CreateCommitStatus indicates an expected call of CreateCommitStatus +// CreateCommitStatus indicates an expected call of CreateCommitStatus. func (mr *MockGitClientMockRecorder) CreateCommitStatus(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCommitStatus", reflect.TypeOf((*MockGitClient)(nil).CreateCommitStatus), arg0, arg1) } -// CreateFavorite mocks base method +// CreateFavorite mocks base method. func (m *MockGitClient) CreateFavorite(arg0 context.Context, arg1 git.CreateFavoriteArgs) (*git.GitRefFavorite, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateFavorite", arg0, arg1) @@ -121,13 +121,13 @@ func (m *MockGitClient) CreateFavorite(arg0 context.Context, arg1 git.CreateFavo return ret0, ret1 } -// CreateFavorite indicates an expected call of CreateFavorite +// CreateFavorite indicates an expected call of CreateFavorite. func (mr *MockGitClientMockRecorder) CreateFavorite(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateFavorite", reflect.TypeOf((*MockGitClient)(nil).CreateFavorite), arg0, arg1) } -// CreateForkSyncRequest mocks base method +// CreateForkSyncRequest mocks base method. func (m *MockGitClient) CreateForkSyncRequest(arg0 context.Context, arg1 git.CreateForkSyncRequestArgs) (*git.GitForkSyncRequest, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateForkSyncRequest", arg0, arg1) @@ -136,13 +136,13 @@ func (m *MockGitClient) CreateForkSyncRequest(arg0 context.Context, arg1 git.Cre return ret0, ret1 } -// CreateForkSyncRequest indicates an expected call of CreateForkSyncRequest +// CreateForkSyncRequest indicates an expected call of CreateForkSyncRequest. func (mr *MockGitClientMockRecorder) CreateForkSyncRequest(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateForkSyncRequest", reflect.TypeOf((*MockGitClient)(nil).CreateForkSyncRequest), arg0, arg1) } -// CreateImportRequest mocks base method +// CreateImportRequest mocks base method. func (m *MockGitClient) CreateImportRequest(arg0 context.Context, arg1 git.CreateImportRequestArgs) (*git.GitImportRequest, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateImportRequest", arg0, arg1) @@ -151,13 +151,13 @@ func (m *MockGitClient) CreateImportRequest(arg0 context.Context, arg1 git.Creat return ret0, ret1 } -// CreateImportRequest indicates an expected call of CreateImportRequest +// CreateImportRequest indicates an expected call of CreateImportRequest. func (mr *MockGitClientMockRecorder) CreateImportRequest(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateImportRequest", reflect.TypeOf((*MockGitClient)(nil).CreateImportRequest), arg0, arg1) } -// CreateLike mocks base method +// CreateLike mocks base method. func (m *MockGitClient) CreateLike(arg0 context.Context, arg1 git.CreateLikeArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateLike", arg0, arg1) @@ -165,13 +165,13 @@ func (m *MockGitClient) CreateLike(arg0 context.Context, arg1 git.CreateLikeArgs return ret0 } -// CreateLike indicates an expected call of CreateLike +// CreateLike indicates an expected call of CreateLike. func (mr *MockGitClientMockRecorder) CreateLike(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateLike", reflect.TypeOf((*MockGitClient)(nil).CreateLike), arg0, arg1) } -// CreateMergeRequest mocks base method +// CreateMergeRequest mocks base method. func (m *MockGitClient) CreateMergeRequest(arg0 context.Context, arg1 git.CreateMergeRequestArgs) (*git.GitMerge, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateMergeRequest", arg0, arg1) @@ -180,13 +180,13 @@ func (m *MockGitClient) CreateMergeRequest(arg0 context.Context, arg1 git.Create return ret0, ret1 } -// CreateMergeRequest indicates an expected call of CreateMergeRequest +// CreateMergeRequest indicates an expected call of CreateMergeRequest. func (mr *MockGitClientMockRecorder) CreateMergeRequest(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateMergeRequest", reflect.TypeOf((*MockGitClient)(nil).CreateMergeRequest), arg0, arg1) } -// CreatePullRequest mocks base method +// CreatePullRequest mocks base method. func (m *MockGitClient) CreatePullRequest(arg0 context.Context, arg1 git.CreatePullRequestArgs) (*git.GitPullRequest, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreatePullRequest", arg0, arg1) @@ -195,13 +195,13 @@ func (m *MockGitClient) CreatePullRequest(arg0 context.Context, arg1 git.CreateP return ret0, ret1 } -// CreatePullRequest indicates an expected call of CreatePullRequest +// CreatePullRequest indicates an expected call of CreatePullRequest. func (mr *MockGitClientMockRecorder) CreatePullRequest(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePullRequest", reflect.TypeOf((*MockGitClient)(nil).CreatePullRequest), arg0, arg1) } -// CreatePullRequestIterationStatus mocks base method +// CreatePullRequestIterationStatus mocks base method. func (m *MockGitClient) CreatePullRequestIterationStatus(arg0 context.Context, arg1 git.CreatePullRequestIterationStatusArgs) (*git.GitPullRequestStatus, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreatePullRequestIterationStatus", arg0, arg1) @@ -210,13 +210,13 @@ func (m *MockGitClient) CreatePullRequestIterationStatus(arg0 context.Context, a return ret0, ret1 } -// CreatePullRequestIterationStatus indicates an expected call of CreatePullRequestIterationStatus +// CreatePullRequestIterationStatus indicates an expected call of CreatePullRequestIterationStatus. func (mr *MockGitClientMockRecorder) CreatePullRequestIterationStatus(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePullRequestIterationStatus", reflect.TypeOf((*MockGitClient)(nil).CreatePullRequestIterationStatus), arg0, arg1) } -// CreatePullRequestLabel mocks base method +// CreatePullRequestLabel mocks base method. func (m *MockGitClient) CreatePullRequestLabel(arg0 context.Context, arg1 git.CreatePullRequestLabelArgs) (*core.WebApiTagDefinition, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreatePullRequestLabel", arg0, arg1) @@ -225,13 +225,13 @@ func (m *MockGitClient) CreatePullRequestLabel(arg0 context.Context, arg1 git.Cr return ret0, ret1 } -// CreatePullRequestLabel indicates an expected call of CreatePullRequestLabel +// CreatePullRequestLabel indicates an expected call of CreatePullRequestLabel. func (mr *MockGitClientMockRecorder) CreatePullRequestLabel(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePullRequestLabel", reflect.TypeOf((*MockGitClient)(nil).CreatePullRequestLabel), arg0, arg1) } -// CreatePullRequestReviewer mocks base method +// CreatePullRequestReviewer mocks base method. func (m *MockGitClient) CreatePullRequestReviewer(arg0 context.Context, arg1 git.CreatePullRequestReviewerArgs) (*git.IdentityRefWithVote, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreatePullRequestReviewer", arg0, arg1) @@ -240,13 +240,13 @@ func (m *MockGitClient) CreatePullRequestReviewer(arg0 context.Context, arg1 git return ret0, ret1 } -// CreatePullRequestReviewer indicates an expected call of CreatePullRequestReviewer +// CreatePullRequestReviewer indicates an expected call of CreatePullRequestReviewer. func (mr *MockGitClientMockRecorder) CreatePullRequestReviewer(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePullRequestReviewer", reflect.TypeOf((*MockGitClient)(nil).CreatePullRequestReviewer), arg0, arg1) } -// CreatePullRequestReviewers mocks base method +// CreatePullRequestReviewers mocks base method. func (m *MockGitClient) CreatePullRequestReviewers(arg0 context.Context, arg1 git.CreatePullRequestReviewersArgs) (*[]git.IdentityRefWithVote, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreatePullRequestReviewers", arg0, arg1) @@ -255,13 +255,13 @@ func (m *MockGitClient) CreatePullRequestReviewers(arg0 context.Context, arg1 gi return ret0, ret1 } -// CreatePullRequestReviewers indicates an expected call of CreatePullRequestReviewers +// CreatePullRequestReviewers indicates an expected call of CreatePullRequestReviewers. func (mr *MockGitClientMockRecorder) CreatePullRequestReviewers(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePullRequestReviewers", reflect.TypeOf((*MockGitClient)(nil).CreatePullRequestReviewers), arg0, arg1) } -// CreatePullRequestStatus mocks base method +// CreatePullRequestStatus mocks base method. func (m *MockGitClient) CreatePullRequestStatus(arg0 context.Context, arg1 git.CreatePullRequestStatusArgs) (*git.GitPullRequestStatus, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreatePullRequestStatus", arg0, arg1) @@ -270,13 +270,13 @@ func (m *MockGitClient) CreatePullRequestStatus(arg0 context.Context, arg1 git.C return ret0, ret1 } -// CreatePullRequestStatus indicates an expected call of CreatePullRequestStatus +// CreatePullRequestStatus indicates an expected call of CreatePullRequestStatus. func (mr *MockGitClientMockRecorder) CreatePullRequestStatus(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePullRequestStatus", reflect.TypeOf((*MockGitClient)(nil).CreatePullRequestStatus), arg0, arg1) } -// CreatePush mocks base method +// CreatePush mocks base method. func (m *MockGitClient) CreatePush(arg0 context.Context, arg1 git.CreatePushArgs) (*git.GitPush, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreatePush", arg0, arg1) @@ -285,13 +285,13 @@ func (m *MockGitClient) CreatePush(arg0 context.Context, arg1 git.CreatePushArgs return ret0, ret1 } -// CreatePush indicates an expected call of CreatePush +// CreatePush indicates an expected call of CreatePush. func (mr *MockGitClientMockRecorder) CreatePush(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePush", reflect.TypeOf((*MockGitClient)(nil).CreatePush), arg0, arg1) } -// CreateRepository mocks base method +// CreateRepository mocks base method. func (m *MockGitClient) CreateRepository(arg0 context.Context, arg1 git.CreateRepositoryArgs) (*git.GitRepository, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateRepository", arg0, arg1) @@ -300,13 +300,13 @@ func (m *MockGitClient) CreateRepository(arg0 context.Context, arg1 git.CreateRe return ret0, ret1 } -// CreateRepository indicates an expected call of CreateRepository +// CreateRepository indicates an expected call of CreateRepository. func (mr *MockGitClientMockRecorder) CreateRepository(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRepository", reflect.TypeOf((*MockGitClient)(nil).CreateRepository), arg0, arg1) } -// CreateRevert mocks base method +// CreateRevert mocks base method. func (m *MockGitClient) CreateRevert(arg0 context.Context, arg1 git.CreateRevertArgs) (*git.GitRevert, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateRevert", arg0, arg1) @@ -315,13 +315,13 @@ func (m *MockGitClient) CreateRevert(arg0 context.Context, arg1 git.CreateRevert return ret0, ret1 } -// CreateRevert indicates an expected call of CreateRevert +// CreateRevert indicates an expected call of CreateRevert. func (mr *MockGitClientMockRecorder) CreateRevert(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRevert", reflect.TypeOf((*MockGitClient)(nil).CreateRevert), arg0, arg1) } -// CreateThread mocks base method +// CreateThread mocks base method. func (m *MockGitClient) CreateThread(arg0 context.Context, arg1 git.CreateThreadArgs) (*git.GitPullRequestCommentThread, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateThread", arg0, arg1) @@ -330,13 +330,28 @@ func (m *MockGitClient) CreateThread(arg0 context.Context, arg1 git.CreateThread return ret0, ret1 } -// CreateThread indicates an expected call of CreateThread +// CreateThread indicates an expected call of CreateThread. func (mr *MockGitClientMockRecorder) CreateThread(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateThread", reflect.TypeOf((*MockGitClient)(nil).CreateThread), arg0, arg1) } -// DeleteAttachment mocks base method +// CreateUnmaterializedPullRequestReviewer mocks base method. +func (m *MockGitClient) CreateUnmaterializedPullRequestReviewer(arg0 context.Context, arg1 git.CreateUnmaterializedPullRequestReviewerArgs) (*git.IdentityRefWithVote, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateUnmaterializedPullRequestReviewer", arg0, arg1) + ret0, _ := ret[0].(*git.IdentityRefWithVote) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateUnmaterializedPullRequestReviewer indicates an expected call of CreateUnmaterializedPullRequestReviewer. +func (mr *MockGitClientMockRecorder) CreateUnmaterializedPullRequestReviewer(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateUnmaterializedPullRequestReviewer", reflect.TypeOf((*MockGitClient)(nil).CreateUnmaterializedPullRequestReviewer), arg0, arg1) +} + +// DeleteAttachment mocks base method. func (m *MockGitClient) DeleteAttachment(arg0 context.Context, arg1 git.DeleteAttachmentArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteAttachment", arg0, arg1) @@ -344,13 +359,13 @@ func (m *MockGitClient) DeleteAttachment(arg0 context.Context, arg1 git.DeleteAt return ret0 } -// DeleteAttachment indicates an expected call of DeleteAttachment +// DeleteAttachment indicates an expected call of DeleteAttachment. func (mr *MockGitClientMockRecorder) DeleteAttachment(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAttachment", reflect.TypeOf((*MockGitClient)(nil).DeleteAttachment), arg0, arg1) } -// DeleteComment mocks base method +// DeleteComment mocks base method. func (m *MockGitClient) DeleteComment(arg0 context.Context, arg1 git.DeleteCommentArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteComment", arg0, arg1) @@ -358,13 +373,13 @@ func (m *MockGitClient) DeleteComment(arg0 context.Context, arg1 git.DeleteComme return ret0 } -// DeleteComment indicates an expected call of DeleteComment +// DeleteComment indicates an expected call of DeleteComment. func (mr *MockGitClientMockRecorder) DeleteComment(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteComment", reflect.TypeOf((*MockGitClient)(nil).DeleteComment), arg0, arg1) } -// DeleteLike mocks base method +// DeleteLike mocks base method. func (m *MockGitClient) DeleteLike(arg0 context.Context, arg1 git.DeleteLikeArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteLike", arg0, arg1) @@ -372,13 +387,13 @@ func (m *MockGitClient) DeleteLike(arg0 context.Context, arg1 git.DeleteLikeArgs return ret0 } -// DeleteLike indicates an expected call of DeleteLike +// DeleteLike indicates an expected call of DeleteLike. func (mr *MockGitClientMockRecorder) DeleteLike(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteLike", reflect.TypeOf((*MockGitClient)(nil).DeleteLike), arg0, arg1) } -// DeletePullRequestIterationStatus mocks base method +// DeletePullRequestIterationStatus mocks base method. func (m *MockGitClient) DeletePullRequestIterationStatus(arg0 context.Context, arg1 git.DeletePullRequestIterationStatusArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeletePullRequestIterationStatus", arg0, arg1) @@ -386,13 +401,13 @@ func (m *MockGitClient) DeletePullRequestIterationStatus(arg0 context.Context, a return ret0 } -// DeletePullRequestIterationStatus indicates an expected call of DeletePullRequestIterationStatus +// DeletePullRequestIterationStatus indicates an expected call of DeletePullRequestIterationStatus. func (mr *MockGitClientMockRecorder) DeletePullRequestIterationStatus(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeletePullRequestIterationStatus", reflect.TypeOf((*MockGitClient)(nil).DeletePullRequestIterationStatus), arg0, arg1) } -// DeletePullRequestLabels mocks base method +// DeletePullRequestLabels mocks base method. func (m *MockGitClient) DeletePullRequestLabels(arg0 context.Context, arg1 git.DeletePullRequestLabelsArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeletePullRequestLabels", arg0, arg1) @@ -400,13 +415,13 @@ func (m *MockGitClient) DeletePullRequestLabels(arg0 context.Context, arg1 git.D return ret0 } -// DeletePullRequestLabels indicates an expected call of DeletePullRequestLabels +// DeletePullRequestLabels indicates an expected call of DeletePullRequestLabels. func (mr *MockGitClientMockRecorder) DeletePullRequestLabels(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeletePullRequestLabels", reflect.TypeOf((*MockGitClient)(nil).DeletePullRequestLabels), arg0, arg1) } -// DeletePullRequestReviewer mocks base method +// DeletePullRequestReviewer mocks base method. func (m *MockGitClient) DeletePullRequestReviewer(arg0 context.Context, arg1 git.DeletePullRequestReviewerArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeletePullRequestReviewer", arg0, arg1) @@ -414,13 +429,13 @@ func (m *MockGitClient) DeletePullRequestReviewer(arg0 context.Context, arg1 git return ret0 } -// DeletePullRequestReviewer indicates an expected call of DeletePullRequestReviewer +// DeletePullRequestReviewer indicates an expected call of DeletePullRequestReviewer. func (mr *MockGitClientMockRecorder) DeletePullRequestReviewer(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeletePullRequestReviewer", reflect.TypeOf((*MockGitClient)(nil).DeletePullRequestReviewer), arg0, arg1) } -// DeletePullRequestStatus mocks base method +// DeletePullRequestStatus mocks base method. func (m *MockGitClient) DeletePullRequestStatus(arg0 context.Context, arg1 git.DeletePullRequestStatusArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeletePullRequestStatus", arg0, arg1) @@ -428,13 +443,13 @@ func (m *MockGitClient) DeletePullRequestStatus(arg0 context.Context, arg1 git.D return ret0 } -// DeletePullRequestStatus indicates an expected call of DeletePullRequestStatus +// DeletePullRequestStatus indicates an expected call of DeletePullRequestStatus. func (mr *MockGitClientMockRecorder) DeletePullRequestStatus(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeletePullRequestStatus", reflect.TypeOf((*MockGitClient)(nil).DeletePullRequestStatus), arg0, arg1) } -// DeleteRefFavorite mocks base method +// DeleteRefFavorite mocks base method. func (m *MockGitClient) DeleteRefFavorite(arg0 context.Context, arg1 git.DeleteRefFavoriteArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteRefFavorite", arg0, arg1) @@ -442,13 +457,13 @@ func (m *MockGitClient) DeleteRefFavorite(arg0 context.Context, arg1 git.DeleteR return ret0 } -// DeleteRefFavorite indicates an expected call of DeleteRefFavorite +// DeleteRefFavorite indicates an expected call of DeleteRefFavorite. func (mr *MockGitClientMockRecorder) DeleteRefFavorite(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRefFavorite", reflect.TypeOf((*MockGitClient)(nil).DeleteRefFavorite), arg0, arg1) } -// DeleteRepository mocks base method +// DeleteRepository mocks base method. func (m *MockGitClient) DeleteRepository(arg0 context.Context, arg1 git.DeleteRepositoryArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteRepository", arg0, arg1) @@ -456,13 +471,13 @@ func (m *MockGitClient) DeleteRepository(arg0 context.Context, arg1 git.DeleteRe return ret0 } -// DeleteRepository indicates an expected call of DeleteRepository +// DeleteRepository indicates an expected call of DeleteRepository. func (mr *MockGitClientMockRecorder) DeleteRepository(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRepository", reflect.TypeOf((*MockGitClient)(nil).DeleteRepository), arg0, arg1) } -// DeleteRepositoryFromRecycleBin mocks base method +// DeleteRepositoryFromRecycleBin mocks base method. func (m *MockGitClient) DeleteRepositoryFromRecycleBin(arg0 context.Context, arg1 git.DeleteRepositoryFromRecycleBinArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteRepositoryFromRecycleBin", arg0, arg1) @@ -470,13 +485,13 @@ func (m *MockGitClient) DeleteRepositoryFromRecycleBin(arg0 context.Context, arg return ret0 } -// DeleteRepositoryFromRecycleBin indicates an expected call of DeleteRepositoryFromRecycleBin +// DeleteRepositoryFromRecycleBin indicates an expected call of DeleteRepositoryFromRecycleBin. func (mr *MockGitClientMockRecorder) DeleteRepositoryFromRecycleBin(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRepositoryFromRecycleBin", reflect.TypeOf((*MockGitClient)(nil).DeleteRepositoryFromRecycleBin), arg0, arg1) } -// GetAnnotatedTag mocks base method +// GetAnnotatedTag mocks base method. func (m *MockGitClient) GetAnnotatedTag(arg0 context.Context, arg1 git.GetAnnotatedTagArgs) (*git.GitAnnotatedTag, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetAnnotatedTag", arg0, arg1) @@ -485,13 +500,13 @@ func (m *MockGitClient) GetAnnotatedTag(arg0 context.Context, arg1 git.GetAnnota return ret0, ret1 } -// GetAnnotatedTag indicates an expected call of GetAnnotatedTag +// GetAnnotatedTag indicates an expected call of GetAnnotatedTag. func (mr *MockGitClientMockRecorder) GetAnnotatedTag(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAnnotatedTag", reflect.TypeOf((*MockGitClient)(nil).GetAnnotatedTag), arg0, arg1) } -// GetAttachmentContent mocks base method +// GetAttachmentContent mocks base method. func (m *MockGitClient) GetAttachmentContent(arg0 context.Context, arg1 git.GetAttachmentContentArgs) (io.ReadCloser, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetAttachmentContent", arg0, arg1) @@ -500,13 +515,13 @@ func (m *MockGitClient) GetAttachmentContent(arg0 context.Context, arg1 git.GetA return ret0, ret1 } -// GetAttachmentContent indicates an expected call of GetAttachmentContent +// GetAttachmentContent indicates an expected call of GetAttachmentContent. func (mr *MockGitClientMockRecorder) GetAttachmentContent(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAttachmentContent", reflect.TypeOf((*MockGitClient)(nil).GetAttachmentContent), arg0, arg1) } -// GetAttachmentZip mocks base method +// GetAttachmentZip mocks base method. func (m *MockGitClient) GetAttachmentZip(arg0 context.Context, arg1 git.GetAttachmentZipArgs) (io.ReadCloser, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetAttachmentZip", arg0, arg1) @@ -515,13 +530,13 @@ func (m *MockGitClient) GetAttachmentZip(arg0 context.Context, arg1 git.GetAttac return ret0, ret1 } -// GetAttachmentZip indicates an expected call of GetAttachmentZip +// GetAttachmentZip indicates an expected call of GetAttachmentZip. func (mr *MockGitClientMockRecorder) GetAttachmentZip(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAttachmentZip", reflect.TypeOf((*MockGitClient)(nil).GetAttachmentZip), arg0, arg1) } -// GetAttachments mocks base method +// GetAttachments mocks base method. func (m *MockGitClient) GetAttachments(arg0 context.Context, arg1 git.GetAttachmentsArgs) (*[]git.Attachment, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetAttachments", arg0, arg1) @@ -530,13 +545,13 @@ func (m *MockGitClient) GetAttachments(arg0 context.Context, arg1 git.GetAttachm return ret0, ret1 } -// GetAttachments indicates an expected call of GetAttachments +// GetAttachments indicates an expected call of GetAttachments. func (mr *MockGitClientMockRecorder) GetAttachments(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAttachments", reflect.TypeOf((*MockGitClient)(nil).GetAttachments), arg0, arg1) } -// GetBlob mocks base method +// GetBlob mocks base method. func (m *MockGitClient) GetBlob(arg0 context.Context, arg1 git.GetBlobArgs) (*git.GitBlobRef, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetBlob", arg0, arg1) @@ -545,13 +560,13 @@ func (m *MockGitClient) GetBlob(arg0 context.Context, arg1 git.GetBlobArgs) (*gi return ret0, ret1 } -// GetBlob indicates an expected call of GetBlob +// GetBlob indicates an expected call of GetBlob. func (mr *MockGitClientMockRecorder) GetBlob(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBlob", reflect.TypeOf((*MockGitClient)(nil).GetBlob), arg0, arg1) } -// GetBlobContent mocks base method +// GetBlobContent mocks base method. func (m *MockGitClient) GetBlobContent(arg0 context.Context, arg1 git.GetBlobContentArgs) (io.ReadCloser, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetBlobContent", arg0, arg1) @@ -560,13 +575,13 @@ func (m *MockGitClient) GetBlobContent(arg0 context.Context, arg1 git.GetBlobCon return ret0, ret1 } -// GetBlobContent indicates an expected call of GetBlobContent +// GetBlobContent indicates an expected call of GetBlobContent. func (mr *MockGitClientMockRecorder) GetBlobContent(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBlobContent", reflect.TypeOf((*MockGitClient)(nil).GetBlobContent), arg0, arg1) } -// GetBlobZip mocks base method +// GetBlobZip mocks base method. func (m *MockGitClient) GetBlobZip(arg0 context.Context, arg1 git.GetBlobZipArgs) (io.ReadCloser, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetBlobZip", arg0, arg1) @@ -575,13 +590,13 @@ func (m *MockGitClient) GetBlobZip(arg0 context.Context, arg1 git.GetBlobZipArgs return ret0, ret1 } -// GetBlobZip indicates an expected call of GetBlobZip +// GetBlobZip indicates an expected call of GetBlobZip. func (mr *MockGitClientMockRecorder) GetBlobZip(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBlobZip", reflect.TypeOf((*MockGitClient)(nil).GetBlobZip), arg0, arg1) } -// GetBlobsZip mocks base method +// GetBlobsZip mocks base method. func (m *MockGitClient) GetBlobsZip(arg0 context.Context, arg1 git.GetBlobsZipArgs) (io.ReadCloser, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetBlobsZip", arg0, arg1) @@ -590,13 +605,13 @@ func (m *MockGitClient) GetBlobsZip(arg0 context.Context, arg1 git.GetBlobsZipAr return ret0, ret1 } -// GetBlobsZip indicates an expected call of GetBlobsZip +// GetBlobsZip indicates an expected call of GetBlobsZip. func (mr *MockGitClientMockRecorder) GetBlobsZip(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBlobsZip", reflect.TypeOf((*MockGitClient)(nil).GetBlobsZip), arg0, arg1) } -// GetBranch mocks base method +// GetBranch mocks base method. func (m *MockGitClient) GetBranch(arg0 context.Context, arg1 git.GetBranchArgs) (*git.GitBranchStats, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetBranch", arg0, arg1) @@ -605,13 +620,13 @@ func (m *MockGitClient) GetBranch(arg0 context.Context, arg1 git.GetBranchArgs) return ret0, ret1 } -// GetBranch indicates an expected call of GetBranch +// GetBranch indicates an expected call of GetBranch. func (mr *MockGitClientMockRecorder) GetBranch(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBranch", reflect.TypeOf((*MockGitClient)(nil).GetBranch), arg0, arg1) } -// GetBranches mocks base method +// GetBranches mocks base method. func (m *MockGitClient) GetBranches(arg0 context.Context, arg1 git.GetBranchesArgs) (*[]git.GitBranchStats, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetBranches", arg0, arg1) @@ -620,13 +635,13 @@ func (m *MockGitClient) GetBranches(arg0 context.Context, arg1 git.GetBranchesAr return ret0, ret1 } -// GetBranches indicates an expected call of GetBranches +// GetBranches indicates an expected call of GetBranches. func (mr *MockGitClientMockRecorder) GetBranches(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBranches", reflect.TypeOf((*MockGitClient)(nil).GetBranches), arg0, arg1) } -// GetChanges mocks base method +// GetChanges mocks base method. func (m *MockGitClient) GetChanges(arg0 context.Context, arg1 git.GetChangesArgs) (*git.GitCommitChanges, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetChanges", arg0, arg1) @@ -635,13 +650,13 @@ func (m *MockGitClient) GetChanges(arg0 context.Context, arg1 git.GetChangesArgs return ret0, ret1 } -// GetChanges indicates an expected call of GetChanges +// GetChanges indicates an expected call of GetChanges. func (mr *MockGitClientMockRecorder) GetChanges(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetChanges", reflect.TypeOf((*MockGitClient)(nil).GetChanges), arg0, arg1) } -// GetCherryPick mocks base method +// GetCherryPick mocks base method. func (m *MockGitClient) GetCherryPick(arg0 context.Context, arg1 git.GetCherryPickArgs) (*git.GitCherryPick, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetCherryPick", arg0, arg1) @@ -650,13 +665,13 @@ func (m *MockGitClient) GetCherryPick(arg0 context.Context, arg1 git.GetCherryPi return ret0, ret1 } -// GetCherryPick indicates an expected call of GetCherryPick +// GetCherryPick indicates an expected call of GetCherryPick. func (mr *MockGitClientMockRecorder) GetCherryPick(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCherryPick", reflect.TypeOf((*MockGitClient)(nil).GetCherryPick), arg0, arg1) } -// GetCherryPickForRefName mocks base method +// GetCherryPickForRefName mocks base method. func (m *MockGitClient) GetCherryPickForRefName(arg0 context.Context, arg1 git.GetCherryPickForRefNameArgs) (*git.GitCherryPick, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetCherryPickForRefName", arg0, arg1) @@ -665,13 +680,13 @@ func (m *MockGitClient) GetCherryPickForRefName(arg0 context.Context, arg1 git.G return ret0, ret1 } -// GetCherryPickForRefName indicates an expected call of GetCherryPickForRefName +// GetCherryPickForRefName indicates an expected call of GetCherryPickForRefName. func (mr *MockGitClientMockRecorder) GetCherryPickForRefName(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCherryPickForRefName", reflect.TypeOf((*MockGitClient)(nil).GetCherryPickForRefName), arg0, arg1) } -// GetComment mocks base method +// GetComment mocks base method. func (m *MockGitClient) GetComment(arg0 context.Context, arg1 git.GetCommentArgs) (*git.Comment, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetComment", arg0, arg1) @@ -680,13 +695,13 @@ func (m *MockGitClient) GetComment(arg0 context.Context, arg1 git.GetCommentArgs return ret0, ret1 } -// GetComment indicates an expected call of GetComment +// GetComment indicates an expected call of GetComment. func (mr *MockGitClientMockRecorder) GetComment(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetComment", reflect.TypeOf((*MockGitClient)(nil).GetComment), arg0, arg1) } -// GetComments mocks base method +// GetComments mocks base method. func (m *MockGitClient) GetComments(arg0 context.Context, arg1 git.GetCommentsArgs) (*[]git.Comment, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetComments", arg0, arg1) @@ -695,13 +710,13 @@ func (m *MockGitClient) GetComments(arg0 context.Context, arg1 git.GetCommentsAr return ret0, ret1 } -// GetComments indicates an expected call of GetComments +// GetComments indicates an expected call of GetComments. func (mr *MockGitClientMockRecorder) GetComments(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetComments", reflect.TypeOf((*MockGitClient)(nil).GetComments), arg0, arg1) } -// GetCommit mocks base method +// GetCommit mocks base method. func (m *MockGitClient) GetCommit(arg0 context.Context, arg1 git.GetCommitArgs) (*git.GitCommit, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetCommit", arg0, arg1) @@ -710,13 +725,13 @@ func (m *MockGitClient) GetCommit(arg0 context.Context, arg1 git.GetCommitArgs) return ret0, ret1 } -// GetCommit indicates an expected call of GetCommit +// GetCommit indicates an expected call of GetCommit. func (mr *MockGitClientMockRecorder) GetCommit(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCommit", reflect.TypeOf((*MockGitClient)(nil).GetCommit), arg0, arg1) } -// GetCommitDiffs mocks base method +// GetCommitDiffs mocks base method. func (m *MockGitClient) GetCommitDiffs(arg0 context.Context, arg1 git.GetCommitDiffsArgs) (*git.GitCommitDiffs, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetCommitDiffs", arg0, arg1) @@ -725,13 +740,13 @@ func (m *MockGitClient) GetCommitDiffs(arg0 context.Context, arg1 git.GetCommitD return ret0, ret1 } -// GetCommitDiffs indicates an expected call of GetCommitDiffs +// GetCommitDiffs indicates an expected call of GetCommitDiffs. func (mr *MockGitClientMockRecorder) GetCommitDiffs(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCommitDiffs", reflect.TypeOf((*MockGitClient)(nil).GetCommitDiffs), arg0, arg1) } -// GetCommits mocks base method +// GetCommits mocks base method. func (m *MockGitClient) GetCommits(arg0 context.Context, arg1 git.GetCommitsArgs) (*[]git.GitCommitRef, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetCommits", arg0, arg1) @@ -740,13 +755,13 @@ func (m *MockGitClient) GetCommits(arg0 context.Context, arg1 git.GetCommitsArgs return ret0, ret1 } -// GetCommits indicates an expected call of GetCommits +// GetCommits indicates an expected call of GetCommits. func (mr *MockGitClientMockRecorder) GetCommits(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCommits", reflect.TypeOf((*MockGitClient)(nil).GetCommits), arg0, arg1) } -// GetCommitsBatch mocks base method +// GetCommitsBatch mocks base method. func (m *MockGitClient) GetCommitsBatch(arg0 context.Context, arg1 git.GetCommitsBatchArgs) (*[]git.GitCommitRef, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetCommitsBatch", arg0, arg1) @@ -755,13 +770,13 @@ func (m *MockGitClient) GetCommitsBatch(arg0 context.Context, arg1 git.GetCommit return ret0, ret1 } -// GetCommitsBatch indicates an expected call of GetCommitsBatch +// GetCommitsBatch indicates an expected call of GetCommitsBatch. func (mr *MockGitClientMockRecorder) GetCommitsBatch(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCommitsBatch", reflect.TypeOf((*MockGitClient)(nil).GetCommitsBatch), arg0, arg1) } -// GetDeletedRepositories mocks base method +// GetDeletedRepositories mocks base method. func (m *MockGitClient) GetDeletedRepositories(arg0 context.Context, arg1 git.GetDeletedRepositoriesArgs) (*[]git.GitDeletedRepository, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetDeletedRepositories", arg0, arg1) @@ -770,13 +785,13 @@ func (m *MockGitClient) GetDeletedRepositories(arg0 context.Context, arg1 git.Ge return ret0, ret1 } -// GetDeletedRepositories indicates an expected call of GetDeletedRepositories +// GetDeletedRepositories indicates an expected call of GetDeletedRepositories. func (mr *MockGitClientMockRecorder) GetDeletedRepositories(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDeletedRepositories", reflect.TypeOf((*MockGitClient)(nil).GetDeletedRepositories), arg0, arg1) } -// GetForkSyncRequest mocks base method +// GetForkSyncRequest mocks base method. func (m *MockGitClient) GetForkSyncRequest(arg0 context.Context, arg1 git.GetForkSyncRequestArgs) (*git.GitForkSyncRequest, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetForkSyncRequest", arg0, arg1) @@ -785,13 +800,13 @@ func (m *MockGitClient) GetForkSyncRequest(arg0 context.Context, arg1 git.GetFor return ret0, ret1 } -// GetForkSyncRequest indicates an expected call of GetForkSyncRequest +// GetForkSyncRequest indicates an expected call of GetForkSyncRequest. func (mr *MockGitClientMockRecorder) GetForkSyncRequest(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetForkSyncRequest", reflect.TypeOf((*MockGitClient)(nil).GetForkSyncRequest), arg0, arg1) } -// GetForkSyncRequests mocks base method +// GetForkSyncRequests mocks base method. func (m *MockGitClient) GetForkSyncRequests(arg0 context.Context, arg1 git.GetForkSyncRequestsArgs) (*[]git.GitForkSyncRequest, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetForkSyncRequests", arg0, arg1) @@ -800,13 +815,13 @@ func (m *MockGitClient) GetForkSyncRequests(arg0 context.Context, arg1 git.GetFo return ret0, ret1 } -// GetForkSyncRequests indicates an expected call of GetForkSyncRequests +// GetForkSyncRequests indicates an expected call of GetForkSyncRequests. func (mr *MockGitClientMockRecorder) GetForkSyncRequests(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetForkSyncRequests", reflect.TypeOf((*MockGitClient)(nil).GetForkSyncRequests), arg0, arg1) } -// GetForks mocks base method +// GetForks mocks base method. func (m *MockGitClient) GetForks(arg0 context.Context, arg1 git.GetForksArgs) (*[]git.GitRepositoryRef, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetForks", arg0, arg1) @@ -815,13 +830,13 @@ func (m *MockGitClient) GetForks(arg0 context.Context, arg1 git.GetForksArgs) (* return ret0, ret1 } -// GetForks indicates an expected call of GetForks +// GetForks indicates an expected call of GetForks. func (mr *MockGitClientMockRecorder) GetForks(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetForks", reflect.TypeOf((*MockGitClient)(nil).GetForks), arg0, arg1) } -// GetImportRequest mocks base method +// GetImportRequest mocks base method. func (m *MockGitClient) GetImportRequest(arg0 context.Context, arg1 git.GetImportRequestArgs) (*git.GitImportRequest, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetImportRequest", arg0, arg1) @@ -830,13 +845,13 @@ func (m *MockGitClient) GetImportRequest(arg0 context.Context, arg1 git.GetImpor return ret0, ret1 } -// GetImportRequest indicates an expected call of GetImportRequest +// GetImportRequest indicates an expected call of GetImportRequest. func (mr *MockGitClientMockRecorder) GetImportRequest(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetImportRequest", reflect.TypeOf((*MockGitClient)(nil).GetImportRequest), arg0, arg1) } -// GetItem mocks base method +// GetItem mocks base method. func (m *MockGitClient) GetItem(arg0 context.Context, arg1 git.GetItemArgs) (*git.GitItem, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetItem", arg0, arg1) @@ -845,13 +860,13 @@ func (m *MockGitClient) GetItem(arg0 context.Context, arg1 git.GetItemArgs) (*gi return ret0, ret1 } -// GetItem indicates an expected call of GetItem +// GetItem indicates an expected call of GetItem. func (mr *MockGitClientMockRecorder) GetItem(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetItem", reflect.TypeOf((*MockGitClient)(nil).GetItem), arg0, arg1) } -// GetItemContent mocks base method +// GetItemContent mocks base method. func (m *MockGitClient) GetItemContent(arg0 context.Context, arg1 git.GetItemContentArgs) (io.ReadCloser, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetItemContent", arg0, arg1) @@ -860,13 +875,13 @@ func (m *MockGitClient) GetItemContent(arg0 context.Context, arg1 git.GetItemCon return ret0, ret1 } -// GetItemContent indicates an expected call of GetItemContent +// GetItemContent indicates an expected call of GetItemContent. func (mr *MockGitClientMockRecorder) GetItemContent(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetItemContent", reflect.TypeOf((*MockGitClient)(nil).GetItemContent), arg0, arg1) } -// GetItemText mocks base method +// GetItemText mocks base method. func (m *MockGitClient) GetItemText(arg0 context.Context, arg1 git.GetItemTextArgs) (io.ReadCloser, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetItemText", arg0, arg1) @@ -875,13 +890,13 @@ func (m *MockGitClient) GetItemText(arg0 context.Context, arg1 git.GetItemTextAr return ret0, ret1 } -// GetItemText indicates an expected call of GetItemText +// GetItemText indicates an expected call of GetItemText. func (mr *MockGitClientMockRecorder) GetItemText(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetItemText", reflect.TypeOf((*MockGitClient)(nil).GetItemText), arg0, arg1) } -// GetItemZip mocks base method +// GetItemZip mocks base method. func (m *MockGitClient) GetItemZip(arg0 context.Context, arg1 git.GetItemZipArgs) (io.ReadCloser, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetItemZip", arg0, arg1) @@ -890,13 +905,13 @@ func (m *MockGitClient) GetItemZip(arg0 context.Context, arg1 git.GetItemZipArgs return ret0, ret1 } -// GetItemZip indicates an expected call of GetItemZip +// GetItemZip indicates an expected call of GetItemZip. func (mr *MockGitClientMockRecorder) GetItemZip(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetItemZip", reflect.TypeOf((*MockGitClient)(nil).GetItemZip), arg0, arg1) } -// GetItems mocks base method +// GetItems mocks base method. func (m *MockGitClient) GetItems(arg0 context.Context, arg1 git.GetItemsArgs) (*[]git.GitItem, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetItems", arg0, arg1) @@ -905,13 +920,13 @@ func (m *MockGitClient) GetItems(arg0 context.Context, arg1 git.GetItemsArgs) (* return ret0, ret1 } -// GetItems indicates an expected call of GetItems +// GetItems indicates an expected call of GetItems. func (mr *MockGitClientMockRecorder) GetItems(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetItems", reflect.TypeOf((*MockGitClient)(nil).GetItems), arg0, arg1) } -// GetItemsBatch mocks base method +// GetItemsBatch mocks base method. func (m *MockGitClient) GetItemsBatch(arg0 context.Context, arg1 git.GetItemsBatchArgs) (*[][]git.GitItem, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetItemsBatch", arg0, arg1) @@ -920,13 +935,13 @@ func (m *MockGitClient) GetItemsBatch(arg0 context.Context, arg1 git.GetItemsBat return ret0, ret1 } -// GetItemsBatch indicates an expected call of GetItemsBatch +// GetItemsBatch indicates an expected call of GetItemsBatch. func (mr *MockGitClientMockRecorder) GetItemsBatch(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetItemsBatch", reflect.TypeOf((*MockGitClient)(nil).GetItemsBatch), arg0, arg1) } -// GetLikes mocks base method +// GetLikes mocks base method. func (m *MockGitClient) GetLikes(arg0 context.Context, arg1 git.GetLikesArgs) (*[]webapi.IdentityRef, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetLikes", arg0, arg1) @@ -935,13 +950,13 @@ func (m *MockGitClient) GetLikes(arg0 context.Context, arg1 git.GetLikesArgs) (* return ret0, ret1 } -// GetLikes indicates an expected call of GetLikes +// GetLikes indicates an expected call of GetLikes. func (mr *MockGitClientMockRecorder) GetLikes(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLikes", reflect.TypeOf((*MockGitClient)(nil).GetLikes), arg0, arg1) } -// GetMergeBases mocks base method +// GetMergeBases mocks base method. func (m *MockGitClient) GetMergeBases(arg0 context.Context, arg1 git.GetMergeBasesArgs) (*[]git.GitCommitRef, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetMergeBases", arg0, arg1) @@ -950,13 +965,13 @@ func (m *MockGitClient) GetMergeBases(arg0 context.Context, arg1 git.GetMergeBas return ret0, ret1 } -// GetMergeBases indicates an expected call of GetMergeBases +// GetMergeBases indicates an expected call of GetMergeBases. func (mr *MockGitClientMockRecorder) GetMergeBases(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMergeBases", reflect.TypeOf((*MockGitClient)(nil).GetMergeBases), arg0, arg1) } -// GetMergeRequest mocks base method +// GetMergeRequest mocks base method. func (m *MockGitClient) GetMergeRequest(arg0 context.Context, arg1 git.GetMergeRequestArgs) (*git.GitMerge, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetMergeRequest", arg0, arg1) @@ -965,13 +980,13 @@ func (m *MockGitClient) GetMergeRequest(arg0 context.Context, arg1 git.GetMergeR return ret0, ret1 } -// GetMergeRequest indicates an expected call of GetMergeRequest +// GetMergeRequest indicates an expected call of GetMergeRequest. func (mr *MockGitClientMockRecorder) GetMergeRequest(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMergeRequest", reflect.TypeOf((*MockGitClient)(nil).GetMergeRequest), arg0, arg1) } -// GetPolicyConfigurations mocks base method +// GetPolicyConfigurations mocks base method. func (m *MockGitClient) GetPolicyConfigurations(arg0 context.Context, arg1 git.GetPolicyConfigurationsArgs) (*git.GitPolicyConfigurationResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetPolicyConfigurations", arg0, arg1) @@ -980,13 +995,13 @@ func (m *MockGitClient) GetPolicyConfigurations(arg0 context.Context, arg1 git.G return ret0, ret1 } -// GetPolicyConfigurations indicates an expected call of GetPolicyConfigurations +// GetPolicyConfigurations indicates an expected call of GetPolicyConfigurations. func (mr *MockGitClientMockRecorder) GetPolicyConfigurations(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPolicyConfigurations", reflect.TypeOf((*MockGitClient)(nil).GetPolicyConfigurations), arg0, arg1) } -// GetPullRequest mocks base method +// GetPullRequest mocks base method. func (m *MockGitClient) GetPullRequest(arg0 context.Context, arg1 git.GetPullRequestArgs) (*git.GitPullRequest, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetPullRequest", arg0, arg1) @@ -995,13 +1010,13 @@ func (m *MockGitClient) GetPullRequest(arg0 context.Context, arg1 git.GetPullReq return ret0, ret1 } -// GetPullRequest indicates an expected call of GetPullRequest +// GetPullRequest indicates an expected call of GetPullRequest. func (mr *MockGitClientMockRecorder) GetPullRequest(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPullRequest", reflect.TypeOf((*MockGitClient)(nil).GetPullRequest), arg0, arg1) } -// GetPullRequestById mocks base method +// GetPullRequestById mocks base method. func (m *MockGitClient) GetPullRequestById(arg0 context.Context, arg1 git.GetPullRequestByIdArgs) (*git.GitPullRequest, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetPullRequestById", arg0, arg1) @@ -1010,13 +1025,13 @@ func (m *MockGitClient) GetPullRequestById(arg0 context.Context, arg1 git.GetPul return ret0, ret1 } -// GetPullRequestById indicates an expected call of GetPullRequestById +// GetPullRequestById indicates an expected call of GetPullRequestById. func (mr *MockGitClientMockRecorder) GetPullRequestById(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPullRequestById", reflect.TypeOf((*MockGitClient)(nil).GetPullRequestById), arg0, arg1) } -// GetPullRequestCommits mocks base method +// GetPullRequestCommits mocks base method. func (m *MockGitClient) GetPullRequestCommits(arg0 context.Context, arg1 git.GetPullRequestCommitsArgs) (*git.GetPullRequestCommitsResponseValue, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetPullRequestCommits", arg0, arg1) @@ -1025,13 +1040,13 @@ func (m *MockGitClient) GetPullRequestCommits(arg0 context.Context, arg1 git.Get return ret0, ret1 } -// GetPullRequestCommits indicates an expected call of GetPullRequestCommits +// GetPullRequestCommits indicates an expected call of GetPullRequestCommits. func (mr *MockGitClientMockRecorder) GetPullRequestCommits(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPullRequestCommits", reflect.TypeOf((*MockGitClient)(nil).GetPullRequestCommits), arg0, arg1) } -// GetPullRequestIteration mocks base method +// GetPullRequestIteration mocks base method. func (m *MockGitClient) GetPullRequestIteration(arg0 context.Context, arg1 git.GetPullRequestIterationArgs) (*git.GitPullRequestIteration, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetPullRequestIteration", arg0, arg1) @@ -1040,13 +1055,13 @@ func (m *MockGitClient) GetPullRequestIteration(arg0 context.Context, arg1 git.G return ret0, ret1 } -// GetPullRequestIteration indicates an expected call of GetPullRequestIteration +// GetPullRequestIteration indicates an expected call of GetPullRequestIteration. func (mr *MockGitClientMockRecorder) GetPullRequestIteration(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPullRequestIteration", reflect.TypeOf((*MockGitClient)(nil).GetPullRequestIteration), arg0, arg1) } -// GetPullRequestIterationChanges mocks base method +// GetPullRequestIterationChanges mocks base method. func (m *MockGitClient) GetPullRequestIterationChanges(arg0 context.Context, arg1 git.GetPullRequestIterationChangesArgs) (*git.GitPullRequestIterationChanges, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetPullRequestIterationChanges", arg0, arg1) @@ -1055,13 +1070,13 @@ func (m *MockGitClient) GetPullRequestIterationChanges(arg0 context.Context, arg return ret0, ret1 } -// GetPullRequestIterationChanges indicates an expected call of GetPullRequestIterationChanges +// GetPullRequestIterationChanges indicates an expected call of GetPullRequestIterationChanges. func (mr *MockGitClientMockRecorder) GetPullRequestIterationChanges(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPullRequestIterationChanges", reflect.TypeOf((*MockGitClient)(nil).GetPullRequestIterationChanges), arg0, arg1) } -// GetPullRequestIterationCommits mocks base method +// GetPullRequestIterationCommits mocks base method. func (m *MockGitClient) GetPullRequestIterationCommits(arg0 context.Context, arg1 git.GetPullRequestIterationCommitsArgs) (*[]git.GitCommitRef, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetPullRequestIterationCommits", arg0, arg1) @@ -1070,13 +1085,13 @@ func (m *MockGitClient) GetPullRequestIterationCommits(arg0 context.Context, arg return ret0, ret1 } -// GetPullRequestIterationCommits indicates an expected call of GetPullRequestIterationCommits +// GetPullRequestIterationCommits indicates an expected call of GetPullRequestIterationCommits. func (mr *MockGitClientMockRecorder) GetPullRequestIterationCommits(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPullRequestIterationCommits", reflect.TypeOf((*MockGitClient)(nil).GetPullRequestIterationCommits), arg0, arg1) } -// GetPullRequestIterationStatus mocks base method +// GetPullRequestIterationStatus mocks base method. func (m *MockGitClient) GetPullRequestIterationStatus(arg0 context.Context, arg1 git.GetPullRequestIterationStatusArgs) (*git.GitPullRequestStatus, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetPullRequestIterationStatus", arg0, arg1) @@ -1085,13 +1100,13 @@ func (m *MockGitClient) GetPullRequestIterationStatus(arg0 context.Context, arg1 return ret0, ret1 } -// GetPullRequestIterationStatus indicates an expected call of GetPullRequestIterationStatus +// GetPullRequestIterationStatus indicates an expected call of GetPullRequestIterationStatus. func (mr *MockGitClientMockRecorder) GetPullRequestIterationStatus(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPullRequestIterationStatus", reflect.TypeOf((*MockGitClient)(nil).GetPullRequestIterationStatus), arg0, arg1) } -// GetPullRequestIterationStatuses mocks base method +// GetPullRequestIterationStatuses mocks base method. func (m *MockGitClient) GetPullRequestIterationStatuses(arg0 context.Context, arg1 git.GetPullRequestIterationStatusesArgs) (*[]git.GitPullRequestStatus, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetPullRequestIterationStatuses", arg0, arg1) @@ -1100,13 +1115,13 @@ func (m *MockGitClient) GetPullRequestIterationStatuses(arg0 context.Context, ar return ret0, ret1 } -// GetPullRequestIterationStatuses indicates an expected call of GetPullRequestIterationStatuses +// GetPullRequestIterationStatuses indicates an expected call of GetPullRequestIterationStatuses. func (mr *MockGitClientMockRecorder) GetPullRequestIterationStatuses(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPullRequestIterationStatuses", reflect.TypeOf((*MockGitClient)(nil).GetPullRequestIterationStatuses), arg0, arg1) } -// GetPullRequestIterations mocks base method +// GetPullRequestIterations mocks base method. func (m *MockGitClient) GetPullRequestIterations(arg0 context.Context, arg1 git.GetPullRequestIterationsArgs) (*[]git.GitPullRequestIteration, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetPullRequestIterations", arg0, arg1) @@ -1115,13 +1130,13 @@ func (m *MockGitClient) GetPullRequestIterations(arg0 context.Context, arg1 git. return ret0, ret1 } -// GetPullRequestIterations indicates an expected call of GetPullRequestIterations +// GetPullRequestIterations indicates an expected call of GetPullRequestIterations. func (mr *MockGitClientMockRecorder) GetPullRequestIterations(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPullRequestIterations", reflect.TypeOf((*MockGitClient)(nil).GetPullRequestIterations), arg0, arg1) } -// GetPullRequestLabel mocks base method +// GetPullRequestLabel mocks base method. func (m *MockGitClient) GetPullRequestLabel(arg0 context.Context, arg1 git.GetPullRequestLabelArgs) (*core.WebApiTagDefinition, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetPullRequestLabel", arg0, arg1) @@ -1130,13 +1145,13 @@ func (m *MockGitClient) GetPullRequestLabel(arg0 context.Context, arg1 git.GetPu return ret0, ret1 } -// GetPullRequestLabel indicates an expected call of GetPullRequestLabel +// GetPullRequestLabel indicates an expected call of GetPullRequestLabel. func (mr *MockGitClientMockRecorder) GetPullRequestLabel(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPullRequestLabel", reflect.TypeOf((*MockGitClient)(nil).GetPullRequestLabel), arg0, arg1) } -// GetPullRequestLabels mocks base method +// GetPullRequestLabels mocks base method. func (m *MockGitClient) GetPullRequestLabels(arg0 context.Context, arg1 git.GetPullRequestLabelsArgs) (*[]core.WebApiTagDefinition, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetPullRequestLabels", arg0, arg1) @@ -1145,13 +1160,13 @@ func (m *MockGitClient) GetPullRequestLabels(arg0 context.Context, arg1 git.GetP return ret0, ret1 } -// GetPullRequestLabels indicates an expected call of GetPullRequestLabels +// GetPullRequestLabels indicates an expected call of GetPullRequestLabels. func (mr *MockGitClientMockRecorder) GetPullRequestLabels(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPullRequestLabels", reflect.TypeOf((*MockGitClient)(nil).GetPullRequestLabels), arg0, arg1) } -// GetPullRequestProperties mocks base method +// GetPullRequestProperties mocks base method. func (m *MockGitClient) GetPullRequestProperties(arg0 context.Context, arg1 git.GetPullRequestPropertiesArgs) (interface{}, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetPullRequestProperties", arg0, arg1) @@ -1160,13 +1175,13 @@ func (m *MockGitClient) GetPullRequestProperties(arg0 context.Context, arg1 git. return ret0, ret1 } -// GetPullRequestProperties indicates an expected call of GetPullRequestProperties +// GetPullRequestProperties indicates an expected call of GetPullRequestProperties. func (mr *MockGitClientMockRecorder) GetPullRequestProperties(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPullRequestProperties", reflect.TypeOf((*MockGitClient)(nil).GetPullRequestProperties), arg0, arg1) } -// GetPullRequestQuery mocks base method +// GetPullRequestQuery mocks base method. func (m *MockGitClient) GetPullRequestQuery(arg0 context.Context, arg1 git.GetPullRequestQueryArgs) (*git.GitPullRequestQuery, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetPullRequestQuery", arg0, arg1) @@ -1175,13 +1190,13 @@ func (m *MockGitClient) GetPullRequestQuery(arg0 context.Context, arg1 git.GetPu return ret0, ret1 } -// GetPullRequestQuery indicates an expected call of GetPullRequestQuery +// GetPullRequestQuery indicates an expected call of GetPullRequestQuery. func (mr *MockGitClientMockRecorder) GetPullRequestQuery(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPullRequestQuery", reflect.TypeOf((*MockGitClient)(nil).GetPullRequestQuery), arg0, arg1) } -// GetPullRequestReviewer mocks base method +// GetPullRequestReviewer mocks base method. func (m *MockGitClient) GetPullRequestReviewer(arg0 context.Context, arg1 git.GetPullRequestReviewerArgs) (*git.IdentityRefWithVote, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetPullRequestReviewer", arg0, arg1) @@ -1190,13 +1205,13 @@ func (m *MockGitClient) GetPullRequestReviewer(arg0 context.Context, arg1 git.Ge return ret0, ret1 } -// GetPullRequestReviewer indicates an expected call of GetPullRequestReviewer +// GetPullRequestReviewer indicates an expected call of GetPullRequestReviewer. func (mr *MockGitClientMockRecorder) GetPullRequestReviewer(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPullRequestReviewer", reflect.TypeOf((*MockGitClient)(nil).GetPullRequestReviewer), arg0, arg1) } -// GetPullRequestReviewers mocks base method +// GetPullRequestReviewers mocks base method. func (m *MockGitClient) GetPullRequestReviewers(arg0 context.Context, arg1 git.GetPullRequestReviewersArgs) (*[]git.IdentityRefWithVote, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetPullRequestReviewers", arg0, arg1) @@ -1205,13 +1220,13 @@ func (m *MockGitClient) GetPullRequestReviewers(arg0 context.Context, arg1 git.G return ret0, ret1 } -// GetPullRequestReviewers indicates an expected call of GetPullRequestReviewers +// GetPullRequestReviewers indicates an expected call of GetPullRequestReviewers. func (mr *MockGitClientMockRecorder) GetPullRequestReviewers(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPullRequestReviewers", reflect.TypeOf((*MockGitClient)(nil).GetPullRequestReviewers), arg0, arg1) } -// GetPullRequestStatus mocks base method +// GetPullRequestStatus mocks base method. func (m *MockGitClient) GetPullRequestStatus(arg0 context.Context, arg1 git.GetPullRequestStatusArgs) (*git.GitPullRequestStatus, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetPullRequestStatus", arg0, arg1) @@ -1220,13 +1235,13 @@ func (m *MockGitClient) GetPullRequestStatus(arg0 context.Context, arg1 git.GetP return ret0, ret1 } -// GetPullRequestStatus indicates an expected call of GetPullRequestStatus +// GetPullRequestStatus indicates an expected call of GetPullRequestStatus. func (mr *MockGitClientMockRecorder) GetPullRequestStatus(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPullRequestStatus", reflect.TypeOf((*MockGitClient)(nil).GetPullRequestStatus), arg0, arg1) } -// GetPullRequestStatuses mocks base method +// GetPullRequestStatuses mocks base method. func (m *MockGitClient) GetPullRequestStatuses(arg0 context.Context, arg1 git.GetPullRequestStatusesArgs) (*[]git.GitPullRequestStatus, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetPullRequestStatuses", arg0, arg1) @@ -1235,13 +1250,13 @@ func (m *MockGitClient) GetPullRequestStatuses(arg0 context.Context, arg1 git.Ge return ret0, ret1 } -// GetPullRequestStatuses indicates an expected call of GetPullRequestStatuses +// GetPullRequestStatuses indicates an expected call of GetPullRequestStatuses. func (mr *MockGitClientMockRecorder) GetPullRequestStatuses(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPullRequestStatuses", reflect.TypeOf((*MockGitClient)(nil).GetPullRequestStatuses), arg0, arg1) } -// GetPullRequestThread mocks base method +// GetPullRequestThread mocks base method. func (m *MockGitClient) GetPullRequestThread(arg0 context.Context, arg1 git.GetPullRequestThreadArgs) (*git.GitPullRequestCommentThread, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetPullRequestThread", arg0, arg1) @@ -1250,13 +1265,13 @@ func (m *MockGitClient) GetPullRequestThread(arg0 context.Context, arg1 git.GetP return ret0, ret1 } -// GetPullRequestThread indicates an expected call of GetPullRequestThread +// GetPullRequestThread indicates an expected call of GetPullRequestThread. func (mr *MockGitClientMockRecorder) GetPullRequestThread(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPullRequestThread", reflect.TypeOf((*MockGitClient)(nil).GetPullRequestThread), arg0, arg1) } -// GetPullRequestWorkItemRefs mocks base method +// GetPullRequestWorkItemRefs mocks base method. func (m *MockGitClient) GetPullRequestWorkItemRefs(arg0 context.Context, arg1 git.GetPullRequestWorkItemRefsArgs) (*[]webapi.ResourceRef, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetPullRequestWorkItemRefs", arg0, arg1) @@ -1265,13 +1280,13 @@ func (m *MockGitClient) GetPullRequestWorkItemRefs(arg0 context.Context, arg1 gi return ret0, ret1 } -// GetPullRequestWorkItemRefs indicates an expected call of GetPullRequestWorkItemRefs +// GetPullRequestWorkItemRefs indicates an expected call of GetPullRequestWorkItemRefs. func (mr *MockGitClientMockRecorder) GetPullRequestWorkItemRefs(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPullRequestWorkItemRefs", reflect.TypeOf((*MockGitClient)(nil).GetPullRequestWorkItemRefs), arg0, arg1) } -// GetPullRequests mocks base method +// GetPullRequests mocks base method. func (m *MockGitClient) GetPullRequests(arg0 context.Context, arg1 git.GetPullRequestsArgs) (*[]git.GitPullRequest, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetPullRequests", arg0, arg1) @@ -1280,13 +1295,13 @@ func (m *MockGitClient) GetPullRequests(arg0 context.Context, arg1 git.GetPullRe return ret0, ret1 } -// GetPullRequests indicates an expected call of GetPullRequests +// GetPullRequests indicates an expected call of GetPullRequests. func (mr *MockGitClientMockRecorder) GetPullRequests(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPullRequests", reflect.TypeOf((*MockGitClient)(nil).GetPullRequests), arg0, arg1) } -// GetPullRequestsByProject mocks base method +// GetPullRequestsByProject mocks base method. func (m *MockGitClient) GetPullRequestsByProject(arg0 context.Context, arg1 git.GetPullRequestsByProjectArgs) (*[]git.GitPullRequest, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetPullRequestsByProject", arg0, arg1) @@ -1295,13 +1310,13 @@ func (m *MockGitClient) GetPullRequestsByProject(arg0 context.Context, arg1 git. return ret0, ret1 } -// GetPullRequestsByProject indicates an expected call of GetPullRequestsByProject +// GetPullRequestsByProject indicates an expected call of GetPullRequestsByProject. func (mr *MockGitClientMockRecorder) GetPullRequestsByProject(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPullRequestsByProject", reflect.TypeOf((*MockGitClient)(nil).GetPullRequestsByProject), arg0, arg1) } -// GetPush mocks base method +// GetPush mocks base method. func (m *MockGitClient) GetPush(arg0 context.Context, arg1 git.GetPushArgs) (*git.GitPush, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetPush", arg0, arg1) @@ -1310,13 +1325,13 @@ func (m *MockGitClient) GetPush(arg0 context.Context, arg1 git.GetPushArgs) (*gi return ret0, ret1 } -// GetPush indicates an expected call of GetPush +// GetPush indicates an expected call of GetPush. func (mr *MockGitClientMockRecorder) GetPush(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPush", reflect.TypeOf((*MockGitClient)(nil).GetPush), arg0, arg1) } -// GetPushCommits mocks base method +// GetPushCommits mocks base method. func (m *MockGitClient) GetPushCommits(arg0 context.Context, arg1 git.GetPushCommitsArgs) (*[]git.GitCommitRef, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetPushCommits", arg0, arg1) @@ -1325,13 +1340,13 @@ func (m *MockGitClient) GetPushCommits(arg0 context.Context, arg1 git.GetPushCom return ret0, ret1 } -// GetPushCommits indicates an expected call of GetPushCommits +// GetPushCommits indicates an expected call of GetPushCommits. func (mr *MockGitClientMockRecorder) GetPushCommits(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPushCommits", reflect.TypeOf((*MockGitClient)(nil).GetPushCommits), arg0, arg1) } -// GetPushes mocks base method +// GetPushes mocks base method. func (m *MockGitClient) GetPushes(arg0 context.Context, arg1 git.GetPushesArgs) (*[]git.GitPush, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetPushes", arg0, arg1) @@ -1340,13 +1355,13 @@ func (m *MockGitClient) GetPushes(arg0 context.Context, arg1 git.GetPushesArgs) return ret0, ret1 } -// GetPushes indicates an expected call of GetPushes +// GetPushes indicates an expected call of GetPushes. func (mr *MockGitClientMockRecorder) GetPushes(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPushes", reflect.TypeOf((*MockGitClient)(nil).GetPushes), arg0, arg1) } -// GetRecycleBinRepositories mocks base method +// GetRecycleBinRepositories mocks base method. func (m *MockGitClient) GetRecycleBinRepositories(arg0 context.Context, arg1 git.GetRecycleBinRepositoriesArgs) (*[]git.GitDeletedRepository, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetRecycleBinRepositories", arg0, arg1) @@ -1355,13 +1370,13 @@ func (m *MockGitClient) GetRecycleBinRepositories(arg0 context.Context, arg1 git return ret0, ret1 } -// GetRecycleBinRepositories indicates an expected call of GetRecycleBinRepositories +// GetRecycleBinRepositories indicates an expected call of GetRecycleBinRepositories. func (mr *MockGitClientMockRecorder) GetRecycleBinRepositories(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRecycleBinRepositories", reflect.TypeOf((*MockGitClient)(nil).GetRecycleBinRepositories), arg0, arg1) } -// GetRefFavorite mocks base method +// GetRefFavorite mocks base method. func (m *MockGitClient) GetRefFavorite(arg0 context.Context, arg1 git.GetRefFavoriteArgs) (*git.GitRefFavorite, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetRefFavorite", arg0, arg1) @@ -1370,13 +1385,13 @@ func (m *MockGitClient) GetRefFavorite(arg0 context.Context, arg1 git.GetRefFavo return ret0, ret1 } -// GetRefFavorite indicates an expected call of GetRefFavorite +// GetRefFavorite indicates an expected call of GetRefFavorite. func (mr *MockGitClientMockRecorder) GetRefFavorite(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRefFavorite", reflect.TypeOf((*MockGitClient)(nil).GetRefFavorite), arg0, arg1) } -// GetRefFavorites mocks base method +// GetRefFavorites mocks base method. func (m *MockGitClient) GetRefFavorites(arg0 context.Context, arg1 git.GetRefFavoritesArgs) (*[]git.GitRefFavorite, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetRefFavorites", arg0, arg1) @@ -1385,13 +1400,13 @@ func (m *MockGitClient) GetRefFavorites(arg0 context.Context, arg1 git.GetRefFav return ret0, ret1 } -// GetRefFavorites indicates an expected call of GetRefFavorites +// GetRefFavorites indicates an expected call of GetRefFavorites. func (mr *MockGitClientMockRecorder) GetRefFavorites(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRefFavorites", reflect.TypeOf((*MockGitClient)(nil).GetRefFavorites), arg0, arg1) } -// GetRefs mocks base method +// GetRefs mocks base method. func (m *MockGitClient) GetRefs(arg0 context.Context, arg1 git.GetRefsArgs) (*git.GetRefsResponseValue, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetRefs", arg0, arg1) @@ -1400,13 +1415,13 @@ func (m *MockGitClient) GetRefs(arg0 context.Context, arg1 git.GetRefsArgs) (*gi return ret0, ret1 } -// GetRefs indicates an expected call of GetRefs +// GetRefs indicates an expected call of GetRefs. func (mr *MockGitClientMockRecorder) GetRefs(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRefs", reflect.TypeOf((*MockGitClient)(nil).GetRefs), arg0, arg1) } -// GetRepositories mocks base method +// GetRepositories mocks base method. func (m *MockGitClient) GetRepositories(arg0 context.Context, arg1 git.GetRepositoriesArgs) (*[]git.GitRepository, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetRepositories", arg0, arg1) @@ -1415,13 +1430,13 @@ func (m *MockGitClient) GetRepositories(arg0 context.Context, arg1 git.GetReposi return ret0, ret1 } -// GetRepositories indicates an expected call of GetRepositories +// GetRepositories indicates an expected call of GetRepositories. func (mr *MockGitClientMockRecorder) GetRepositories(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRepositories", reflect.TypeOf((*MockGitClient)(nil).GetRepositories), arg0, arg1) } -// GetRepository mocks base method +// GetRepository mocks base method. func (m *MockGitClient) GetRepository(arg0 context.Context, arg1 git.GetRepositoryArgs) (*git.GitRepository, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetRepository", arg0, arg1) @@ -1430,13 +1445,13 @@ func (m *MockGitClient) GetRepository(arg0 context.Context, arg1 git.GetReposito return ret0, ret1 } -// GetRepository indicates an expected call of GetRepository +// GetRepository indicates an expected call of GetRepository. func (mr *MockGitClientMockRecorder) GetRepository(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRepository", reflect.TypeOf((*MockGitClient)(nil).GetRepository), arg0, arg1) } -// GetRepositoryWithParent mocks base method +// GetRepositoryWithParent mocks base method. func (m *MockGitClient) GetRepositoryWithParent(arg0 context.Context, arg1 git.GetRepositoryWithParentArgs) (*git.GitRepository, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetRepositoryWithParent", arg0, arg1) @@ -1445,13 +1460,13 @@ func (m *MockGitClient) GetRepositoryWithParent(arg0 context.Context, arg1 git.G return ret0, ret1 } -// GetRepositoryWithParent indicates an expected call of GetRepositoryWithParent +// GetRepositoryWithParent indicates an expected call of GetRepositoryWithParent. func (mr *MockGitClientMockRecorder) GetRepositoryWithParent(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRepositoryWithParent", reflect.TypeOf((*MockGitClient)(nil).GetRepositoryWithParent), arg0, arg1) } -// GetRevert mocks base method +// GetRevert mocks base method. func (m *MockGitClient) GetRevert(arg0 context.Context, arg1 git.GetRevertArgs) (*git.GitRevert, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetRevert", arg0, arg1) @@ -1460,13 +1475,13 @@ func (m *MockGitClient) GetRevert(arg0 context.Context, arg1 git.GetRevertArgs) return ret0, ret1 } -// GetRevert indicates an expected call of GetRevert +// GetRevert indicates an expected call of GetRevert. func (mr *MockGitClientMockRecorder) GetRevert(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRevert", reflect.TypeOf((*MockGitClient)(nil).GetRevert), arg0, arg1) } -// GetRevertForRefName mocks base method +// GetRevertForRefName mocks base method. func (m *MockGitClient) GetRevertForRefName(arg0 context.Context, arg1 git.GetRevertForRefNameArgs) (*git.GitRevert, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetRevertForRefName", arg0, arg1) @@ -1475,13 +1490,13 @@ func (m *MockGitClient) GetRevertForRefName(arg0 context.Context, arg1 git.GetRe return ret0, ret1 } -// GetRevertForRefName indicates an expected call of GetRevertForRefName +// GetRevertForRefName indicates an expected call of GetRevertForRefName. func (mr *MockGitClientMockRecorder) GetRevertForRefName(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRevertForRefName", reflect.TypeOf((*MockGitClient)(nil).GetRevertForRefName), arg0, arg1) } -// GetStatuses mocks base method +// GetStatuses mocks base method. func (m *MockGitClient) GetStatuses(arg0 context.Context, arg1 git.GetStatusesArgs) (*[]git.GitStatus, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetStatuses", arg0, arg1) @@ -1490,13 +1505,13 @@ func (m *MockGitClient) GetStatuses(arg0 context.Context, arg1 git.GetStatusesAr return ret0, ret1 } -// GetStatuses indicates an expected call of GetStatuses +// GetStatuses indicates an expected call of GetStatuses. func (mr *MockGitClientMockRecorder) GetStatuses(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetStatuses", reflect.TypeOf((*MockGitClient)(nil).GetStatuses), arg0, arg1) } -// GetSuggestions mocks base method +// GetSuggestions mocks base method. func (m *MockGitClient) GetSuggestions(arg0 context.Context, arg1 git.GetSuggestionsArgs) (*[]git.GitSuggestion, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetSuggestions", arg0, arg1) @@ -1505,13 +1520,13 @@ func (m *MockGitClient) GetSuggestions(arg0 context.Context, arg1 git.GetSuggest return ret0, ret1 } -// GetSuggestions indicates an expected call of GetSuggestions +// GetSuggestions indicates an expected call of GetSuggestions. func (mr *MockGitClientMockRecorder) GetSuggestions(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSuggestions", reflect.TypeOf((*MockGitClient)(nil).GetSuggestions), arg0, arg1) } -// GetThreads mocks base method +// GetThreads mocks base method. func (m *MockGitClient) GetThreads(arg0 context.Context, arg1 git.GetThreadsArgs) (*[]git.GitPullRequestCommentThread, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetThreads", arg0, arg1) @@ -1520,13 +1535,13 @@ func (m *MockGitClient) GetThreads(arg0 context.Context, arg1 git.GetThreadsArgs return ret0, ret1 } -// GetThreads indicates an expected call of GetThreads +// GetThreads indicates an expected call of GetThreads. func (mr *MockGitClientMockRecorder) GetThreads(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetThreads", reflect.TypeOf((*MockGitClient)(nil).GetThreads), arg0, arg1) } -// GetTree mocks base method +// GetTree mocks base method. func (m *MockGitClient) GetTree(arg0 context.Context, arg1 git.GetTreeArgs) (*git.GitTreeRef, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetTree", arg0, arg1) @@ -1535,13 +1550,13 @@ func (m *MockGitClient) GetTree(arg0 context.Context, arg1 git.GetTreeArgs) (*gi return ret0, ret1 } -// GetTree indicates an expected call of GetTree +// GetTree indicates an expected call of GetTree. func (mr *MockGitClientMockRecorder) GetTree(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTree", reflect.TypeOf((*MockGitClient)(nil).GetTree), arg0, arg1) } -// GetTreeZip mocks base method +// GetTreeZip mocks base method. func (m *MockGitClient) GetTreeZip(arg0 context.Context, arg1 git.GetTreeZipArgs) (io.ReadCloser, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetTreeZip", arg0, arg1) @@ -1550,13 +1565,13 @@ func (m *MockGitClient) GetTreeZip(arg0 context.Context, arg1 git.GetTreeZipArgs return ret0, ret1 } -// GetTreeZip indicates an expected call of GetTreeZip +// GetTreeZip indicates an expected call of GetTreeZip. func (mr *MockGitClientMockRecorder) GetTreeZip(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTreeZip", reflect.TypeOf((*MockGitClient)(nil).GetTreeZip), arg0, arg1) } -// QueryImportRequests mocks base method +// QueryImportRequests mocks base method. func (m *MockGitClient) QueryImportRequests(arg0 context.Context, arg1 git.QueryImportRequestsArgs) (*[]git.GitImportRequest, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "QueryImportRequests", arg0, arg1) @@ -1565,13 +1580,13 @@ func (m *MockGitClient) QueryImportRequests(arg0 context.Context, arg1 git.Query return ret0, ret1 } -// QueryImportRequests indicates an expected call of QueryImportRequests +// QueryImportRequests indicates an expected call of QueryImportRequests. func (mr *MockGitClientMockRecorder) QueryImportRequests(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryImportRequests", reflect.TypeOf((*MockGitClient)(nil).QueryImportRequests), arg0, arg1) } -// RestoreRepositoryFromRecycleBin mocks base method +// RestoreRepositoryFromRecycleBin mocks base method. func (m *MockGitClient) RestoreRepositoryFromRecycleBin(arg0 context.Context, arg1 git.RestoreRepositoryFromRecycleBinArgs) (*git.GitRepository, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "RestoreRepositoryFromRecycleBin", arg0, arg1) @@ -1580,13 +1595,13 @@ func (m *MockGitClient) RestoreRepositoryFromRecycleBin(arg0 context.Context, ar return ret0, ret1 } -// RestoreRepositoryFromRecycleBin indicates an expected call of RestoreRepositoryFromRecycleBin +// RestoreRepositoryFromRecycleBin indicates an expected call of RestoreRepositoryFromRecycleBin. func (mr *MockGitClientMockRecorder) RestoreRepositoryFromRecycleBin(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RestoreRepositoryFromRecycleBin", reflect.TypeOf((*MockGitClient)(nil).RestoreRepositoryFromRecycleBin), arg0, arg1) } -// SharePullRequest mocks base method +// SharePullRequest mocks base method. func (m *MockGitClient) SharePullRequest(arg0 context.Context, arg1 git.SharePullRequestArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SharePullRequest", arg0, arg1) @@ -1594,13 +1609,13 @@ func (m *MockGitClient) SharePullRequest(arg0 context.Context, arg1 git.SharePul return ret0 } -// SharePullRequest indicates an expected call of SharePullRequest +// SharePullRequest indicates an expected call of SharePullRequest. func (mr *MockGitClientMockRecorder) SharePullRequest(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SharePullRequest", reflect.TypeOf((*MockGitClient)(nil).SharePullRequest), arg0, arg1) } -// UpdateComment mocks base method +// UpdateComment mocks base method. func (m *MockGitClient) UpdateComment(arg0 context.Context, arg1 git.UpdateCommentArgs) (*git.Comment, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateComment", arg0, arg1) @@ -1609,13 +1624,13 @@ func (m *MockGitClient) UpdateComment(arg0 context.Context, arg1 git.UpdateComme return ret0, ret1 } -// UpdateComment indicates an expected call of UpdateComment +// UpdateComment indicates an expected call of UpdateComment. func (mr *MockGitClientMockRecorder) UpdateComment(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateComment", reflect.TypeOf((*MockGitClient)(nil).UpdateComment), arg0, arg1) } -// UpdateImportRequest mocks base method +// UpdateImportRequest mocks base method. func (m *MockGitClient) UpdateImportRequest(arg0 context.Context, arg1 git.UpdateImportRequestArgs) (*git.GitImportRequest, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateImportRequest", arg0, arg1) @@ -1624,13 +1639,13 @@ func (m *MockGitClient) UpdateImportRequest(arg0 context.Context, arg1 git.Updat return ret0, ret1 } -// UpdateImportRequest indicates an expected call of UpdateImportRequest +// UpdateImportRequest indicates an expected call of UpdateImportRequest. func (mr *MockGitClientMockRecorder) UpdateImportRequest(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateImportRequest", reflect.TypeOf((*MockGitClient)(nil).UpdateImportRequest), arg0, arg1) } -// UpdatePullRequest mocks base method +// UpdatePullRequest mocks base method. func (m *MockGitClient) UpdatePullRequest(arg0 context.Context, arg1 git.UpdatePullRequestArgs) (*git.GitPullRequest, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdatePullRequest", arg0, arg1) @@ -1639,13 +1654,13 @@ func (m *MockGitClient) UpdatePullRequest(arg0 context.Context, arg1 git.UpdateP return ret0, ret1 } -// UpdatePullRequest indicates an expected call of UpdatePullRequest +// UpdatePullRequest indicates an expected call of UpdatePullRequest. func (mr *MockGitClientMockRecorder) UpdatePullRequest(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePullRequest", reflect.TypeOf((*MockGitClient)(nil).UpdatePullRequest), arg0, arg1) } -// UpdatePullRequestIterationStatuses mocks base method +// UpdatePullRequestIterationStatuses mocks base method. func (m *MockGitClient) UpdatePullRequestIterationStatuses(arg0 context.Context, arg1 git.UpdatePullRequestIterationStatusesArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdatePullRequestIterationStatuses", arg0, arg1) @@ -1653,13 +1668,13 @@ func (m *MockGitClient) UpdatePullRequestIterationStatuses(arg0 context.Context, return ret0 } -// UpdatePullRequestIterationStatuses indicates an expected call of UpdatePullRequestIterationStatuses +// UpdatePullRequestIterationStatuses indicates an expected call of UpdatePullRequestIterationStatuses. func (mr *MockGitClientMockRecorder) UpdatePullRequestIterationStatuses(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePullRequestIterationStatuses", reflect.TypeOf((*MockGitClient)(nil).UpdatePullRequestIterationStatuses), arg0, arg1) } -// UpdatePullRequestProperties mocks base method +// UpdatePullRequestProperties mocks base method. func (m *MockGitClient) UpdatePullRequestProperties(arg0 context.Context, arg1 git.UpdatePullRequestPropertiesArgs) (interface{}, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdatePullRequestProperties", arg0, arg1) @@ -1668,13 +1683,28 @@ func (m *MockGitClient) UpdatePullRequestProperties(arg0 context.Context, arg1 g return ret0, ret1 } -// UpdatePullRequestProperties indicates an expected call of UpdatePullRequestProperties +// UpdatePullRequestProperties indicates an expected call of UpdatePullRequestProperties. func (mr *MockGitClientMockRecorder) UpdatePullRequestProperties(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePullRequestProperties", reflect.TypeOf((*MockGitClient)(nil).UpdatePullRequestProperties), arg0, arg1) } -// UpdatePullRequestReviewers mocks base method +// UpdatePullRequestReviewer mocks base method. +func (m *MockGitClient) UpdatePullRequestReviewer(arg0 context.Context, arg1 git.UpdatePullRequestReviewerArgs) (*git.IdentityRefWithVote, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdatePullRequestReviewer", arg0, arg1) + ret0, _ := ret[0].(*git.IdentityRefWithVote) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdatePullRequestReviewer indicates an expected call of UpdatePullRequestReviewer. +func (mr *MockGitClientMockRecorder) UpdatePullRequestReviewer(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePullRequestReviewer", reflect.TypeOf((*MockGitClient)(nil).UpdatePullRequestReviewer), arg0, arg1) +} + +// UpdatePullRequestReviewers mocks base method. func (m *MockGitClient) UpdatePullRequestReviewers(arg0 context.Context, arg1 git.UpdatePullRequestReviewersArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdatePullRequestReviewers", arg0, arg1) @@ -1682,13 +1712,13 @@ func (m *MockGitClient) UpdatePullRequestReviewers(arg0 context.Context, arg1 gi return ret0 } -// UpdatePullRequestReviewers indicates an expected call of UpdatePullRequestReviewers +// UpdatePullRequestReviewers indicates an expected call of UpdatePullRequestReviewers. func (mr *MockGitClientMockRecorder) UpdatePullRequestReviewers(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePullRequestReviewers", reflect.TypeOf((*MockGitClient)(nil).UpdatePullRequestReviewers), arg0, arg1) } -// UpdatePullRequestStatuses mocks base method +// UpdatePullRequestStatuses mocks base method. func (m *MockGitClient) UpdatePullRequestStatuses(arg0 context.Context, arg1 git.UpdatePullRequestStatusesArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdatePullRequestStatuses", arg0, arg1) @@ -1696,13 +1726,13 @@ func (m *MockGitClient) UpdatePullRequestStatuses(arg0 context.Context, arg1 git return ret0 } -// UpdatePullRequestStatuses indicates an expected call of UpdatePullRequestStatuses +// UpdatePullRequestStatuses indicates an expected call of UpdatePullRequestStatuses. func (mr *MockGitClientMockRecorder) UpdatePullRequestStatuses(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePullRequestStatuses", reflect.TypeOf((*MockGitClient)(nil).UpdatePullRequestStatuses), arg0, arg1) } -// UpdateRef mocks base method +// UpdateRef mocks base method. func (m *MockGitClient) UpdateRef(arg0 context.Context, arg1 git.UpdateRefArgs) (*git.GitRef, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateRef", arg0, arg1) @@ -1711,13 +1741,13 @@ func (m *MockGitClient) UpdateRef(arg0 context.Context, arg1 git.UpdateRefArgs) return ret0, ret1 } -// UpdateRef indicates an expected call of UpdateRef +// UpdateRef indicates an expected call of UpdateRef. func (mr *MockGitClientMockRecorder) UpdateRef(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRef", reflect.TypeOf((*MockGitClient)(nil).UpdateRef), arg0, arg1) } -// UpdateRefs mocks base method +// UpdateRefs mocks base method. func (m *MockGitClient) UpdateRefs(arg0 context.Context, arg1 git.UpdateRefsArgs) (*[]git.GitRefUpdateResult, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateRefs", arg0, arg1) @@ -1726,13 +1756,13 @@ func (m *MockGitClient) UpdateRefs(arg0 context.Context, arg1 git.UpdateRefsArgs return ret0, ret1 } -// UpdateRefs indicates an expected call of UpdateRefs +// UpdateRefs indicates an expected call of UpdateRefs. func (mr *MockGitClientMockRecorder) UpdateRefs(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRefs", reflect.TypeOf((*MockGitClient)(nil).UpdateRefs), arg0, arg1) } -// UpdateRepository mocks base method +// UpdateRepository mocks base method. func (m *MockGitClient) UpdateRepository(arg0 context.Context, arg1 git.UpdateRepositoryArgs) (*git.GitRepository, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateRepository", arg0, arg1) @@ -1741,13 +1771,13 @@ func (m *MockGitClient) UpdateRepository(arg0 context.Context, arg1 git.UpdateRe return ret0, ret1 } -// UpdateRepository indicates an expected call of UpdateRepository +// UpdateRepository indicates an expected call of UpdateRepository. func (mr *MockGitClientMockRecorder) UpdateRepository(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRepository", reflect.TypeOf((*MockGitClient)(nil).UpdateRepository), arg0, arg1) } -// UpdateThread mocks base method +// UpdateThread mocks base method. func (m *MockGitClient) UpdateThread(arg0 context.Context, arg1 git.UpdateThreadArgs) (*git.GitPullRequestCommentThread, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateThread", arg0, arg1) @@ -1756,7 +1786,7 @@ func (m *MockGitClient) UpdateThread(arg0 context.Context, arg1 git.UpdateThread return ret0, ret1 } -// UpdateThread indicates an expected call of UpdateThread +// UpdateThread indicates an expected call of UpdateThread. func (mr *MockGitClientMockRecorder) UpdateThread(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateThread", reflect.TypeOf((*MockGitClient)(nil).UpdateThread), arg0, arg1) diff --git a/azdosdkmocks/graph_sdk_mock.go b/azdosdkmocks/graph_sdk_mock.go index 7244375a3..c020ca69f 100644 --- a/azdosdkmocks/graph_sdk_mock.go +++ b/azdosdkmocks/graph_sdk_mock.go @@ -44,13 +44,13 @@ func (m *MockGraphClient) AddMembership(arg0 context.Context, arg1 graph.AddMemb return ret0, ret1 } -// AddMembership indicates an expected call of AddMembership +// AddMembership indicates an expected call of AddMembership. func (mr *MockGraphClientMockRecorder) AddMembership(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddMembership", reflect.TypeOf((*MockGraphClient)(nil).AddMembership), arg0, arg1) } -// CheckMembershipExistence mocks base method +// CheckMembershipExistence mocks base method. func (m *MockGraphClient) CheckMembershipExistence(arg0 context.Context, arg1 graph.CheckMembershipExistenceArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CheckMembershipExistence", arg0, arg1) @@ -58,13 +58,13 @@ func (m *MockGraphClient) CheckMembershipExistence(arg0 context.Context, arg1 gr return ret0 } -// CheckMembershipExistence indicates an expected call of CheckMembershipExistence +// CheckMembershipExistence indicates an expected call of CheckMembershipExistence. func (mr *MockGraphClientMockRecorder) CheckMembershipExistence(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckMembershipExistence", reflect.TypeOf((*MockGraphClient)(nil).CheckMembershipExistence), arg0, arg1) } -// CreateGroup mocks base method +// CreateGroup mocks base method. func (m *MockGraphClient) CreateGroup(arg0 context.Context, arg1 graph.CreateGroupArgs) (*graph.GraphGroup, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateGroup", arg0, arg1) @@ -73,13 +73,13 @@ func (m *MockGraphClient) CreateGroup(arg0 context.Context, arg1 graph.CreateGro return ret0, ret1 } -// CreateGroup indicates an expected call of CreateGroup +// CreateGroup indicates an expected call of CreateGroup. func (mr *MockGraphClientMockRecorder) CreateGroup(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateGroup", reflect.TypeOf((*MockGraphClient)(nil).CreateGroup), arg0, arg1) } -// CreateUser mocks base method +// CreateUser mocks base method. func (m *MockGraphClient) CreateUser(arg0 context.Context, arg1 graph.CreateUserArgs) (*graph.GraphUser, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateUser", arg0, arg1) @@ -88,13 +88,13 @@ func (m *MockGraphClient) CreateUser(arg0 context.Context, arg1 graph.CreateUser return ret0, ret1 } -// CreateUser indicates an expected call of CreateUser +// CreateUser indicates an expected call of CreateUser. func (mr *MockGraphClientMockRecorder) CreateUser(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateUser", reflect.TypeOf((*MockGraphClient)(nil).CreateUser), arg0, arg1) } -// DeleteAvatar mocks base method +// DeleteAvatar mocks base method. func (m *MockGraphClient) DeleteAvatar(arg0 context.Context, arg1 graph.DeleteAvatarArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteAvatar", arg0, arg1) @@ -102,13 +102,13 @@ func (m *MockGraphClient) DeleteAvatar(arg0 context.Context, arg1 graph.DeleteAv return ret0 } -// DeleteAvatar indicates an expected call of DeleteAvatar +// DeleteAvatar indicates an expected call of DeleteAvatar. func (mr *MockGraphClientMockRecorder) DeleteAvatar(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAvatar", reflect.TypeOf((*MockGraphClient)(nil).DeleteAvatar), arg0, arg1) } -// DeleteGroup mocks base method +// DeleteGroup mocks base method. func (m *MockGraphClient) DeleteGroup(arg0 context.Context, arg1 graph.DeleteGroupArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteGroup", arg0, arg1) @@ -116,13 +116,13 @@ func (m *MockGraphClient) DeleteGroup(arg0 context.Context, arg1 graph.DeleteGro return ret0 } -// DeleteGroup indicates an expected call of DeleteGroup +// DeleteGroup indicates an expected call of DeleteGroup. func (mr *MockGraphClientMockRecorder) DeleteGroup(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteGroup", reflect.TypeOf((*MockGraphClient)(nil).DeleteGroup), arg0, arg1) } -// DeleteUser mocks base method +// DeleteUser mocks base method. func (m *MockGraphClient) DeleteUser(arg0 context.Context, arg1 graph.DeleteUserArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteUser", arg0, arg1) @@ -130,13 +130,13 @@ func (m *MockGraphClient) DeleteUser(arg0 context.Context, arg1 graph.DeleteUser return ret0 } -// DeleteUser indicates an expected call of DeleteUser +// DeleteUser indicates an expected call of DeleteUser. func (mr *MockGraphClientMockRecorder) DeleteUser(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUser", reflect.TypeOf((*MockGraphClient)(nil).DeleteUser), arg0, arg1) } -// GetAvatar mocks base method +// GetAvatar mocks base method. func (m *MockGraphClient) GetAvatar(arg0 context.Context, arg1 graph.GetAvatarArgs) (*profile.Avatar, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetAvatar", arg0, arg1) @@ -145,13 +145,13 @@ func (m *MockGraphClient) GetAvatar(arg0 context.Context, arg1 graph.GetAvatarAr return ret0, ret1 } -// GetAvatar indicates an expected call of GetAvatar +// GetAvatar indicates an expected call of GetAvatar. func (mr *MockGraphClientMockRecorder) GetAvatar(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAvatar", reflect.TypeOf((*MockGraphClient)(nil).GetAvatar), arg0, arg1) } -// GetDescriptor mocks base method +// GetDescriptor mocks base method. func (m *MockGraphClient) GetDescriptor(arg0 context.Context, arg1 graph.GetDescriptorArgs) (*graph.GraphDescriptorResult, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetDescriptor", arg0, arg1) @@ -160,13 +160,13 @@ func (m *MockGraphClient) GetDescriptor(arg0 context.Context, arg1 graph.GetDesc return ret0, ret1 } -// GetDescriptor indicates an expected call of GetDescriptor +// GetDescriptor indicates an expected call of GetDescriptor. func (mr *MockGraphClientMockRecorder) GetDescriptor(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDescriptor", reflect.TypeOf((*MockGraphClient)(nil).GetDescriptor), arg0, arg1) } -// GetGroup mocks base method +// GetGroup mocks base method. func (m *MockGraphClient) GetGroup(arg0 context.Context, arg1 graph.GetGroupArgs) (*graph.GraphGroup, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetGroup", arg0, arg1) @@ -175,13 +175,13 @@ func (m *MockGraphClient) GetGroup(arg0 context.Context, arg1 graph.GetGroupArgs return ret0, ret1 } -// GetGroup indicates an expected call of GetGroup +// GetGroup indicates an expected call of GetGroup. func (mr *MockGraphClientMockRecorder) GetGroup(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGroup", reflect.TypeOf((*MockGraphClient)(nil).GetGroup), arg0, arg1) } -// GetMembership mocks base method +// GetMembership mocks base method. func (m *MockGraphClient) GetMembership(arg0 context.Context, arg1 graph.GetMembershipArgs) (*graph.GraphMembership, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetMembership", arg0, arg1) @@ -190,13 +190,13 @@ func (m *MockGraphClient) GetMembership(arg0 context.Context, arg1 graph.GetMemb return ret0, ret1 } -// GetMembership indicates an expected call of GetMembership +// GetMembership indicates an expected call of GetMembership. func (mr *MockGraphClientMockRecorder) GetMembership(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMembership", reflect.TypeOf((*MockGraphClient)(nil).GetMembership), arg0, arg1) } -// GetMembershipState mocks base method +// GetMembershipState mocks base method. func (m *MockGraphClient) GetMembershipState(arg0 context.Context, arg1 graph.GetMembershipStateArgs) (*graph.GraphMembershipState, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetMembershipState", arg0, arg1) @@ -205,13 +205,13 @@ func (m *MockGraphClient) GetMembershipState(arg0 context.Context, arg1 graph.Ge return ret0, ret1 } -// GetMembershipState indicates an expected call of GetMembershipState +// GetMembershipState indicates an expected call of GetMembershipState. func (mr *MockGraphClientMockRecorder) GetMembershipState(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMembershipState", reflect.TypeOf((*MockGraphClient)(nil).GetMembershipState), arg0, arg1) } -// GetProviderInfo mocks base method +// GetProviderInfo mocks base method. func (m *MockGraphClient) GetProviderInfo(arg0 context.Context, arg1 graph.GetProviderInfoArgs) (*graph.GraphProviderInfo, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetProviderInfo", arg0, arg1) @@ -220,13 +220,13 @@ func (m *MockGraphClient) GetProviderInfo(arg0 context.Context, arg1 graph.GetPr return ret0, ret1 } -// GetProviderInfo indicates an expected call of GetProviderInfo +// GetProviderInfo indicates an expected call of GetProviderInfo. func (mr *MockGraphClientMockRecorder) GetProviderInfo(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetProviderInfo", reflect.TypeOf((*MockGraphClient)(nil).GetProviderInfo), arg0, arg1) } -// GetStorageKey mocks base method +// GetStorageKey mocks base method. func (m *MockGraphClient) GetStorageKey(arg0 context.Context, arg1 graph.GetStorageKeyArgs) (*graph.GraphStorageKeyResult, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetStorageKey", arg0, arg1) @@ -235,13 +235,13 @@ func (m *MockGraphClient) GetStorageKey(arg0 context.Context, arg1 graph.GetStor return ret0, ret1 } -// GetStorageKey indicates an expected call of GetStorageKey +// GetStorageKey indicates an expected call of GetStorageKey. func (mr *MockGraphClientMockRecorder) GetStorageKey(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetStorageKey", reflect.TypeOf((*MockGraphClient)(nil).GetStorageKey), arg0, arg1) } -// GetUser mocks base method +// GetUser mocks base method. func (m *MockGraphClient) GetUser(arg0 context.Context, arg1 graph.GetUserArgs) (*graph.GraphUser, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetUser", arg0, arg1) @@ -250,13 +250,13 @@ func (m *MockGraphClient) GetUser(arg0 context.Context, arg1 graph.GetUserArgs) return ret0, ret1 } -// GetUser indicates an expected call of GetUser +// GetUser indicates an expected call of GetUser. func (mr *MockGraphClientMockRecorder) GetUser(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUser", reflect.TypeOf((*MockGraphClient)(nil).GetUser), arg0, arg1) } -// ListGroups mocks base method +// ListGroups mocks base method. func (m *MockGraphClient) ListGroups(arg0 context.Context, arg1 graph.ListGroupsArgs) (*graph.PagedGraphGroups, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ListGroups", arg0, arg1) @@ -265,13 +265,13 @@ func (m *MockGraphClient) ListGroups(arg0 context.Context, arg1 graph.ListGroups return ret0, ret1 } -// ListGroups indicates an expected call of ListGroups +// ListGroups indicates an expected call of ListGroups. func (mr *MockGraphClientMockRecorder) ListGroups(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGroups", reflect.TypeOf((*MockGraphClient)(nil).ListGroups), arg0, arg1) } -// ListMemberships mocks base method +// ListMemberships mocks base method. func (m *MockGraphClient) ListMemberships(arg0 context.Context, arg1 graph.ListMembershipsArgs) (*[]graph.GraphMembership, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ListMemberships", arg0, arg1) @@ -280,13 +280,13 @@ func (m *MockGraphClient) ListMemberships(arg0 context.Context, arg1 graph.ListM return ret0, ret1 } -// ListMemberships indicates an expected call of ListMemberships +// ListMemberships indicates an expected call of ListMemberships. func (mr *MockGraphClientMockRecorder) ListMemberships(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMemberships", reflect.TypeOf((*MockGraphClient)(nil).ListMemberships), arg0, arg1) } -// ListUsers mocks base method +// ListUsers mocks base method. func (m *MockGraphClient) ListUsers(arg0 context.Context, arg1 graph.ListUsersArgs) (*graph.PagedGraphUsers, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ListUsers", arg0, arg1) @@ -295,13 +295,13 @@ func (m *MockGraphClient) ListUsers(arg0 context.Context, arg1 graph.ListUsersAr return ret0, ret1 } -// ListUsers indicates an expected call of ListUsers +// ListUsers indicates an expected call of ListUsers. func (mr *MockGraphClientMockRecorder) ListUsers(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUsers", reflect.TypeOf((*MockGraphClient)(nil).ListUsers), arg0, arg1) } -// LookupSubjects mocks base method +// LookupSubjects mocks base method. func (m *MockGraphClient) LookupSubjects(arg0 context.Context, arg1 graph.LookupSubjectsArgs) (*map[string]graph.GraphSubject, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "LookupSubjects", arg0, arg1) @@ -310,13 +310,28 @@ func (m *MockGraphClient) LookupSubjects(arg0 context.Context, arg1 graph.Lookup return ret0, ret1 } -// LookupSubjects indicates an expected call of LookupSubjects +// LookupSubjects indicates an expected call of LookupSubjects. func (mr *MockGraphClientMockRecorder) LookupSubjects(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LookupSubjects", reflect.TypeOf((*MockGraphClient)(nil).LookupSubjects), arg0, arg1) } -// RemoveMembership mocks base method +// QuerySubjects mocks base method. +func (m *MockGraphClient) QuerySubjects(arg0 context.Context, arg1 graph.QuerySubjectsArgs) (*[]graph.GraphSubject, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "QuerySubjects", arg0, arg1) + ret0, _ := ret[0].(*[]graph.GraphSubject) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// QuerySubjects indicates an expected call of QuerySubjects. +func (mr *MockGraphClientMockRecorder) QuerySubjects(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QuerySubjects", reflect.TypeOf((*MockGraphClient)(nil).QuerySubjects), arg0, arg1) +} + +// RemoveMembership mocks base method. func (m *MockGraphClient) RemoveMembership(arg0 context.Context, arg1 graph.RemoveMembershipArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "RemoveMembership", arg0, arg1) @@ -324,13 +339,13 @@ func (m *MockGraphClient) RemoveMembership(arg0 context.Context, arg1 graph.Remo return ret0 } -// RemoveMembership indicates an expected call of RemoveMembership +// RemoveMembership indicates an expected call of RemoveMembership. func (mr *MockGraphClientMockRecorder) RemoveMembership(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveMembership", reflect.TypeOf((*MockGraphClient)(nil).RemoveMembership), arg0, arg1) } -// RequestAccess mocks base method +// RequestAccess mocks base method. func (m *MockGraphClient) RequestAccess(arg0 context.Context, arg1 graph.RequestAccessArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "RequestAccess", arg0, arg1) @@ -338,13 +353,13 @@ func (m *MockGraphClient) RequestAccess(arg0 context.Context, arg1 graph.Request return ret0 } -// RequestAccess indicates an expected call of RequestAccess +// RequestAccess indicates an expected call of RequestAccess. func (mr *MockGraphClientMockRecorder) RequestAccess(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RequestAccess", reflect.TypeOf((*MockGraphClient)(nil).RequestAccess), arg0, arg1) } -// SetAvatar mocks base method +// SetAvatar mocks base method. func (m *MockGraphClient) SetAvatar(arg0 context.Context, arg1 graph.SetAvatarArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SetAvatar", arg0, arg1) @@ -352,13 +367,13 @@ func (m *MockGraphClient) SetAvatar(arg0 context.Context, arg1 graph.SetAvatarAr return ret0 } -// SetAvatar indicates an expected call of SetAvatar +// SetAvatar indicates an expected call of SetAvatar. func (mr *MockGraphClientMockRecorder) SetAvatar(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetAvatar", reflect.TypeOf((*MockGraphClient)(nil).SetAvatar), arg0, arg1) } -// UpdateGroup mocks base method +// UpdateGroup mocks base method. func (m *MockGraphClient) UpdateGroup(arg0 context.Context, arg1 graph.UpdateGroupArgs) (*graph.GraphGroup, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateGroup", arg0, arg1) @@ -367,13 +382,13 @@ func (m *MockGraphClient) UpdateGroup(arg0 context.Context, arg1 graph.UpdateGro return ret0, ret1 } -// UpdateGroup indicates an expected call of UpdateGroup +// UpdateGroup indicates an expected call of UpdateGroup. func (mr *MockGraphClientMockRecorder) UpdateGroup(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateGroup", reflect.TypeOf((*MockGraphClient)(nil).UpdateGroup), arg0, arg1) } -// UpdateUser mocks base method +// UpdateUser mocks base method. func (m *MockGraphClient) UpdateUser(arg0 context.Context, arg1 graph.UpdateUserArgs) (*graph.GraphUser, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateUser", arg0, arg1) @@ -382,7 +397,7 @@ func (m *MockGraphClient) UpdateUser(arg0 context.Context, arg1 graph.UpdateUser return ret0, ret1 } -// UpdateUser indicates an expected call of UpdateUser +// UpdateUser indicates an expected call of UpdateUser. func (mr *MockGraphClientMockRecorder) UpdateUser(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUser", reflect.TypeOf((*MockGraphClient)(nil).UpdateUser), arg0, arg1) diff --git a/azdosdkmocks/identity_sdk_mock.go b/azdosdkmocks/identity_sdk_mock.go index 88cda0453..d2cd18a65 100644 --- a/azdosdkmocks/identity_sdk_mock.go +++ b/azdosdkmocks/identity_sdk_mock.go @@ -45,13 +45,13 @@ func (m *MockIdentityClient) AddMember(arg0 context.Context, arg1 identity.AddMe return ret0, ret1 } -// AddMember indicates an expected call of AddMember +// AddMember indicates an expected call of AddMember. func (mr *MockIdentityClientMockRecorder) AddMember(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddMember", reflect.TypeOf((*MockIdentityClient)(nil).AddMember), arg0, arg1) } -// CreateGroups mocks base method +// CreateGroups mocks base method. func (m *MockIdentityClient) CreateGroups(arg0 context.Context, arg1 identity.CreateGroupsArgs) (*[]identity.Identity, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateGroups", arg0, arg1) @@ -60,13 +60,13 @@ func (m *MockIdentityClient) CreateGroups(arg0 context.Context, arg1 identity.Cr return ret0, ret1 } -// CreateGroups indicates an expected call of CreateGroups +// CreateGroups indicates an expected call of CreateGroups. func (mr *MockIdentityClientMockRecorder) CreateGroups(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateGroups", reflect.TypeOf((*MockIdentityClient)(nil).CreateGroups), arg0, arg1) } -// CreateIdentity mocks base method +// CreateIdentity mocks base method. func (m *MockIdentityClient) CreateIdentity(arg0 context.Context, arg1 identity.CreateIdentityArgs) (*identity.Identity, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateIdentity", arg0, arg1) @@ -75,13 +75,13 @@ func (m *MockIdentityClient) CreateIdentity(arg0 context.Context, arg1 identity. return ret0, ret1 } -// CreateIdentity indicates an expected call of CreateIdentity +// CreateIdentity indicates an expected call of CreateIdentity. func (mr *MockIdentityClientMockRecorder) CreateIdentity(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateIdentity", reflect.TypeOf((*MockIdentityClient)(nil).CreateIdentity), arg0, arg1) } -// CreateOrBindWithClaims mocks base method +// CreateOrBindWithClaims mocks base method. func (m *MockIdentityClient) CreateOrBindWithClaims(arg0 context.Context, arg1 identity.CreateOrBindWithClaimsArgs) (*identity.Identity, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateOrBindWithClaims", arg0, arg1) @@ -90,13 +90,13 @@ func (m *MockIdentityClient) CreateOrBindWithClaims(arg0 context.Context, arg1 i return ret0, ret1 } -// CreateOrBindWithClaims indicates an expected call of CreateOrBindWithClaims +// CreateOrBindWithClaims indicates an expected call of CreateOrBindWithClaims. func (mr *MockIdentityClientMockRecorder) CreateOrBindWithClaims(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOrBindWithClaims", reflect.TypeOf((*MockIdentityClient)(nil).CreateOrBindWithClaims), arg0, arg1) } -// CreateScope mocks base method +// CreateScope mocks base method. func (m *MockIdentityClient) CreateScope(arg0 context.Context, arg1 identity.CreateScopeArgs) (*identity.IdentityScope, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateScope", arg0, arg1) @@ -105,13 +105,13 @@ func (m *MockIdentityClient) CreateScope(arg0 context.Context, arg1 identity.Cre return ret0, ret1 } -// CreateScope indicates an expected call of CreateScope +// CreateScope indicates an expected call of CreateScope. func (mr *MockIdentityClientMockRecorder) CreateScope(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateScope", reflect.TypeOf((*MockIdentityClient)(nil).CreateScope), arg0, arg1) } -// DeleteGroup mocks base method +// DeleteGroup mocks base method. func (m *MockIdentityClient) DeleteGroup(arg0 context.Context, arg1 identity.DeleteGroupArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteGroup", arg0, arg1) @@ -119,13 +119,13 @@ func (m *MockIdentityClient) DeleteGroup(arg0 context.Context, arg1 identity.Del return ret0 } -// DeleteGroup indicates an expected call of DeleteGroup +// DeleteGroup indicates an expected call of DeleteGroup. func (mr *MockIdentityClientMockRecorder) DeleteGroup(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteGroup", reflect.TypeOf((*MockIdentityClient)(nil).DeleteGroup), arg0, arg1) } -// DeleteScope mocks base method +// DeleteScope mocks base method. func (m *MockIdentityClient) DeleteScope(arg0 context.Context, arg1 identity.DeleteScopeArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteScope", arg0, arg1) @@ -133,13 +133,28 @@ func (m *MockIdentityClient) DeleteScope(arg0 context.Context, arg1 identity.Del return ret0 } -// DeleteScope indicates an expected call of DeleteScope +// DeleteScope indicates an expected call of DeleteScope. func (mr *MockIdentityClientMockRecorder) DeleteScope(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteScope", reflect.TypeOf((*MockIdentityClient)(nil).DeleteScope), arg0, arg1) } -// GetDescriptorById mocks base method +// ForceRemoveMember mocks base method. +func (m *MockIdentityClient) ForceRemoveMember(arg0 context.Context, arg1 identity.ForceRemoveMemberArgs) (*bool, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ForceRemoveMember", arg0, arg1) + ret0, _ := ret[0].(*bool) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ForceRemoveMember indicates an expected call of ForceRemoveMember. +func (mr *MockIdentityClientMockRecorder) ForceRemoveMember(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ForceRemoveMember", reflect.TypeOf((*MockIdentityClient)(nil).ForceRemoveMember), arg0, arg1) +} + +// GetDescriptorById mocks base method. func (m *MockIdentityClient) GetDescriptorById(arg0 context.Context, arg1 identity.GetDescriptorByIdArgs) (*string, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetDescriptorById", arg0, arg1) @@ -148,13 +163,13 @@ func (m *MockIdentityClient) GetDescriptorById(arg0 context.Context, arg1 identi return ret0, ret1 } -// GetDescriptorById indicates an expected call of GetDescriptorById +// GetDescriptorById indicates an expected call of GetDescriptorById. func (mr *MockIdentityClientMockRecorder) GetDescriptorById(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDescriptorById", reflect.TypeOf((*MockIdentityClient)(nil).GetDescriptorById), arg0, arg1) } -// GetIdentityChanges mocks base method +// GetIdentityChanges mocks base method. func (m *MockIdentityClient) GetIdentityChanges(arg0 context.Context, arg1 identity.GetIdentityChangesArgs) (*identity.ChangedIdentities, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetIdentityChanges", arg0, arg1) @@ -163,13 +178,13 @@ func (m *MockIdentityClient) GetIdentityChanges(arg0 context.Context, arg1 ident return ret0, ret1 } -// GetIdentityChanges indicates an expected call of GetIdentityChanges +// GetIdentityChanges indicates an expected call of GetIdentityChanges. func (mr *MockIdentityClientMockRecorder) GetIdentityChanges(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetIdentityChanges", reflect.TypeOf((*MockIdentityClient)(nil).GetIdentityChanges), arg0, arg1) } -// GetIdentitySnapshot mocks base method +// GetIdentitySnapshot mocks base method. func (m *MockIdentityClient) GetIdentitySnapshot(arg0 context.Context, arg1 identity.GetIdentitySnapshotArgs) (*identity.IdentitySnapshot, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetIdentitySnapshot", arg0, arg1) @@ -178,13 +193,13 @@ func (m *MockIdentityClient) GetIdentitySnapshot(arg0 context.Context, arg1 iden return ret0, ret1 } -// GetIdentitySnapshot indicates an expected call of GetIdentitySnapshot +// GetIdentitySnapshot indicates an expected call of GetIdentitySnapshot. func (mr *MockIdentityClientMockRecorder) GetIdentitySnapshot(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetIdentitySnapshot", reflect.TypeOf((*MockIdentityClient)(nil).GetIdentitySnapshot), arg0, arg1) } -// GetMaxSequenceId mocks base method +// GetMaxSequenceId mocks base method. func (m *MockIdentityClient) GetMaxSequenceId(arg0 context.Context, arg1 identity.GetMaxSequenceIdArgs) (*uint64, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetMaxSequenceId", arg0, arg1) @@ -193,13 +208,13 @@ func (m *MockIdentityClient) GetMaxSequenceId(arg0 context.Context, arg1 identit return ret0, ret1 } -// GetMaxSequenceId indicates an expected call of GetMaxSequenceId +// GetMaxSequenceId indicates an expected call of GetMaxSequenceId. func (mr *MockIdentityClientMockRecorder) GetMaxSequenceId(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMaxSequenceId", reflect.TypeOf((*MockIdentityClient)(nil).GetMaxSequenceId), arg0, arg1) } -// GetScopeById mocks base method +// GetScopeById mocks base method. func (m *MockIdentityClient) GetScopeById(arg0 context.Context, arg1 identity.GetScopeByIdArgs) (*identity.IdentityScope, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetScopeById", arg0, arg1) @@ -208,13 +223,13 @@ func (m *MockIdentityClient) GetScopeById(arg0 context.Context, arg1 identity.Ge return ret0, ret1 } -// GetScopeById indicates an expected call of GetScopeById +// GetScopeById indicates an expected call of GetScopeById. func (mr *MockIdentityClientMockRecorder) GetScopeById(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetScopeById", reflect.TypeOf((*MockIdentityClient)(nil).GetScopeById), arg0, arg1) } -// GetScopeByName mocks base method +// GetScopeByName mocks base method. func (m *MockIdentityClient) GetScopeByName(arg0 context.Context, arg1 identity.GetScopeByNameArgs) (*identity.IdentityScope, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetScopeByName", arg0, arg1) @@ -223,13 +238,13 @@ func (m *MockIdentityClient) GetScopeByName(arg0 context.Context, arg1 identity. return ret0, ret1 } -// GetScopeByName indicates an expected call of GetScopeByName +// GetScopeByName indicates an expected call of GetScopeByName. func (mr *MockIdentityClientMockRecorder) GetScopeByName(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetScopeByName", reflect.TypeOf((*MockIdentityClient)(nil).GetScopeByName), arg0, arg1) } -// GetSelf mocks base method +// GetSelf mocks base method. func (m *MockIdentityClient) GetSelf(arg0 context.Context, arg1 identity.GetSelfArgs) (*identity.IdentitySelf, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetSelf", arg0, arg1) @@ -238,13 +253,13 @@ func (m *MockIdentityClient) GetSelf(arg0 context.Context, arg1 identity.GetSelf return ret0, ret1 } -// GetSelf indicates an expected call of GetSelf +// GetSelf indicates an expected call of GetSelf. func (mr *MockIdentityClientMockRecorder) GetSelf(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSelf", reflect.TypeOf((*MockIdentityClient)(nil).GetSelf), arg0, arg1) } -// GetSignedInToken mocks base method +// GetSignedInToken mocks base method. func (m *MockIdentityClient) GetSignedInToken(arg0 context.Context, arg1 identity.GetSignedInTokenArgs) (*delegatedauthorization.AccessTokenResult, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetSignedInToken", arg0, arg1) @@ -253,13 +268,13 @@ func (m *MockIdentityClient) GetSignedInToken(arg0 context.Context, arg1 identit return ret0, ret1 } -// GetSignedInToken indicates an expected call of GetSignedInToken +// GetSignedInToken indicates an expected call of GetSignedInToken. func (mr *MockIdentityClientMockRecorder) GetSignedInToken(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSignedInToken", reflect.TypeOf((*MockIdentityClient)(nil).GetSignedInToken), arg0, arg1) } -// GetSignoutToken mocks base method +// GetSignoutToken mocks base method. func (m *MockIdentityClient) GetSignoutToken(arg0 context.Context, arg1 identity.GetSignoutTokenArgs) (*delegatedauthorization.AccessTokenResult, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetSignoutToken", arg0, arg1) @@ -268,13 +283,13 @@ func (m *MockIdentityClient) GetSignoutToken(arg0 context.Context, arg1 identity return ret0, ret1 } -// GetSignoutToken indicates an expected call of GetSignoutToken +// GetSignoutToken indicates an expected call of GetSignoutToken. func (mr *MockIdentityClientMockRecorder) GetSignoutToken(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSignoutToken", reflect.TypeOf((*MockIdentityClient)(nil).GetSignoutToken), arg0, arg1) } -// GetTenant mocks base method +// GetTenant mocks base method. func (m *MockIdentityClient) GetTenant(arg0 context.Context, arg1 identity.GetTenantArgs) (*identity.TenantInfo, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetTenant", arg0, arg1) @@ -283,13 +298,13 @@ func (m *MockIdentityClient) GetTenant(arg0 context.Context, arg1 identity.GetTe return ret0, ret1 } -// GetTenant indicates an expected call of GetTenant +// GetTenant indicates an expected call of GetTenant. func (mr *MockIdentityClientMockRecorder) GetTenant(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTenant", reflect.TypeOf((*MockIdentityClient)(nil).GetTenant), arg0, arg1) } -// GetUserIdentityIdsByDomainId mocks base method +// GetUserIdentityIdsByDomainId mocks base method. func (m *MockIdentityClient) GetUserIdentityIdsByDomainId(arg0 context.Context, arg1 identity.GetUserIdentityIdsByDomainIdArgs) (*[]uuid.UUID, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetUserIdentityIdsByDomainId", arg0, arg1) @@ -298,13 +313,13 @@ func (m *MockIdentityClient) GetUserIdentityIdsByDomainId(arg0 context.Context, return ret0, ret1 } -// GetUserIdentityIdsByDomainId indicates an expected call of GetUserIdentityIdsByDomainId +// GetUserIdentityIdsByDomainId indicates an expected call of GetUserIdentityIdsByDomainId. func (mr *MockIdentityClientMockRecorder) GetUserIdentityIdsByDomainId(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserIdentityIdsByDomainId", reflect.TypeOf((*MockIdentityClient)(nil).GetUserIdentityIdsByDomainId), arg0, arg1) } -// ListGroups mocks base method +// ListGroups mocks base method. func (m *MockIdentityClient) ListGroups(arg0 context.Context, arg1 identity.ListGroupsArgs) (*[]identity.Identity, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ListGroups", arg0, arg1) @@ -313,13 +328,13 @@ func (m *MockIdentityClient) ListGroups(arg0 context.Context, arg1 identity.List return ret0, ret1 } -// ListGroups indicates an expected call of ListGroups +// ListGroups indicates an expected call of ListGroups. func (mr *MockIdentityClientMockRecorder) ListGroups(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGroups", reflect.TypeOf((*MockIdentityClient)(nil).ListGroups), arg0, arg1) } -// ReadIdentities mocks base method +// ReadIdentities mocks base method. func (m *MockIdentityClient) ReadIdentities(arg0 context.Context, arg1 identity.ReadIdentitiesArgs) (*[]identity.Identity, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ReadIdentities", arg0, arg1) @@ -328,13 +343,13 @@ func (m *MockIdentityClient) ReadIdentities(arg0 context.Context, arg1 identity. return ret0, ret1 } -// ReadIdentities indicates an expected call of ReadIdentities +// ReadIdentities indicates an expected call of ReadIdentities. func (mr *MockIdentityClientMockRecorder) ReadIdentities(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadIdentities", reflect.TypeOf((*MockIdentityClient)(nil).ReadIdentities), arg0, arg1) } -// ReadIdentitiesByScope mocks base method +// ReadIdentitiesByScope mocks base method. func (m *MockIdentityClient) ReadIdentitiesByScope(arg0 context.Context, arg1 identity.ReadIdentitiesByScopeArgs) (*[]identity.Identity, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ReadIdentitiesByScope", arg0, arg1) @@ -343,13 +358,13 @@ func (m *MockIdentityClient) ReadIdentitiesByScope(arg0 context.Context, arg1 id return ret0, ret1 } -// ReadIdentitiesByScope indicates an expected call of ReadIdentitiesByScope +// ReadIdentitiesByScope indicates an expected call of ReadIdentitiesByScope. func (mr *MockIdentityClientMockRecorder) ReadIdentitiesByScope(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadIdentitiesByScope", reflect.TypeOf((*MockIdentityClient)(nil).ReadIdentitiesByScope), arg0, arg1) } -// ReadIdentity mocks base method +// ReadIdentity mocks base method. func (m *MockIdentityClient) ReadIdentity(arg0 context.Context, arg1 identity.ReadIdentityArgs) (*identity.Identity, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ReadIdentity", arg0, arg1) @@ -358,13 +373,13 @@ func (m *MockIdentityClient) ReadIdentity(arg0 context.Context, arg1 identity.Re return ret0, ret1 } -// ReadIdentity indicates an expected call of ReadIdentity +// ReadIdentity indicates an expected call of ReadIdentity. func (mr *MockIdentityClientMockRecorder) ReadIdentity(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadIdentity", reflect.TypeOf((*MockIdentityClient)(nil).ReadIdentity), arg0, arg1) } -// ReadIdentityBatch mocks base method +// ReadIdentityBatch mocks base method. func (m *MockIdentityClient) ReadIdentityBatch(arg0 context.Context, arg1 identity.ReadIdentityBatchArgs) (*[]identity.Identity, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ReadIdentityBatch", arg0, arg1) @@ -373,13 +388,13 @@ func (m *MockIdentityClient) ReadIdentityBatch(arg0 context.Context, arg1 identi return ret0, ret1 } -// ReadIdentityBatch indicates an expected call of ReadIdentityBatch +// ReadIdentityBatch indicates an expected call of ReadIdentityBatch. func (mr *MockIdentityClientMockRecorder) ReadIdentityBatch(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadIdentityBatch", reflect.TypeOf((*MockIdentityClient)(nil).ReadIdentityBatch), arg0, arg1) } -// ReadMember mocks base method +// ReadMember mocks base method. func (m *MockIdentityClient) ReadMember(arg0 context.Context, arg1 identity.ReadMemberArgs) (*string, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ReadMember", arg0, arg1) @@ -388,13 +403,13 @@ func (m *MockIdentityClient) ReadMember(arg0 context.Context, arg1 identity.Read return ret0, ret1 } -// ReadMember indicates an expected call of ReadMember +// ReadMember indicates an expected call of ReadMember. func (mr *MockIdentityClientMockRecorder) ReadMember(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadMember", reflect.TypeOf((*MockIdentityClient)(nil).ReadMember), arg0, arg1) } -// ReadMemberOf mocks base method +// ReadMemberOf mocks base method. func (m *MockIdentityClient) ReadMemberOf(arg0 context.Context, arg1 identity.ReadMemberOfArgs) (*string, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ReadMemberOf", arg0, arg1) @@ -403,13 +418,13 @@ func (m *MockIdentityClient) ReadMemberOf(arg0 context.Context, arg1 identity.Re return ret0, ret1 } -// ReadMemberOf indicates an expected call of ReadMemberOf +// ReadMemberOf indicates an expected call of ReadMemberOf. func (mr *MockIdentityClientMockRecorder) ReadMemberOf(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadMemberOf", reflect.TypeOf((*MockIdentityClient)(nil).ReadMemberOf), arg0, arg1) } -// ReadMembers mocks base method +// ReadMembers mocks base method. func (m *MockIdentityClient) ReadMembers(arg0 context.Context, arg1 identity.ReadMembersArgs) (*[]string, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ReadMembers", arg0, arg1) @@ -418,13 +433,13 @@ func (m *MockIdentityClient) ReadMembers(arg0 context.Context, arg1 identity.Rea return ret0, ret1 } -// ReadMembers indicates an expected call of ReadMembers +// ReadMembers indicates an expected call of ReadMembers. func (mr *MockIdentityClientMockRecorder) ReadMembers(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadMembers", reflect.TypeOf((*MockIdentityClient)(nil).ReadMembers), arg0, arg1) } -// ReadMembersOf mocks base method +// ReadMembersOf mocks base method. func (m *MockIdentityClient) ReadMembersOf(arg0 context.Context, arg1 identity.ReadMembersOfArgs) (*[]string, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ReadMembersOf", arg0, arg1) @@ -433,13 +448,13 @@ func (m *MockIdentityClient) ReadMembersOf(arg0 context.Context, arg1 identity.R return ret0, ret1 } -// ReadMembersOf indicates an expected call of ReadMembersOf +// ReadMembersOf indicates an expected call of ReadMembersOf. func (mr *MockIdentityClientMockRecorder) ReadMembersOf(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadMembersOf", reflect.TypeOf((*MockIdentityClient)(nil).ReadMembersOf), arg0, arg1) } -// RemoveMember mocks base method +// RemoveMember mocks base method. func (m *MockIdentityClient) RemoveMember(arg0 context.Context, arg1 identity.RemoveMemberArgs) (*bool, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "RemoveMember", arg0, arg1) @@ -448,13 +463,13 @@ func (m *MockIdentityClient) RemoveMember(arg0 context.Context, arg1 identity.Re return ret0, ret1 } -// RemoveMember indicates an expected call of RemoveMember +// RemoveMember indicates an expected call of RemoveMember. func (mr *MockIdentityClientMockRecorder) RemoveMember(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveMember", reflect.TypeOf((*MockIdentityClient)(nil).RemoveMember), arg0, arg1) } -// UpdateIdentities mocks base method +// UpdateIdentities mocks base method. func (m *MockIdentityClient) UpdateIdentities(arg0 context.Context, arg1 identity.UpdateIdentitiesArgs) (*[]identity.IdentityUpdateData, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateIdentities", arg0, arg1) @@ -463,13 +478,13 @@ func (m *MockIdentityClient) UpdateIdentities(arg0 context.Context, arg1 identit return ret0, ret1 } -// UpdateIdentities indicates an expected call of UpdateIdentities +// UpdateIdentities indicates an expected call of UpdateIdentities. func (mr *MockIdentityClientMockRecorder) UpdateIdentities(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateIdentities", reflect.TypeOf((*MockIdentityClient)(nil).UpdateIdentities), arg0, arg1) } -// UpdateIdentity mocks base method +// UpdateIdentity mocks base method. func (m *MockIdentityClient) UpdateIdentity(arg0 context.Context, arg1 identity.UpdateIdentityArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateIdentity", arg0, arg1) @@ -477,13 +492,13 @@ func (m *MockIdentityClient) UpdateIdentity(arg0 context.Context, arg1 identity. return ret0 } -// UpdateIdentity indicates an expected call of UpdateIdentity +// UpdateIdentity indicates an expected call of UpdateIdentity. func (mr *MockIdentityClientMockRecorder) UpdateIdentity(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateIdentity", reflect.TypeOf((*MockIdentityClient)(nil).UpdateIdentity), arg0, arg1) } -// UpdateScope mocks base method +// UpdateScope mocks base method. func (m *MockIdentityClient) UpdateScope(arg0 context.Context, arg1 identity.UpdateScopeArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateScope", arg0, arg1) @@ -491,7 +506,7 @@ func (m *MockIdentityClient) UpdateScope(arg0 context.Context, arg1 identity.Upd return ret0 } -// UpdateScope indicates an expected call of UpdateScope +// UpdateScope indicates an expected call of UpdateScope. func (mr *MockIdentityClientMockRecorder) UpdateScope(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateScope", reflect.TypeOf((*MockIdentityClient)(nil).UpdateScope), arg0, arg1) diff --git a/azdosdkmocks/memberentitlementmanagement_sdk_mock.go b/azdosdkmocks/memberentitlementmanagement_sdk_mock.go index 06845c176..9d4dbd698 100644 --- a/azdosdkmocks/memberentitlementmanagement_sdk_mock.go +++ b/azdosdkmocks/memberentitlementmanagement_sdk_mock.go @@ -43,13 +43,13 @@ func (m *MockMemberentitlementmanagementClient) AddGroupEntitlement(arg0 context return ret0, ret1 } -// AddGroupEntitlement indicates an expected call of AddGroupEntitlement +// AddGroupEntitlement indicates an expected call of AddGroupEntitlement. func (mr *MockMemberentitlementmanagementClientMockRecorder) AddGroupEntitlement(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddGroupEntitlement", reflect.TypeOf((*MockMemberentitlementmanagementClient)(nil).AddGroupEntitlement), arg0, arg1) } -// AddMemberToGroup mocks base method +// AddMemberToGroup mocks base method. func (m *MockMemberentitlementmanagementClient) AddMemberToGroup(arg0 context.Context, arg1 memberentitlementmanagement.AddMemberToGroupArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddMemberToGroup", arg0, arg1) @@ -57,13 +57,13 @@ func (m *MockMemberentitlementmanagementClient) AddMemberToGroup(arg0 context.Co return ret0 } -// AddMemberToGroup indicates an expected call of AddMemberToGroup +// AddMemberToGroup indicates an expected call of AddMemberToGroup. func (mr *MockMemberentitlementmanagementClientMockRecorder) AddMemberToGroup(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddMemberToGroup", reflect.TypeOf((*MockMemberentitlementmanagementClient)(nil).AddMemberToGroup), arg0, arg1) } -// AddUserEntitlement mocks base method +// AddUserEntitlement mocks base method. func (m *MockMemberentitlementmanagementClient) AddUserEntitlement(arg0 context.Context, arg1 memberentitlementmanagement.AddUserEntitlementArgs) (*memberentitlementmanagement.UserEntitlementsPostResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddUserEntitlement", arg0, arg1) @@ -72,13 +72,13 @@ func (m *MockMemberentitlementmanagementClient) AddUserEntitlement(arg0 context. return ret0, ret1 } -// AddUserEntitlement indicates an expected call of AddUserEntitlement +// AddUserEntitlement indicates an expected call of AddUserEntitlement. func (mr *MockMemberentitlementmanagementClientMockRecorder) AddUserEntitlement(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddUserEntitlement", reflect.TypeOf((*MockMemberentitlementmanagementClient)(nil).AddUserEntitlement), arg0, arg1) } -// DeleteGroupEntitlement mocks base method +// DeleteGroupEntitlement mocks base method. func (m *MockMemberentitlementmanagementClient) DeleteGroupEntitlement(arg0 context.Context, arg1 memberentitlementmanagement.DeleteGroupEntitlementArgs) (*memberentitlementmanagement.GroupEntitlementOperationReference, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteGroupEntitlement", arg0, arg1) @@ -87,13 +87,13 @@ func (m *MockMemberentitlementmanagementClient) DeleteGroupEntitlement(arg0 cont return ret0, ret1 } -// DeleteGroupEntitlement indicates an expected call of DeleteGroupEntitlement +// DeleteGroupEntitlement indicates an expected call of DeleteGroupEntitlement. func (mr *MockMemberentitlementmanagementClientMockRecorder) DeleteGroupEntitlement(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteGroupEntitlement", reflect.TypeOf((*MockMemberentitlementmanagementClient)(nil).DeleteGroupEntitlement), arg0, arg1) } -// DeleteUserEntitlement mocks base method +// DeleteUserEntitlement mocks base method. func (m *MockMemberentitlementmanagementClient) DeleteUserEntitlement(arg0 context.Context, arg1 memberentitlementmanagement.DeleteUserEntitlementArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteUserEntitlement", arg0, arg1) @@ -101,13 +101,13 @@ func (m *MockMemberentitlementmanagementClient) DeleteUserEntitlement(arg0 conte return ret0 } -// DeleteUserEntitlement indicates an expected call of DeleteUserEntitlement +// DeleteUserEntitlement indicates an expected call of DeleteUserEntitlement. func (mr *MockMemberentitlementmanagementClientMockRecorder) DeleteUserEntitlement(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUserEntitlement", reflect.TypeOf((*MockMemberentitlementmanagementClient)(nil).DeleteUserEntitlement), arg0, arg1) } -// GetGroupEntitlement mocks base method +// GetGroupEntitlement mocks base method. func (m *MockMemberentitlementmanagementClient) GetGroupEntitlement(arg0 context.Context, arg1 memberentitlementmanagement.GetGroupEntitlementArgs) (*memberentitlementmanagement.GroupEntitlement, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetGroupEntitlement", arg0, arg1) @@ -116,13 +116,13 @@ func (m *MockMemberentitlementmanagementClient) GetGroupEntitlement(arg0 context return ret0, ret1 } -// GetGroupEntitlement indicates an expected call of GetGroupEntitlement +// GetGroupEntitlement indicates an expected call of GetGroupEntitlement. func (mr *MockMemberentitlementmanagementClientMockRecorder) GetGroupEntitlement(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGroupEntitlement", reflect.TypeOf((*MockMemberentitlementmanagementClient)(nil).GetGroupEntitlement), arg0, arg1) } -// GetGroupEntitlements mocks base method +// GetGroupEntitlements mocks base method. func (m *MockMemberentitlementmanagementClient) GetGroupEntitlements(arg0 context.Context, arg1 memberentitlementmanagement.GetGroupEntitlementsArgs) (*[]memberentitlementmanagement.GroupEntitlement, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetGroupEntitlements", arg0, arg1) @@ -131,13 +131,13 @@ func (m *MockMemberentitlementmanagementClient) GetGroupEntitlements(arg0 contex return ret0, ret1 } -// GetGroupEntitlements indicates an expected call of GetGroupEntitlements +// GetGroupEntitlements indicates an expected call of GetGroupEntitlements. func (mr *MockMemberentitlementmanagementClientMockRecorder) GetGroupEntitlements(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGroupEntitlements", reflect.TypeOf((*MockMemberentitlementmanagementClient)(nil).GetGroupEntitlements), arg0, arg1) } -// GetGroupMembers mocks base method +// GetGroupMembers mocks base method. func (m *MockMemberentitlementmanagementClient) GetGroupMembers(arg0 context.Context, arg1 memberentitlementmanagement.GetGroupMembersArgs) (*memberentitlementmanagement.PagedGraphMemberList, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetGroupMembers", arg0, arg1) @@ -146,13 +146,13 @@ func (m *MockMemberentitlementmanagementClient) GetGroupMembers(arg0 context.Con return ret0, ret1 } -// GetGroupMembers indicates an expected call of GetGroupMembers +// GetGroupMembers indicates an expected call of GetGroupMembers. func (mr *MockMemberentitlementmanagementClientMockRecorder) GetGroupMembers(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGroupMembers", reflect.TypeOf((*MockMemberentitlementmanagementClient)(nil).GetGroupMembers), arg0, arg1) } -// GetUserEntitlement mocks base method +// GetUserEntitlement mocks base method. func (m *MockMemberentitlementmanagementClient) GetUserEntitlement(arg0 context.Context, arg1 memberentitlementmanagement.GetUserEntitlementArgs) (*memberentitlementmanagement.UserEntitlement, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetUserEntitlement", arg0, arg1) @@ -191,13 +191,13 @@ func (m *MockMemberentitlementmanagementClient) GetUsersSummary(arg0 context.Con return ret0, ret1 } -// GetUsersSummary indicates an expected call of GetUsersSummary +// GetUsersSummary indicates an expected call of GetUsersSummary. func (mr *MockMemberentitlementmanagementClientMockRecorder) GetUsersSummary(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUsersSummary", reflect.TypeOf((*MockMemberentitlementmanagementClient)(nil).GetUsersSummary), arg0, arg1) } -// RemoveMemberFromGroup mocks base method +// RemoveMemberFromGroup mocks base method. func (m *MockMemberentitlementmanagementClient) RemoveMemberFromGroup(arg0 context.Context, arg1 memberentitlementmanagement.RemoveMemberFromGroupArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "RemoveMemberFromGroup", arg0, arg1) @@ -205,13 +205,28 @@ func (m *MockMemberentitlementmanagementClient) RemoveMemberFromGroup(arg0 conte return ret0 } -// RemoveMemberFromGroup indicates an expected call of RemoveMemberFromGroup +// RemoveMemberFromGroup indicates an expected call of RemoveMemberFromGroup. func (mr *MockMemberentitlementmanagementClientMockRecorder) RemoveMemberFromGroup(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveMemberFromGroup", reflect.TypeOf((*MockMemberentitlementmanagementClient)(nil).RemoveMemberFromGroup), arg0, arg1) } -// UpdateGroupEntitlement mocks base method +// SearchUserEntitlements mocks base method. +func (m *MockMemberentitlementmanagementClient) SearchUserEntitlements(arg0 context.Context, arg1 memberentitlementmanagement.SearchUserEntitlementsArgs) (*memberentitlementmanagement.PagedGraphMemberList, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SearchUserEntitlements", arg0, arg1) + ret0, _ := ret[0].(*memberentitlementmanagement.PagedGraphMemberList) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SearchUserEntitlements indicates an expected call of SearchUserEntitlements. +func (mr *MockMemberentitlementmanagementClientMockRecorder) SearchUserEntitlements(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchUserEntitlements", reflect.TypeOf((*MockMemberentitlementmanagementClient)(nil).SearchUserEntitlements), arg0, arg1) +} + +// UpdateGroupEntitlement mocks base method. func (m *MockMemberentitlementmanagementClient) UpdateGroupEntitlement(arg0 context.Context, arg1 memberentitlementmanagement.UpdateGroupEntitlementArgs) (*memberentitlementmanagement.GroupEntitlementOperationReference, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateGroupEntitlement", arg0, arg1) @@ -220,13 +235,13 @@ func (m *MockMemberentitlementmanagementClient) UpdateGroupEntitlement(arg0 cont return ret0, ret1 } -// UpdateGroupEntitlement indicates an expected call of UpdateGroupEntitlement +// UpdateGroupEntitlement indicates an expected call of UpdateGroupEntitlement. func (mr *MockMemberentitlementmanagementClientMockRecorder) UpdateGroupEntitlement(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateGroupEntitlement", reflect.TypeOf((*MockMemberentitlementmanagementClient)(nil).UpdateGroupEntitlement), arg0, arg1) } -// UpdateUserEntitlement mocks base method +// UpdateUserEntitlement mocks base method. func (m *MockMemberentitlementmanagementClient) UpdateUserEntitlement(arg0 context.Context, arg1 memberentitlementmanagement.UpdateUserEntitlementArgs) (*memberentitlementmanagement.UserEntitlementsPatchResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateUserEntitlement", arg0, arg1) @@ -235,13 +250,13 @@ func (m *MockMemberentitlementmanagementClient) UpdateUserEntitlement(arg0 conte return ret0, ret1 } -// UpdateUserEntitlement indicates an expected call of UpdateUserEntitlement +// UpdateUserEntitlement indicates an expected call of UpdateUserEntitlement. func (mr *MockMemberentitlementmanagementClientMockRecorder) UpdateUserEntitlement(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUserEntitlement", reflect.TypeOf((*MockMemberentitlementmanagementClient)(nil).UpdateUserEntitlement), arg0, arg1) } -// UpdateUserEntitlements mocks base method +// UpdateUserEntitlements mocks base method. func (m *MockMemberentitlementmanagementClient) UpdateUserEntitlements(arg0 context.Context, arg1 memberentitlementmanagement.UpdateUserEntitlementsArgs) (*memberentitlementmanagement.UserEntitlementOperationReference, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateUserEntitlements", arg0, arg1) @@ -250,7 +265,7 @@ func (m *MockMemberentitlementmanagementClient) UpdateUserEntitlements(arg0 cont return ret0, ret1 } -// UpdateUserEntitlements indicates an expected call of UpdateUserEntitlements +// UpdateUserEntitlements indicates an expected call of UpdateUserEntitlements. func (mr *MockMemberentitlementmanagementClientMockRecorder) UpdateUserEntitlements(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUserEntitlements", reflect.TypeOf((*MockMemberentitlementmanagementClient)(nil).UpdateUserEntitlements), arg0, arg1) diff --git a/azdosdkmocks/operations_sdk_mock.go b/azdosdkmocks/operations_sdk_mock.go index fdfb9ef82..facdce8a5 100644 --- a/azdosdkmocks/operations_sdk_mock.go +++ b/azdosdkmocks/operations_sdk_mock.go @@ -43,7 +43,7 @@ func (m *MockOperationsClient) GetOperation(arg0 context.Context, arg1 operation return ret0, ret1 } -// GetOperation indicates an expected call of GetOperation +// GetOperation indicates an expected call of GetOperation. func (mr *MockOperationsClientMockRecorder) GetOperation(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOperation", reflect.TypeOf((*MockOperationsClient)(nil).GetOperation), arg0, arg1) diff --git a/azdosdkmocks/policy_sdk_mock.go b/azdosdkmocks/policy_sdk_mock.go index 4e1259d6e..6f09d3e8c 100644 --- a/azdosdkmocks/policy_sdk_mock.go +++ b/azdosdkmocks/policy_sdk_mock.go @@ -43,13 +43,13 @@ func (m *MockPolicyClient) CreatePolicyConfiguration(arg0 context.Context, arg1 return ret0, ret1 } -// CreatePolicyConfiguration indicates an expected call of CreatePolicyConfiguration +// CreatePolicyConfiguration indicates an expected call of CreatePolicyConfiguration. func (mr *MockPolicyClientMockRecorder) CreatePolicyConfiguration(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePolicyConfiguration", reflect.TypeOf((*MockPolicyClient)(nil).CreatePolicyConfiguration), arg0, arg1) } -// DeletePolicyConfiguration mocks base method +// DeletePolicyConfiguration mocks base method. func (m *MockPolicyClient) DeletePolicyConfiguration(arg0 context.Context, arg1 policy.DeletePolicyConfigurationArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeletePolicyConfiguration", arg0, arg1) @@ -57,13 +57,13 @@ func (m *MockPolicyClient) DeletePolicyConfiguration(arg0 context.Context, arg1 return ret0 } -// DeletePolicyConfiguration indicates an expected call of DeletePolicyConfiguration +// DeletePolicyConfiguration indicates an expected call of DeletePolicyConfiguration. func (mr *MockPolicyClientMockRecorder) DeletePolicyConfiguration(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeletePolicyConfiguration", reflect.TypeOf((*MockPolicyClient)(nil).DeletePolicyConfiguration), arg0, arg1) } -// GetPolicyConfiguration mocks base method +// GetPolicyConfiguration mocks base method. func (m *MockPolicyClient) GetPolicyConfiguration(arg0 context.Context, arg1 policy.GetPolicyConfigurationArgs) (*policy.PolicyConfiguration, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetPolicyConfiguration", arg0, arg1) @@ -72,13 +72,13 @@ func (m *MockPolicyClient) GetPolicyConfiguration(arg0 context.Context, arg1 pol return ret0, ret1 } -// GetPolicyConfiguration indicates an expected call of GetPolicyConfiguration +// GetPolicyConfiguration indicates an expected call of GetPolicyConfiguration. func (mr *MockPolicyClientMockRecorder) GetPolicyConfiguration(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPolicyConfiguration", reflect.TypeOf((*MockPolicyClient)(nil).GetPolicyConfiguration), arg0, arg1) } -// GetPolicyConfigurationRevision mocks base method +// GetPolicyConfigurationRevision mocks base method. func (m *MockPolicyClient) GetPolicyConfigurationRevision(arg0 context.Context, arg1 policy.GetPolicyConfigurationRevisionArgs) (*policy.PolicyConfiguration, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetPolicyConfigurationRevision", arg0, arg1) @@ -87,13 +87,13 @@ func (m *MockPolicyClient) GetPolicyConfigurationRevision(arg0 context.Context, return ret0, ret1 } -// GetPolicyConfigurationRevision indicates an expected call of GetPolicyConfigurationRevision +// GetPolicyConfigurationRevision indicates an expected call of GetPolicyConfigurationRevision. func (mr *MockPolicyClientMockRecorder) GetPolicyConfigurationRevision(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPolicyConfigurationRevision", reflect.TypeOf((*MockPolicyClient)(nil).GetPolicyConfigurationRevision), arg0, arg1) } -// GetPolicyConfigurationRevisions mocks base method +// GetPolicyConfigurationRevisions mocks base method. func (m *MockPolicyClient) GetPolicyConfigurationRevisions(arg0 context.Context, arg1 policy.GetPolicyConfigurationRevisionsArgs) (*[]policy.PolicyConfiguration, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetPolicyConfigurationRevisions", arg0, arg1) @@ -102,13 +102,13 @@ func (m *MockPolicyClient) GetPolicyConfigurationRevisions(arg0 context.Context, return ret0, ret1 } -// GetPolicyConfigurationRevisions indicates an expected call of GetPolicyConfigurationRevisions +// GetPolicyConfigurationRevisions indicates an expected call of GetPolicyConfigurationRevisions. func (mr *MockPolicyClientMockRecorder) GetPolicyConfigurationRevisions(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPolicyConfigurationRevisions", reflect.TypeOf((*MockPolicyClient)(nil).GetPolicyConfigurationRevisions), arg0, arg1) } -// GetPolicyConfigurations mocks base method +// GetPolicyConfigurations mocks base method. func (m *MockPolicyClient) GetPolicyConfigurations(arg0 context.Context, arg1 policy.GetPolicyConfigurationsArgs) (*policy.GetPolicyConfigurationsResponseValue, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetPolicyConfigurations", arg0, arg1) @@ -117,13 +117,13 @@ func (m *MockPolicyClient) GetPolicyConfigurations(arg0 context.Context, arg1 po return ret0, ret1 } -// GetPolicyConfigurations indicates an expected call of GetPolicyConfigurations +// GetPolicyConfigurations indicates an expected call of GetPolicyConfigurations. func (mr *MockPolicyClientMockRecorder) GetPolicyConfigurations(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPolicyConfigurations", reflect.TypeOf((*MockPolicyClient)(nil).GetPolicyConfigurations), arg0, arg1) } -// GetPolicyEvaluation mocks base method +// GetPolicyEvaluation mocks base method. func (m *MockPolicyClient) GetPolicyEvaluation(arg0 context.Context, arg1 policy.GetPolicyEvaluationArgs) (*policy.PolicyEvaluationRecord, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetPolicyEvaluation", arg0, arg1) @@ -132,13 +132,13 @@ func (m *MockPolicyClient) GetPolicyEvaluation(arg0 context.Context, arg1 policy return ret0, ret1 } -// GetPolicyEvaluation indicates an expected call of GetPolicyEvaluation +// GetPolicyEvaluation indicates an expected call of GetPolicyEvaluation. func (mr *MockPolicyClientMockRecorder) GetPolicyEvaluation(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPolicyEvaluation", reflect.TypeOf((*MockPolicyClient)(nil).GetPolicyEvaluation), arg0, arg1) } -// GetPolicyEvaluations mocks base method +// GetPolicyEvaluations mocks base method. func (m *MockPolicyClient) GetPolicyEvaluations(arg0 context.Context, arg1 policy.GetPolicyEvaluationsArgs) (*[]policy.PolicyEvaluationRecord, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetPolicyEvaluations", arg0, arg1) @@ -147,13 +147,13 @@ func (m *MockPolicyClient) GetPolicyEvaluations(arg0 context.Context, arg1 polic return ret0, ret1 } -// GetPolicyEvaluations indicates an expected call of GetPolicyEvaluations +// GetPolicyEvaluations indicates an expected call of GetPolicyEvaluations. func (mr *MockPolicyClientMockRecorder) GetPolicyEvaluations(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPolicyEvaluations", reflect.TypeOf((*MockPolicyClient)(nil).GetPolicyEvaluations), arg0, arg1) } -// GetPolicyType mocks base method +// GetPolicyType mocks base method. func (m *MockPolicyClient) GetPolicyType(arg0 context.Context, arg1 policy.GetPolicyTypeArgs) (*policy.PolicyType, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetPolicyType", arg0, arg1) @@ -162,13 +162,13 @@ func (m *MockPolicyClient) GetPolicyType(arg0 context.Context, arg1 policy.GetPo return ret0, ret1 } -// GetPolicyType indicates an expected call of GetPolicyType +// GetPolicyType indicates an expected call of GetPolicyType. func (mr *MockPolicyClientMockRecorder) GetPolicyType(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPolicyType", reflect.TypeOf((*MockPolicyClient)(nil).GetPolicyType), arg0, arg1) } -// GetPolicyTypes mocks base method +// GetPolicyTypes mocks base method. func (m *MockPolicyClient) GetPolicyTypes(arg0 context.Context, arg1 policy.GetPolicyTypesArgs) (*[]policy.PolicyType, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetPolicyTypes", arg0, arg1) @@ -177,13 +177,13 @@ func (m *MockPolicyClient) GetPolicyTypes(arg0 context.Context, arg1 policy.GetP return ret0, ret1 } -// GetPolicyTypes indicates an expected call of GetPolicyTypes +// GetPolicyTypes indicates an expected call of GetPolicyTypes. func (mr *MockPolicyClientMockRecorder) GetPolicyTypes(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPolicyTypes", reflect.TypeOf((*MockPolicyClient)(nil).GetPolicyTypes), arg0, arg1) } -// RequeuePolicyEvaluation mocks base method +// RequeuePolicyEvaluation mocks base method. func (m *MockPolicyClient) RequeuePolicyEvaluation(arg0 context.Context, arg1 policy.RequeuePolicyEvaluationArgs) (*policy.PolicyEvaluationRecord, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "RequeuePolicyEvaluation", arg0, arg1) @@ -192,13 +192,13 @@ func (m *MockPolicyClient) RequeuePolicyEvaluation(arg0 context.Context, arg1 po return ret0, ret1 } -// RequeuePolicyEvaluation indicates an expected call of RequeuePolicyEvaluation +// RequeuePolicyEvaluation indicates an expected call of RequeuePolicyEvaluation. func (mr *MockPolicyClientMockRecorder) RequeuePolicyEvaluation(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RequeuePolicyEvaluation", reflect.TypeOf((*MockPolicyClient)(nil).RequeuePolicyEvaluation), arg0, arg1) } -// UpdatePolicyConfiguration mocks base method +// UpdatePolicyConfiguration mocks base method. func (m *MockPolicyClient) UpdatePolicyConfiguration(arg0 context.Context, arg1 policy.UpdatePolicyConfigurationArgs) (*policy.PolicyConfiguration, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdatePolicyConfiguration", arg0, arg1) @@ -207,7 +207,7 @@ func (m *MockPolicyClient) UpdatePolicyConfiguration(arg0 context.Context, arg1 return ret0, ret1 } -// UpdatePolicyConfiguration indicates an expected call of UpdatePolicyConfiguration +// UpdatePolicyConfiguration indicates an expected call of UpdatePolicyConfiguration. func (mr *MockPolicyClientMockRecorder) UpdatePolicyConfiguration(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePolicyConfiguration", reflect.TypeOf((*MockPolicyClient)(nil).UpdatePolicyConfiguration), arg0, arg1) diff --git a/azdosdkmocks/profile_sdk_mock.go b/azdosdkmocks/profile_sdk_mock.go index c721372d5..6a6930168 100644 --- a/azdosdkmocks/profile_sdk_mock.go +++ b/azdosdkmocks/profile_sdk_mock.go @@ -43,7 +43,7 @@ func (m *MockProfileClient) GetProfile(arg0 context.Context, arg1 profile.GetPro return ret0, ret1 } -// GetProfile indicates an expected call of GetProfile +// GetProfile indicates an expected call of GetProfile. func (mr *MockProfileClientMockRecorder) GetProfile(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetProfile", reflect.TypeOf((*MockProfileClient)(nil).GetProfile), arg0, arg1) diff --git a/azdosdkmocks/release_sdk_mock.go b/azdosdkmocks/release_sdk_mock.go new file mode 100644 index 000000000..35d12e1a8 --- /dev/null +++ b/azdosdkmocks/release_sdk_mock.go @@ -0,0 +1,485 @@ +// Code generated by MockGen. DO NOT EDIT. +// Source: github.com/microsoft/azure-devops-go-api/azuredevops/v6/release (interfaces: Client) + +// Package azdosdkmocks is a generated GoMock package. +package azdosdkmocks + +import ( + context "context" + io "io" + reflect "reflect" + + gomock "github.com/golang/mock/gomock" + release "github.com/microsoft/azure-devops-go-api/azuredevops/v6/release" +) + +// MockReleaseClient is a mock of Client interface. +type MockReleaseClient struct { + ctrl *gomock.Controller + recorder *MockReleaseClientMockRecorder +} + +// MockReleaseClientMockRecorder is the mock recorder for MockReleaseClient. +type MockReleaseClientMockRecorder struct { + mock *MockReleaseClient +} + +// NewMockReleaseClient creates a new mock instance. +func NewMockReleaseClient(ctrl *gomock.Controller) *MockReleaseClient { + mock := &MockReleaseClient{ctrl: ctrl} + mock.recorder = &MockReleaseClientMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockReleaseClient) EXPECT() *MockReleaseClientMockRecorder { + return m.recorder +} + +// CreateFolder mocks base method. +func (m *MockReleaseClient) CreateFolder(arg0 context.Context, arg1 release.CreateFolderArgs) (*release.Folder, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateFolder", arg0, arg1) + ret0, _ := ret[0].(*release.Folder) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateFolder indicates an expected call of CreateFolder. +func (mr *MockReleaseClientMockRecorder) CreateFolder(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateFolder", reflect.TypeOf((*MockReleaseClient)(nil).CreateFolder), arg0, arg1) +} + +// CreateRelease mocks base method. +func (m *MockReleaseClient) CreateRelease(arg0 context.Context, arg1 release.CreateReleaseArgs) (*release.Release, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateRelease", arg0, arg1) + ret0, _ := ret[0].(*release.Release) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateRelease indicates an expected call of CreateRelease. +func (mr *MockReleaseClientMockRecorder) CreateRelease(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRelease", reflect.TypeOf((*MockReleaseClient)(nil).CreateRelease), arg0, arg1) +} + +// CreateReleaseDefinition mocks base method. +func (m *MockReleaseClient) CreateReleaseDefinition(arg0 context.Context, arg1 release.CreateReleaseDefinitionArgs) (*release.ReleaseDefinition, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateReleaseDefinition", arg0, arg1) + ret0, _ := ret[0].(*release.ReleaseDefinition) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateReleaseDefinition indicates an expected call of CreateReleaseDefinition. +func (mr *MockReleaseClientMockRecorder) CreateReleaseDefinition(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateReleaseDefinition", reflect.TypeOf((*MockReleaseClient)(nil).CreateReleaseDefinition), arg0, arg1) +} + +// DeleteFolder mocks base method. +func (m *MockReleaseClient) DeleteFolder(arg0 context.Context, arg1 release.DeleteFolderArgs) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteFolder", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DeleteFolder indicates an expected call of DeleteFolder. +func (mr *MockReleaseClientMockRecorder) DeleteFolder(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteFolder", reflect.TypeOf((*MockReleaseClient)(nil).DeleteFolder), arg0, arg1) +} + +// DeleteReleaseDefinition mocks base method. +func (m *MockReleaseClient) DeleteReleaseDefinition(arg0 context.Context, arg1 release.DeleteReleaseDefinitionArgs) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteReleaseDefinition", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DeleteReleaseDefinition indicates an expected call of DeleteReleaseDefinition. +func (mr *MockReleaseClientMockRecorder) DeleteReleaseDefinition(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteReleaseDefinition", reflect.TypeOf((*MockReleaseClient)(nil).DeleteReleaseDefinition), arg0, arg1) +} + +// GetApprovals mocks base method. +func (m *MockReleaseClient) GetApprovals(arg0 context.Context, arg1 release.GetApprovalsArgs) (*release.GetApprovalsResponseValue, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetApprovals", arg0, arg1) + ret0, _ := ret[0].(*release.GetApprovalsResponseValue) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetApprovals indicates an expected call of GetApprovals. +func (mr *MockReleaseClientMockRecorder) GetApprovals(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetApprovals", reflect.TypeOf((*MockReleaseClient)(nil).GetApprovals), arg0, arg1) +} + +// GetDefinitionRevision mocks base method. +func (m *MockReleaseClient) GetDefinitionRevision(arg0 context.Context, arg1 release.GetDefinitionRevisionArgs) (io.ReadCloser, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetDefinitionRevision", arg0, arg1) + ret0, _ := ret[0].(io.ReadCloser) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetDefinitionRevision indicates an expected call of GetDefinitionRevision. +func (mr *MockReleaseClientMockRecorder) GetDefinitionRevision(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDefinitionRevision", reflect.TypeOf((*MockReleaseClient)(nil).GetDefinitionRevision), arg0, arg1) +} + +// GetDeployments mocks base method. +func (m *MockReleaseClient) GetDeployments(arg0 context.Context, arg1 release.GetDeploymentsArgs) (*release.GetDeploymentsResponseValue, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetDeployments", arg0, arg1) + ret0, _ := ret[0].(*release.GetDeploymentsResponseValue) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetDeployments indicates an expected call of GetDeployments. +func (mr *MockReleaseClientMockRecorder) GetDeployments(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDeployments", reflect.TypeOf((*MockReleaseClient)(nil).GetDeployments), arg0, arg1) +} + +// GetFolders mocks base method. +func (m *MockReleaseClient) GetFolders(arg0 context.Context, arg1 release.GetFoldersArgs) (*[]release.Folder, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetFolders", arg0, arg1) + ret0, _ := ret[0].(*[]release.Folder) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetFolders indicates an expected call of GetFolders. +func (mr *MockReleaseClientMockRecorder) GetFolders(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFolders", reflect.TypeOf((*MockReleaseClient)(nil).GetFolders), arg0, arg1) +} + +// GetLogs mocks base method. +func (m *MockReleaseClient) GetLogs(arg0 context.Context, arg1 release.GetLogsArgs) (io.ReadCloser, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetLogs", arg0, arg1) + ret0, _ := ret[0].(io.ReadCloser) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetLogs indicates an expected call of GetLogs. +func (mr *MockReleaseClientMockRecorder) GetLogs(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLogs", reflect.TypeOf((*MockReleaseClient)(nil).GetLogs), arg0, arg1) +} + +// GetManualIntervention mocks base method. +func (m *MockReleaseClient) GetManualIntervention(arg0 context.Context, arg1 release.GetManualInterventionArgs) (*release.ManualIntervention, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetManualIntervention", arg0, arg1) + ret0, _ := ret[0].(*release.ManualIntervention) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetManualIntervention indicates an expected call of GetManualIntervention. +func (mr *MockReleaseClientMockRecorder) GetManualIntervention(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetManualIntervention", reflect.TypeOf((*MockReleaseClient)(nil).GetManualIntervention), arg0, arg1) +} + +// GetManualInterventions mocks base method. +func (m *MockReleaseClient) GetManualInterventions(arg0 context.Context, arg1 release.GetManualInterventionsArgs) (*[]release.ManualIntervention, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetManualInterventions", arg0, arg1) + ret0, _ := ret[0].(*[]release.ManualIntervention) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetManualInterventions indicates an expected call of GetManualInterventions. +func (mr *MockReleaseClientMockRecorder) GetManualInterventions(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetManualInterventions", reflect.TypeOf((*MockReleaseClient)(nil).GetManualInterventions), arg0, arg1) +} + +// GetRelease mocks base method. +func (m *MockReleaseClient) GetRelease(arg0 context.Context, arg1 release.GetReleaseArgs) (*release.Release, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetRelease", arg0, arg1) + ret0, _ := ret[0].(*release.Release) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetRelease indicates an expected call of GetRelease. +func (mr *MockReleaseClientMockRecorder) GetRelease(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRelease", reflect.TypeOf((*MockReleaseClient)(nil).GetRelease), arg0, arg1) +} + +// GetReleaseDefinition mocks base method. +func (m *MockReleaseClient) GetReleaseDefinition(arg0 context.Context, arg1 release.GetReleaseDefinitionArgs) (*release.ReleaseDefinition, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetReleaseDefinition", arg0, arg1) + ret0, _ := ret[0].(*release.ReleaseDefinition) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetReleaseDefinition indicates an expected call of GetReleaseDefinition. +func (mr *MockReleaseClientMockRecorder) GetReleaseDefinition(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetReleaseDefinition", reflect.TypeOf((*MockReleaseClient)(nil).GetReleaseDefinition), arg0, arg1) +} + +// GetReleaseDefinitionHistory mocks base method. +func (m *MockReleaseClient) GetReleaseDefinitionHistory(arg0 context.Context, arg1 release.GetReleaseDefinitionHistoryArgs) (*[]release.ReleaseDefinitionRevision, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetReleaseDefinitionHistory", arg0, arg1) + ret0, _ := ret[0].(*[]release.ReleaseDefinitionRevision) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetReleaseDefinitionHistory indicates an expected call of GetReleaseDefinitionHistory. +func (mr *MockReleaseClientMockRecorder) GetReleaseDefinitionHistory(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetReleaseDefinitionHistory", reflect.TypeOf((*MockReleaseClient)(nil).GetReleaseDefinitionHistory), arg0, arg1) +} + +// GetReleaseDefinitions mocks base method. +func (m *MockReleaseClient) GetReleaseDefinitions(arg0 context.Context, arg1 release.GetReleaseDefinitionsArgs) (*release.GetReleaseDefinitionsResponseValue, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetReleaseDefinitions", arg0, arg1) + ret0, _ := ret[0].(*release.GetReleaseDefinitionsResponseValue) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetReleaseDefinitions indicates an expected call of GetReleaseDefinitions. +func (mr *MockReleaseClientMockRecorder) GetReleaseDefinitions(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetReleaseDefinitions", reflect.TypeOf((*MockReleaseClient)(nil).GetReleaseDefinitions), arg0, arg1) +} + +// GetReleaseEnvironment mocks base method. +func (m *MockReleaseClient) GetReleaseEnvironment(arg0 context.Context, arg1 release.GetReleaseEnvironmentArgs) (*release.ReleaseEnvironment, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetReleaseEnvironment", arg0, arg1) + ret0, _ := ret[0].(*release.ReleaseEnvironment) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetReleaseEnvironment indicates an expected call of GetReleaseEnvironment. +func (mr *MockReleaseClientMockRecorder) GetReleaseEnvironment(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetReleaseEnvironment", reflect.TypeOf((*MockReleaseClient)(nil).GetReleaseEnvironment), arg0, arg1) +} + +// GetReleaseRevision mocks base method. +func (m *MockReleaseClient) GetReleaseRevision(arg0 context.Context, arg1 release.GetReleaseRevisionArgs) (io.ReadCloser, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetReleaseRevision", arg0, arg1) + ret0, _ := ret[0].(io.ReadCloser) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetReleaseRevision indicates an expected call of GetReleaseRevision. +func (mr *MockReleaseClientMockRecorder) GetReleaseRevision(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetReleaseRevision", reflect.TypeOf((*MockReleaseClient)(nil).GetReleaseRevision), arg0, arg1) +} + +// GetReleaseTaskAttachmentContent mocks base method. +func (m *MockReleaseClient) GetReleaseTaskAttachmentContent(arg0 context.Context, arg1 release.GetReleaseTaskAttachmentContentArgs) (io.ReadCloser, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetReleaseTaskAttachmentContent", arg0, arg1) + ret0, _ := ret[0].(io.ReadCloser) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetReleaseTaskAttachmentContent indicates an expected call of GetReleaseTaskAttachmentContent. +func (mr *MockReleaseClientMockRecorder) GetReleaseTaskAttachmentContent(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetReleaseTaskAttachmentContent", reflect.TypeOf((*MockReleaseClient)(nil).GetReleaseTaskAttachmentContent), arg0, arg1) +} + +// GetReleaseTaskAttachments mocks base method. +func (m *MockReleaseClient) GetReleaseTaskAttachments(arg0 context.Context, arg1 release.GetReleaseTaskAttachmentsArgs) (*[]release.ReleaseTaskAttachment, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetReleaseTaskAttachments", arg0, arg1) + ret0, _ := ret[0].(*[]release.ReleaseTaskAttachment) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetReleaseTaskAttachments indicates an expected call of GetReleaseTaskAttachments. +func (mr *MockReleaseClientMockRecorder) GetReleaseTaskAttachments(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetReleaseTaskAttachments", reflect.TypeOf((*MockReleaseClient)(nil).GetReleaseTaskAttachments), arg0, arg1) +} + +// GetReleases mocks base method. +func (m *MockReleaseClient) GetReleases(arg0 context.Context, arg1 release.GetReleasesArgs) (*release.GetReleasesResponseValue, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetReleases", arg0, arg1) + ret0, _ := ret[0].(*release.GetReleasesResponseValue) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetReleases indicates an expected call of GetReleases. +func (mr *MockReleaseClientMockRecorder) GetReleases(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetReleases", reflect.TypeOf((*MockReleaseClient)(nil).GetReleases), arg0, arg1) +} + +// GetTaskLog mocks base method. +func (m *MockReleaseClient) GetTaskLog(arg0 context.Context, arg1 release.GetTaskLogArgs) (io.ReadCloser, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetTaskLog", arg0, arg1) + ret0, _ := ret[0].(io.ReadCloser) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetTaskLog indicates an expected call of GetTaskLog. +func (mr *MockReleaseClientMockRecorder) GetTaskLog(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTaskLog", reflect.TypeOf((*MockReleaseClient)(nil).GetTaskLog), arg0, arg1) +} + +// UpdateFolder mocks base method. +func (m *MockReleaseClient) UpdateFolder(arg0 context.Context, arg1 release.UpdateFolderArgs) (*release.Folder, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateFolder", arg0, arg1) + ret0, _ := ret[0].(*release.Folder) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateFolder indicates an expected call of UpdateFolder. +func (mr *MockReleaseClientMockRecorder) UpdateFolder(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateFolder", reflect.TypeOf((*MockReleaseClient)(nil).UpdateFolder), arg0, arg1) +} + +// UpdateGates mocks base method. +func (m *MockReleaseClient) UpdateGates(arg0 context.Context, arg1 release.UpdateGatesArgs) (*release.ReleaseGates, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateGates", arg0, arg1) + ret0, _ := ret[0].(*release.ReleaseGates) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateGates indicates an expected call of UpdateGates. +func (mr *MockReleaseClientMockRecorder) UpdateGates(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateGates", reflect.TypeOf((*MockReleaseClient)(nil).UpdateGates), arg0, arg1) +} + +// UpdateManualIntervention mocks base method. +func (m *MockReleaseClient) UpdateManualIntervention(arg0 context.Context, arg1 release.UpdateManualInterventionArgs) (*release.ManualIntervention, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateManualIntervention", arg0, arg1) + ret0, _ := ret[0].(*release.ManualIntervention) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateManualIntervention indicates an expected call of UpdateManualIntervention. +func (mr *MockReleaseClientMockRecorder) UpdateManualIntervention(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateManualIntervention", reflect.TypeOf((*MockReleaseClient)(nil).UpdateManualIntervention), arg0, arg1) +} + +// UpdateRelease mocks base method. +func (m *MockReleaseClient) UpdateRelease(arg0 context.Context, arg1 release.UpdateReleaseArgs) (*release.Release, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateRelease", arg0, arg1) + ret0, _ := ret[0].(*release.Release) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateRelease indicates an expected call of UpdateRelease. +func (mr *MockReleaseClientMockRecorder) UpdateRelease(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRelease", reflect.TypeOf((*MockReleaseClient)(nil).UpdateRelease), arg0, arg1) +} + +// UpdateReleaseApproval mocks base method. +func (m *MockReleaseClient) UpdateReleaseApproval(arg0 context.Context, arg1 release.UpdateReleaseApprovalArgs) (*release.ReleaseApproval, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateReleaseApproval", arg0, arg1) + ret0, _ := ret[0].(*release.ReleaseApproval) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateReleaseApproval indicates an expected call of UpdateReleaseApproval. +func (mr *MockReleaseClientMockRecorder) UpdateReleaseApproval(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateReleaseApproval", reflect.TypeOf((*MockReleaseClient)(nil).UpdateReleaseApproval), arg0, arg1) +} + +// UpdateReleaseDefinition mocks base method. +func (m *MockReleaseClient) UpdateReleaseDefinition(arg0 context.Context, arg1 release.UpdateReleaseDefinitionArgs) (*release.ReleaseDefinition, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateReleaseDefinition", arg0, arg1) + ret0, _ := ret[0].(*release.ReleaseDefinition) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateReleaseDefinition indicates an expected call of UpdateReleaseDefinition. +func (mr *MockReleaseClientMockRecorder) UpdateReleaseDefinition(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateReleaseDefinition", reflect.TypeOf((*MockReleaseClient)(nil).UpdateReleaseDefinition), arg0, arg1) +} + +// UpdateReleaseEnvironment mocks base method. +func (m *MockReleaseClient) UpdateReleaseEnvironment(arg0 context.Context, arg1 release.UpdateReleaseEnvironmentArgs) (*release.ReleaseEnvironment, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateReleaseEnvironment", arg0, arg1) + ret0, _ := ret[0].(*release.ReleaseEnvironment) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateReleaseEnvironment indicates an expected call of UpdateReleaseEnvironment. +func (mr *MockReleaseClientMockRecorder) UpdateReleaseEnvironment(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateReleaseEnvironment", reflect.TypeOf((*MockReleaseClient)(nil).UpdateReleaseEnvironment), arg0, arg1) +} + +// UpdateReleaseResource mocks base method. +func (m *MockReleaseClient) UpdateReleaseResource(arg0 context.Context, arg1 release.UpdateReleaseResourceArgs) (*release.Release, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateReleaseResource", arg0, arg1) + ret0, _ := ret[0].(*release.Release) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateReleaseResource indicates an expected call of UpdateReleaseResource. +func (mr *MockReleaseClientMockRecorder) UpdateReleaseResource(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateReleaseResource", reflect.TypeOf((*MockReleaseClient)(nil).UpdateReleaseResource), arg0, arg1) +} diff --git a/azdosdkmocks/security_sdk_mock.go b/azdosdkmocks/security_sdk_mock.go index c6f7224b2..5e90dc0cf 100644 --- a/azdosdkmocks/security_sdk_mock.go +++ b/azdosdkmocks/security_sdk_mock.go @@ -43,13 +43,13 @@ func (m *MockSecurityClient) HasPermissions(arg0 context.Context, arg1 security. return ret0, ret1 } -// HasPermissions indicates an expected call of HasPermissions +// HasPermissions indicates an expected call of HasPermissions. func (mr *MockSecurityClientMockRecorder) HasPermissions(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HasPermissions", reflect.TypeOf((*MockSecurityClient)(nil).HasPermissions), arg0, arg1) } -// HasPermissionsBatch mocks base method +// HasPermissionsBatch mocks base method. func (m *MockSecurityClient) HasPermissionsBatch(arg0 context.Context, arg1 security.HasPermissionsBatchArgs) (*security.PermissionEvaluationBatch, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "HasPermissionsBatch", arg0, arg1) @@ -58,13 +58,13 @@ func (m *MockSecurityClient) HasPermissionsBatch(arg0 context.Context, arg1 secu return ret0, ret1 } -// HasPermissionsBatch indicates an expected call of HasPermissionsBatch +// HasPermissionsBatch indicates an expected call of HasPermissionsBatch. func (mr *MockSecurityClientMockRecorder) HasPermissionsBatch(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HasPermissionsBatch", reflect.TypeOf((*MockSecurityClient)(nil).HasPermissionsBatch), arg0, arg1) } -// QueryAccessControlLists mocks base method +// QueryAccessControlLists mocks base method. func (m *MockSecurityClient) QueryAccessControlLists(arg0 context.Context, arg1 security.QueryAccessControlListsArgs) (*[]security.AccessControlList, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "QueryAccessControlLists", arg0, arg1) @@ -73,13 +73,13 @@ func (m *MockSecurityClient) QueryAccessControlLists(arg0 context.Context, arg1 return ret0, ret1 } -// QueryAccessControlLists indicates an expected call of QueryAccessControlLists +// QueryAccessControlLists indicates an expected call of QueryAccessControlLists. func (mr *MockSecurityClientMockRecorder) QueryAccessControlLists(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryAccessControlLists", reflect.TypeOf((*MockSecurityClient)(nil).QueryAccessControlLists), arg0, arg1) } -// QuerySecurityNamespaces mocks base method +// QuerySecurityNamespaces mocks base method. func (m *MockSecurityClient) QuerySecurityNamespaces(arg0 context.Context, arg1 security.QuerySecurityNamespacesArgs) (*[]security.SecurityNamespaceDescription, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "QuerySecurityNamespaces", arg0, arg1) @@ -88,13 +88,13 @@ func (m *MockSecurityClient) QuerySecurityNamespaces(arg0 context.Context, arg1 return ret0, ret1 } -// QuerySecurityNamespaces indicates an expected call of QuerySecurityNamespaces +// QuerySecurityNamespaces indicates an expected call of QuerySecurityNamespaces. func (mr *MockSecurityClientMockRecorder) QuerySecurityNamespaces(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QuerySecurityNamespaces", reflect.TypeOf((*MockSecurityClient)(nil).QuerySecurityNamespaces), arg0, arg1) } -// RemoveAccessControlEntries mocks base method +// RemoveAccessControlEntries mocks base method. func (m *MockSecurityClient) RemoveAccessControlEntries(arg0 context.Context, arg1 security.RemoveAccessControlEntriesArgs) (*bool, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "RemoveAccessControlEntries", arg0, arg1) @@ -103,13 +103,13 @@ func (m *MockSecurityClient) RemoveAccessControlEntries(arg0 context.Context, ar return ret0, ret1 } -// RemoveAccessControlEntries indicates an expected call of RemoveAccessControlEntries +// RemoveAccessControlEntries indicates an expected call of RemoveAccessControlEntries. func (mr *MockSecurityClientMockRecorder) RemoveAccessControlEntries(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveAccessControlEntries", reflect.TypeOf((*MockSecurityClient)(nil).RemoveAccessControlEntries), arg0, arg1) } -// RemoveAccessControlLists mocks base method +// RemoveAccessControlLists mocks base method. func (m *MockSecurityClient) RemoveAccessControlLists(arg0 context.Context, arg1 security.RemoveAccessControlListsArgs) (*bool, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "RemoveAccessControlLists", arg0, arg1) @@ -118,13 +118,13 @@ func (m *MockSecurityClient) RemoveAccessControlLists(arg0 context.Context, arg1 return ret0, ret1 } -// RemoveAccessControlLists indicates an expected call of RemoveAccessControlLists +// RemoveAccessControlLists indicates an expected call of RemoveAccessControlLists. func (mr *MockSecurityClientMockRecorder) RemoveAccessControlLists(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveAccessControlLists", reflect.TypeOf((*MockSecurityClient)(nil).RemoveAccessControlLists), arg0, arg1) } -// RemovePermission mocks base method +// RemovePermission mocks base method. func (m *MockSecurityClient) RemovePermission(arg0 context.Context, arg1 security.RemovePermissionArgs) (*security.AccessControlEntry, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "RemovePermission", arg0, arg1) @@ -133,13 +133,13 @@ func (m *MockSecurityClient) RemovePermission(arg0 context.Context, arg1 securit return ret0, ret1 } -// RemovePermission indicates an expected call of RemovePermission +// RemovePermission indicates an expected call of RemovePermission. func (mr *MockSecurityClientMockRecorder) RemovePermission(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemovePermission", reflect.TypeOf((*MockSecurityClient)(nil).RemovePermission), arg0, arg1) } -// SetAccessControlEntries mocks base method +// SetAccessControlEntries mocks base method. func (m *MockSecurityClient) SetAccessControlEntries(arg0 context.Context, arg1 security.SetAccessControlEntriesArgs) (*[]security.AccessControlEntry, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SetAccessControlEntries", arg0, arg1) @@ -148,13 +148,13 @@ func (m *MockSecurityClient) SetAccessControlEntries(arg0 context.Context, arg1 return ret0, ret1 } -// SetAccessControlEntries indicates an expected call of SetAccessControlEntries +// SetAccessControlEntries indicates an expected call of SetAccessControlEntries. func (mr *MockSecurityClientMockRecorder) SetAccessControlEntries(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetAccessControlEntries", reflect.TypeOf((*MockSecurityClient)(nil).SetAccessControlEntries), arg0, arg1) } -// SetAccessControlLists mocks base method +// SetAccessControlLists mocks base method. func (m *MockSecurityClient) SetAccessControlLists(arg0 context.Context, arg1 security.SetAccessControlListsArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SetAccessControlLists", arg0, arg1) @@ -162,7 +162,7 @@ func (m *MockSecurityClient) SetAccessControlLists(arg0 context.Context, arg1 se return ret0 } -// SetAccessControlLists indicates an expected call of SetAccessControlLists +// SetAccessControlLists indicates an expected call of SetAccessControlLists. func (mr *MockSecurityClientMockRecorder) SetAccessControlLists(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetAccessControlLists", reflect.TypeOf((*MockSecurityClient)(nil).SetAccessControlLists), arg0, arg1) diff --git a/azdosdkmocks/serviceendpoint_sdk_mock.go b/azdosdkmocks/serviceendpoint_sdk_mock.go index aad82f2a4..ad7af6294 100644 --- a/azdosdkmocks/serviceendpoint_sdk_mock.go +++ b/azdosdkmocks/serviceendpoint_sdk_mock.go @@ -43,13 +43,13 @@ func (m *MockServiceendpointClient) CreateServiceEndpoint(arg0 context.Context, return ret0, ret1 } -// CreateServiceEndpoint indicates an expected call of CreateServiceEndpoint +// CreateServiceEndpoint indicates an expected call of CreateServiceEndpoint. func (mr *MockServiceendpointClientMockRecorder) CreateServiceEndpoint(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateServiceEndpoint", reflect.TypeOf((*MockServiceendpointClient)(nil).CreateServiceEndpoint), arg0, arg1) } -// DeleteServiceEndpoint mocks base method +// DeleteServiceEndpoint mocks base method. func (m *MockServiceendpointClient) DeleteServiceEndpoint(arg0 context.Context, arg1 serviceendpoint.DeleteServiceEndpointArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteServiceEndpoint", arg0, arg1) @@ -57,13 +57,13 @@ func (m *MockServiceendpointClient) DeleteServiceEndpoint(arg0 context.Context, return ret0 } -// DeleteServiceEndpoint indicates an expected call of DeleteServiceEndpoint +// DeleteServiceEndpoint indicates an expected call of DeleteServiceEndpoint. func (mr *MockServiceendpointClientMockRecorder) DeleteServiceEndpoint(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteServiceEndpoint", reflect.TypeOf((*MockServiceendpointClient)(nil).DeleteServiceEndpoint), arg0, arg1) } -// ExecuteServiceEndpointRequest mocks base method +// ExecuteServiceEndpointRequest mocks base method. func (m *MockServiceendpointClient) ExecuteServiceEndpointRequest(arg0 context.Context, arg1 serviceendpoint.ExecuteServiceEndpointRequestArgs) (*serviceendpoint.ServiceEndpointRequestResult, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ExecuteServiceEndpointRequest", arg0, arg1) @@ -72,13 +72,13 @@ func (m *MockServiceendpointClient) ExecuteServiceEndpointRequest(arg0 context.C return ret0, ret1 } -// ExecuteServiceEndpointRequest indicates an expected call of ExecuteServiceEndpointRequest +// ExecuteServiceEndpointRequest indicates an expected call of ExecuteServiceEndpointRequest. func (mr *MockServiceendpointClientMockRecorder) ExecuteServiceEndpointRequest(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExecuteServiceEndpointRequest", reflect.TypeOf((*MockServiceendpointClient)(nil).ExecuteServiceEndpointRequest), arg0, arg1) } -// GetServiceEndpointDetails mocks base method +// GetServiceEndpointDetails mocks base method. func (m *MockServiceendpointClient) GetServiceEndpointDetails(arg0 context.Context, arg1 serviceendpoint.GetServiceEndpointDetailsArgs) (*serviceendpoint.ServiceEndpoint, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetServiceEndpointDetails", arg0, arg1) @@ -87,13 +87,13 @@ func (m *MockServiceendpointClient) GetServiceEndpointDetails(arg0 context.Conte return ret0, ret1 } -// GetServiceEndpointDetails indicates an expected call of GetServiceEndpointDetails +// GetServiceEndpointDetails indicates an expected call of GetServiceEndpointDetails. func (mr *MockServiceendpointClientMockRecorder) GetServiceEndpointDetails(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServiceEndpointDetails", reflect.TypeOf((*MockServiceendpointClient)(nil).GetServiceEndpointDetails), arg0, arg1) } -// GetServiceEndpointExecutionRecords mocks base method +// GetServiceEndpointExecutionRecords mocks base method. func (m *MockServiceendpointClient) GetServiceEndpointExecutionRecords(arg0 context.Context, arg1 serviceendpoint.GetServiceEndpointExecutionRecordsArgs) (*serviceendpoint.GetServiceEndpointExecutionRecordsResponseValue, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetServiceEndpointExecutionRecords", arg0, arg1) @@ -102,13 +102,13 @@ func (m *MockServiceendpointClient) GetServiceEndpointExecutionRecords(arg0 cont return ret0, ret1 } -// GetServiceEndpointExecutionRecords indicates an expected call of GetServiceEndpointExecutionRecords +// GetServiceEndpointExecutionRecords indicates an expected call of GetServiceEndpointExecutionRecords. func (mr *MockServiceendpointClientMockRecorder) GetServiceEndpointExecutionRecords(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServiceEndpointExecutionRecords", reflect.TypeOf((*MockServiceendpointClient)(nil).GetServiceEndpointExecutionRecords), arg0, arg1) } -// GetServiceEndpointTypes mocks base method +// GetServiceEndpointTypes mocks base method. func (m *MockServiceendpointClient) GetServiceEndpointTypes(arg0 context.Context, arg1 serviceendpoint.GetServiceEndpointTypesArgs) (*[]serviceendpoint.ServiceEndpointType, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetServiceEndpointTypes", arg0, arg1) @@ -117,13 +117,13 @@ func (m *MockServiceendpointClient) GetServiceEndpointTypes(arg0 context.Context return ret0, ret1 } -// GetServiceEndpointTypes indicates an expected call of GetServiceEndpointTypes +// GetServiceEndpointTypes indicates an expected call of GetServiceEndpointTypes. func (mr *MockServiceendpointClientMockRecorder) GetServiceEndpointTypes(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServiceEndpointTypes", reflect.TypeOf((*MockServiceendpointClient)(nil).GetServiceEndpointTypes), arg0, arg1) } -// GetServiceEndpoints mocks base method +// GetServiceEndpoints mocks base method. func (m *MockServiceendpointClient) GetServiceEndpoints(arg0 context.Context, arg1 serviceendpoint.GetServiceEndpointsArgs) (*[]serviceendpoint.ServiceEndpoint, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetServiceEndpoints", arg0, arg1) @@ -132,13 +132,13 @@ func (m *MockServiceendpointClient) GetServiceEndpoints(arg0 context.Context, ar return ret0, ret1 } -// GetServiceEndpoints indicates an expected call of GetServiceEndpoints +// GetServiceEndpoints indicates an expected call of GetServiceEndpoints. func (mr *MockServiceendpointClientMockRecorder) GetServiceEndpoints(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServiceEndpoints", reflect.TypeOf((*MockServiceendpointClient)(nil).GetServiceEndpoints), arg0, arg1) } -// GetServiceEndpointsByNames mocks base method +// GetServiceEndpointsByNames mocks base method. func (m *MockServiceendpointClient) GetServiceEndpointsByNames(arg0 context.Context, arg1 serviceendpoint.GetServiceEndpointsByNamesArgs) (*[]serviceendpoint.ServiceEndpoint, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetServiceEndpointsByNames", arg0, arg1) @@ -147,13 +147,42 @@ func (m *MockServiceendpointClient) GetServiceEndpointsByNames(arg0 context.Cont return ret0, ret1 } -// GetServiceEndpointsByNames indicates an expected call of GetServiceEndpointsByNames +// GetServiceEndpointsByNames indicates an expected call of GetServiceEndpointsByNames. func (mr *MockServiceendpointClientMockRecorder) GetServiceEndpointsByNames(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServiceEndpointsByNames", reflect.TypeOf((*MockServiceendpointClient)(nil).GetServiceEndpointsByNames), arg0, arg1) } -// UpdateServiceEndpoint mocks base method +// GetServiceEndpointsWithRefreshedAuthentication mocks base method. +func (m *MockServiceendpointClient) GetServiceEndpointsWithRefreshedAuthentication(arg0 context.Context, arg1 serviceendpoint.GetServiceEndpointsWithRefreshedAuthenticationArgs) (*[]serviceendpoint.ServiceEndpoint, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetServiceEndpointsWithRefreshedAuthentication", arg0, arg1) + ret0, _ := ret[0].(*[]serviceendpoint.ServiceEndpoint) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetServiceEndpointsWithRefreshedAuthentication indicates an expected call of GetServiceEndpointsWithRefreshedAuthentication. +func (mr *MockServiceendpointClientMockRecorder) GetServiceEndpointsWithRefreshedAuthentication(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServiceEndpointsWithRefreshedAuthentication", reflect.TypeOf((*MockServiceendpointClient)(nil).GetServiceEndpointsWithRefreshedAuthentication), arg0, arg1) +} + +// ShareServiceEndpoint mocks base method. +func (m *MockServiceendpointClient) ShareServiceEndpoint(arg0 context.Context, arg1 serviceendpoint.ShareServiceEndpointArgs) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ShareServiceEndpoint", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ShareServiceEndpoint indicates an expected call of ShareServiceEndpoint. +func (mr *MockServiceendpointClientMockRecorder) ShareServiceEndpoint(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ShareServiceEndpoint", reflect.TypeOf((*MockServiceendpointClient)(nil).ShareServiceEndpoint), arg0, arg1) +} + +// UpdateServiceEndpoint mocks base method. func (m *MockServiceendpointClient) UpdateServiceEndpoint(arg0 context.Context, arg1 serviceendpoint.UpdateServiceEndpointArgs) (*serviceendpoint.ServiceEndpoint, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateServiceEndpoint", arg0, arg1) @@ -162,13 +191,13 @@ func (m *MockServiceendpointClient) UpdateServiceEndpoint(arg0 context.Context, return ret0, ret1 } -// UpdateServiceEndpoint indicates an expected call of UpdateServiceEndpoint +// UpdateServiceEndpoint indicates an expected call of UpdateServiceEndpoint. func (mr *MockServiceendpointClientMockRecorder) UpdateServiceEndpoint(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateServiceEndpoint", reflect.TypeOf((*MockServiceendpointClient)(nil).UpdateServiceEndpoint), arg0, arg1) } -// UpdateServiceEndpoints mocks base method +// UpdateServiceEndpoints mocks base method. func (m *MockServiceendpointClient) UpdateServiceEndpoints(arg0 context.Context, arg1 serviceendpoint.UpdateServiceEndpointsArgs) (*[]serviceendpoint.ServiceEndpoint, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateServiceEndpoints", arg0, arg1) @@ -177,7 +206,7 @@ func (m *MockServiceendpointClient) UpdateServiceEndpoints(arg0 context.Context, return ret0, ret1 } -// UpdateServiceEndpoints indicates an expected call of UpdateServiceEndpoints +// UpdateServiceEndpoints indicates an expected call of UpdateServiceEndpoints. func (mr *MockServiceendpointClientMockRecorder) UpdateServiceEndpoints(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateServiceEndpoints", reflect.TypeOf((*MockServiceendpointClient)(nil).UpdateServiceEndpoints), arg0, arg1) diff --git a/azdosdkmocks/taskagent_sdk_mock.go b/azdosdkmocks/taskagent_sdk_mock.go index c9b857f70..a50987fda 100644 --- a/azdosdkmocks/taskagent_sdk_mock.go +++ b/azdosdkmocks/taskagent_sdk_mock.go @@ -43,13 +43,13 @@ func (m *MockTaskagentClient) AddAgent(arg0 context.Context, arg1 taskagent.AddA return ret0, ret1 } -// AddAgent indicates an expected call of AddAgent +// AddAgent indicates an expected call of AddAgent. func (mr *MockTaskagentClientMockRecorder) AddAgent(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddAgent", reflect.TypeOf((*MockTaskagentClient)(nil).AddAgent), arg0, arg1) } -// AddAgentCloud mocks base method +// AddAgentCloud mocks base method. func (m *MockTaskagentClient) AddAgentCloud(arg0 context.Context, arg1 taskagent.AddAgentCloudArgs) (*taskagent.TaskAgentCloud, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddAgentCloud", arg0, arg1) @@ -58,13 +58,13 @@ func (m *MockTaskagentClient) AddAgentCloud(arg0 context.Context, arg1 taskagent return ret0, ret1 } -// AddAgentCloud indicates an expected call of AddAgentCloud +// AddAgentCloud indicates an expected call of AddAgentCloud. func (mr *MockTaskagentClientMockRecorder) AddAgentCloud(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddAgentCloud", reflect.TypeOf((*MockTaskagentClient)(nil).AddAgentCloud), arg0, arg1) } -// AddAgentPool mocks base method +// AddAgentPool mocks base method. func (m *MockTaskagentClient) AddAgentPool(arg0 context.Context, arg1 taskagent.AddAgentPoolArgs) (*taskagent.TaskAgentPool, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddAgentPool", arg0, arg1) @@ -73,13 +73,13 @@ func (m *MockTaskagentClient) AddAgentPool(arg0 context.Context, arg1 taskagent. return ret0, ret1 } -// AddAgentPool indicates an expected call of AddAgentPool +// AddAgentPool indicates an expected call of AddAgentPool. func (mr *MockTaskagentClientMockRecorder) AddAgentPool(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddAgentPool", reflect.TypeOf((*MockTaskagentClient)(nil).AddAgentPool), arg0, arg1) } -// AddAgentQueue mocks base method +// AddAgentQueue mocks base method. func (m *MockTaskagentClient) AddAgentQueue(arg0 context.Context, arg1 taskagent.AddAgentQueueArgs) (*taskagent.TaskAgentQueue, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddAgentQueue", arg0, arg1) @@ -88,13 +88,13 @@ func (m *MockTaskagentClient) AddAgentQueue(arg0 context.Context, arg1 taskagent return ret0, ret1 } -// AddAgentQueue indicates an expected call of AddAgentQueue +// AddAgentQueue indicates an expected call of AddAgentQueue. func (mr *MockTaskagentClientMockRecorder) AddAgentQueue(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddAgentQueue", reflect.TypeOf((*MockTaskagentClient)(nil).AddAgentQueue), arg0, arg1) } -// AddDeploymentGroup mocks base method +// AddDeploymentGroup mocks base method. func (m *MockTaskagentClient) AddDeploymentGroup(arg0 context.Context, arg1 taskagent.AddDeploymentGroupArgs) (*taskagent.DeploymentGroup, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddDeploymentGroup", arg0, arg1) @@ -103,13 +103,43 @@ func (m *MockTaskagentClient) AddDeploymentGroup(arg0 context.Context, arg1 task return ret0, ret1 } -// AddDeploymentGroup indicates an expected call of AddDeploymentGroup +// AddDeploymentGroup indicates an expected call of AddDeploymentGroup. func (mr *MockTaskagentClientMockRecorder) AddDeploymentGroup(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddDeploymentGroup", reflect.TypeOf((*MockTaskagentClient)(nil).AddDeploymentGroup), arg0, arg1) } -// AddTaskGroup mocks base method +// AddEnvironment mocks base method. +func (m *MockTaskagentClient) AddEnvironment(arg0 context.Context, arg1 taskagent.AddEnvironmentArgs) (*taskagent.EnvironmentInstance, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AddEnvironment", arg0, arg1) + ret0, _ := ret[0].(*taskagent.EnvironmentInstance) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AddEnvironment indicates an expected call of AddEnvironment. +func (mr *MockTaskagentClientMockRecorder) AddEnvironment(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddEnvironment", reflect.TypeOf((*MockTaskagentClient)(nil).AddEnvironment), arg0, arg1) +} + +// AddKubernetesResource mocks base method. +func (m *MockTaskagentClient) AddKubernetesResource(arg0 context.Context, arg1 taskagent.AddKubernetesResourceArgs) (*taskagent.KubernetesResource, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AddKubernetesResource", arg0, arg1) + ret0, _ := ret[0].(*taskagent.KubernetesResource) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AddKubernetesResource indicates an expected call of AddKubernetesResource. +func (mr *MockTaskagentClientMockRecorder) AddKubernetesResource(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddKubernetesResource", reflect.TypeOf((*MockTaskagentClient)(nil).AddKubernetesResource), arg0, arg1) +} + +// AddTaskGroup mocks base method. func (m *MockTaskagentClient) AddTaskGroup(arg0 context.Context, arg1 taskagent.AddTaskGroupArgs) (*taskagent.TaskGroup, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddTaskGroup", arg0, arg1) @@ -118,13 +148,13 @@ func (m *MockTaskagentClient) AddTaskGroup(arg0 context.Context, arg1 taskagent. return ret0, ret1 } -// AddTaskGroup indicates an expected call of AddTaskGroup +// AddTaskGroup indicates an expected call of AddTaskGroup. func (mr *MockTaskagentClientMockRecorder) AddTaskGroup(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddTaskGroup", reflect.TypeOf((*MockTaskagentClient)(nil).AddTaskGroup), arg0, arg1) } -// AddVariableGroup mocks base method +// AddVariableGroup mocks base method. func (m *MockTaskagentClient) AddVariableGroup(arg0 context.Context, arg1 taskagent.AddVariableGroupArgs) (*taskagent.VariableGroup, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddVariableGroup", arg0, arg1) @@ -133,13 +163,13 @@ func (m *MockTaskagentClient) AddVariableGroup(arg0 context.Context, arg1 taskag return ret0, ret1 } -// AddVariableGroup indicates an expected call of AddVariableGroup +// AddVariableGroup indicates an expected call of AddVariableGroup. func (mr *MockTaskagentClientMockRecorder) AddVariableGroup(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddVariableGroup", reflect.TypeOf((*MockTaskagentClient)(nil).AddVariableGroup), arg0, arg1) } -// DeleteAgent mocks base method +// DeleteAgent mocks base method. func (m *MockTaskagentClient) DeleteAgent(arg0 context.Context, arg1 taskagent.DeleteAgentArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteAgent", arg0, arg1) @@ -147,13 +177,13 @@ func (m *MockTaskagentClient) DeleteAgent(arg0 context.Context, arg1 taskagent.D return ret0 } -// DeleteAgent indicates an expected call of DeleteAgent +// DeleteAgent indicates an expected call of DeleteAgent. func (mr *MockTaskagentClientMockRecorder) DeleteAgent(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAgent", reflect.TypeOf((*MockTaskagentClient)(nil).DeleteAgent), arg0, arg1) } -// DeleteAgentCloud mocks base method +// DeleteAgentCloud mocks base method. func (m *MockTaskagentClient) DeleteAgentCloud(arg0 context.Context, arg1 taskagent.DeleteAgentCloudArgs) (*taskagent.TaskAgentCloud, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteAgentCloud", arg0, arg1) @@ -162,13 +192,13 @@ func (m *MockTaskagentClient) DeleteAgentCloud(arg0 context.Context, arg1 taskag return ret0, ret1 } -// DeleteAgentCloud indicates an expected call of DeleteAgentCloud +// DeleteAgentCloud indicates an expected call of DeleteAgentCloud. func (mr *MockTaskagentClientMockRecorder) DeleteAgentCloud(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAgentCloud", reflect.TypeOf((*MockTaskagentClient)(nil).DeleteAgentCloud), arg0, arg1) } -// DeleteAgentPool mocks base method +// DeleteAgentPool mocks base method. func (m *MockTaskagentClient) DeleteAgentPool(arg0 context.Context, arg1 taskagent.DeleteAgentPoolArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteAgentPool", arg0, arg1) @@ -176,13 +206,13 @@ func (m *MockTaskagentClient) DeleteAgentPool(arg0 context.Context, arg1 taskage return ret0 } -// DeleteAgentPool indicates an expected call of DeleteAgentPool +// DeleteAgentPool indicates an expected call of DeleteAgentPool. func (mr *MockTaskagentClientMockRecorder) DeleteAgentPool(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAgentPool", reflect.TypeOf((*MockTaskagentClient)(nil).DeleteAgentPool), arg0, arg1) } -// DeleteAgentQueue mocks base method +// DeleteAgentQueue mocks base method. func (m *MockTaskagentClient) DeleteAgentQueue(arg0 context.Context, arg1 taskagent.DeleteAgentQueueArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteAgentQueue", arg0, arg1) @@ -190,13 +220,13 @@ func (m *MockTaskagentClient) DeleteAgentQueue(arg0 context.Context, arg1 taskag return ret0 } -// DeleteAgentQueue indicates an expected call of DeleteAgentQueue +// DeleteAgentQueue indicates an expected call of DeleteAgentQueue. func (mr *MockTaskagentClientMockRecorder) DeleteAgentQueue(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAgentQueue", reflect.TypeOf((*MockTaskagentClient)(nil).DeleteAgentQueue), arg0, arg1) } -// DeleteDeploymentGroup mocks base method +// DeleteDeploymentGroup mocks base method. func (m *MockTaskagentClient) DeleteDeploymentGroup(arg0 context.Context, arg1 taskagent.DeleteDeploymentGroupArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteDeploymentGroup", arg0, arg1) @@ -204,13 +234,13 @@ func (m *MockTaskagentClient) DeleteDeploymentGroup(arg0 context.Context, arg1 t return ret0 } -// DeleteDeploymentGroup indicates an expected call of DeleteDeploymentGroup +// DeleteDeploymentGroup indicates an expected call of DeleteDeploymentGroup. func (mr *MockTaskagentClientMockRecorder) DeleteDeploymentGroup(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteDeploymentGroup", reflect.TypeOf((*MockTaskagentClient)(nil).DeleteDeploymentGroup), arg0, arg1) } -// DeleteDeploymentTarget mocks base method +// DeleteDeploymentTarget mocks base method. func (m *MockTaskagentClient) DeleteDeploymentTarget(arg0 context.Context, arg1 taskagent.DeleteDeploymentTargetArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteDeploymentTarget", arg0, arg1) @@ -218,13 +248,41 @@ func (m *MockTaskagentClient) DeleteDeploymentTarget(arg0 context.Context, arg1 return ret0 } -// DeleteDeploymentTarget indicates an expected call of DeleteDeploymentTarget +// DeleteDeploymentTarget indicates an expected call of DeleteDeploymentTarget. func (mr *MockTaskagentClientMockRecorder) DeleteDeploymentTarget(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteDeploymentTarget", reflect.TypeOf((*MockTaskagentClient)(nil).DeleteDeploymentTarget), arg0, arg1) } -// DeleteTaskGroup mocks base method +// DeleteEnvironment mocks base method. +func (m *MockTaskagentClient) DeleteEnvironment(arg0 context.Context, arg1 taskagent.DeleteEnvironmentArgs) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteEnvironment", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DeleteEnvironment indicates an expected call of DeleteEnvironment. +func (mr *MockTaskagentClientMockRecorder) DeleteEnvironment(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteEnvironment", reflect.TypeOf((*MockTaskagentClient)(nil).DeleteEnvironment), arg0, arg1) +} + +// DeleteKubernetesResource mocks base method. +func (m *MockTaskagentClient) DeleteKubernetesResource(arg0 context.Context, arg1 taskagent.DeleteKubernetesResourceArgs) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteKubernetesResource", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DeleteKubernetesResource indicates an expected call of DeleteKubernetesResource. +func (mr *MockTaskagentClientMockRecorder) DeleteKubernetesResource(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteKubernetesResource", reflect.TypeOf((*MockTaskagentClient)(nil).DeleteKubernetesResource), arg0, arg1) +} + +// DeleteTaskGroup mocks base method. func (m *MockTaskagentClient) DeleteTaskGroup(arg0 context.Context, arg1 taskagent.DeleteTaskGroupArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteTaskGroup", arg0, arg1) @@ -232,13 +290,13 @@ func (m *MockTaskagentClient) DeleteTaskGroup(arg0 context.Context, arg1 taskage return ret0 } -// DeleteTaskGroup indicates an expected call of DeleteTaskGroup +// DeleteTaskGroup indicates an expected call of DeleteTaskGroup. func (mr *MockTaskagentClientMockRecorder) DeleteTaskGroup(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTaskGroup", reflect.TypeOf((*MockTaskagentClient)(nil).DeleteTaskGroup), arg0, arg1) } -// DeleteVariableGroup mocks base method +// DeleteVariableGroup mocks base method. func (m *MockTaskagentClient) DeleteVariableGroup(arg0 context.Context, arg1 taskagent.DeleteVariableGroupArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteVariableGroup", arg0, arg1) @@ -246,13 +304,13 @@ func (m *MockTaskagentClient) DeleteVariableGroup(arg0 context.Context, arg1 tas return ret0 } -// DeleteVariableGroup indicates an expected call of DeleteVariableGroup +// DeleteVariableGroup indicates an expected call of DeleteVariableGroup. func (mr *MockTaskagentClientMockRecorder) DeleteVariableGroup(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteVariableGroup", reflect.TypeOf((*MockTaskagentClient)(nil).DeleteVariableGroup), arg0, arg1) } -// GetAgent mocks base method +// GetAgent mocks base method. func (m *MockTaskagentClient) GetAgent(arg0 context.Context, arg1 taskagent.GetAgentArgs) (*taskagent.TaskAgent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetAgent", arg0, arg1) @@ -261,13 +319,13 @@ func (m *MockTaskagentClient) GetAgent(arg0 context.Context, arg1 taskagent.GetA return ret0, ret1 } -// GetAgent indicates an expected call of GetAgent +// GetAgent indicates an expected call of GetAgent. func (mr *MockTaskagentClientMockRecorder) GetAgent(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAgent", reflect.TypeOf((*MockTaskagentClient)(nil).GetAgent), arg0, arg1) } -// GetAgentCloud mocks base method +// GetAgentCloud mocks base method. func (m *MockTaskagentClient) GetAgentCloud(arg0 context.Context, arg1 taskagent.GetAgentCloudArgs) (*taskagent.TaskAgentCloud, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetAgentCloud", arg0, arg1) @@ -276,13 +334,13 @@ func (m *MockTaskagentClient) GetAgentCloud(arg0 context.Context, arg1 taskagent return ret0, ret1 } -// GetAgentCloud indicates an expected call of GetAgentCloud +// GetAgentCloud indicates an expected call of GetAgentCloud. func (mr *MockTaskagentClientMockRecorder) GetAgentCloud(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAgentCloud", reflect.TypeOf((*MockTaskagentClient)(nil).GetAgentCloud), arg0, arg1) } -// GetAgentCloudRequests mocks base method +// GetAgentCloudRequests mocks base method. func (m *MockTaskagentClient) GetAgentCloudRequests(arg0 context.Context, arg1 taskagent.GetAgentCloudRequestsArgs) (*[]taskagent.TaskAgentCloudRequest, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetAgentCloudRequests", arg0, arg1) @@ -291,13 +349,13 @@ func (m *MockTaskagentClient) GetAgentCloudRequests(arg0 context.Context, arg1 t return ret0, ret1 } -// GetAgentCloudRequests indicates an expected call of GetAgentCloudRequests +// GetAgentCloudRequests indicates an expected call of GetAgentCloudRequests. func (mr *MockTaskagentClientMockRecorder) GetAgentCloudRequests(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAgentCloudRequests", reflect.TypeOf((*MockTaskagentClient)(nil).GetAgentCloudRequests), arg0, arg1) } -// GetAgentCloudTypes mocks base method +// GetAgentCloudTypes mocks base method. func (m *MockTaskagentClient) GetAgentCloudTypes(arg0 context.Context, arg1 taskagent.GetAgentCloudTypesArgs) (*[]taskagent.TaskAgentCloudType, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetAgentCloudTypes", arg0, arg1) @@ -306,13 +364,13 @@ func (m *MockTaskagentClient) GetAgentCloudTypes(arg0 context.Context, arg1 task return ret0, ret1 } -// GetAgentCloudTypes indicates an expected call of GetAgentCloudTypes +// GetAgentCloudTypes indicates an expected call of GetAgentCloudTypes. func (mr *MockTaskagentClientMockRecorder) GetAgentCloudTypes(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAgentCloudTypes", reflect.TypeOf((*MockTaskagentClient)(nil).GetAgentCloudTypes), arg0, arg1) } -// GetAgentClouds mocks base method +// GetAgentClouds mocks base method. func (m *MockTaskagentClient) GetAgentClouds(arg0 context.Context, arg1 taskagent.GetAgentCloudsArgs) (*[]taskagent.TaskAgentCloud, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetAgentClouds", arg0, arg1) @@ -321,13 +379,13 @@ func (m *MockTaskagentClient) GetAgentClouds(arg0 context.Context, arg1 taskagen return ret0, ret1 } -// GetAgentClouds indicates an expected call of GetAgentClouds +// GetAgentClouds indicates an expected call of GetAgentClouds. func (mr *MockTaskagentClientMockRecorder) GetAgentClouds(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAgentClouds", reflect.TypeOf((*MockTaskagentClient)(nil).GetAgentClouds), arg0, arg1) } -// GetAgentPool mocks base method +// GetAgentPool mocks base method. func (m *MockTaskagentClient) GetAgentPool(arg0 context.Context, arg1 taskagent.GetAgentPoolArgs) (*taskagent.TaskAgentPool, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetAgentPool", arg0, arg1) @@ -336,13 +394,13 @@ func (m *MockTaskagentClient) GetAgentPool(arg0 context.Context, arg1 taskagent. return ret0, ret1 } -// GetAgentPool indicates an expected call of GetAgentPool +// GetAgentPool indicates an expected call of GetAgentPool. func (mr *MockTaskagentClientMockRecorder) GetAgentPool(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAgentPool", reflect.TypeOf((*MockTaskagentClient)(nil).GetAgentPool), arg0, arg1) } -// GetAgentPools mocks base method +// GetAgentPools mocks base method. func (m *MockTaskagentClient) GetAgentPools(arg0 context.Context, arg1 taskagent.GetAgentPoolsArgs) (*[]taskagent.TaskAgentPool, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetAgentPools", arg0, arg1) @@ -351,13 +409,13 @@ func (m *MockTaskagentClient) GetAgentPools(arg0 context.Context, arg1 taskagent return ret0, ret1 } -// GetAgentPools indicates an expected call of GetAgentPools +// GetAgentPools indicates an expected call of GetAgentPools. func (mr *MockTaskagentClientMockRecorder) GetAgentPools(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAgentPools", reflect.TypeOf((*MockTaskagentClient)(nil).GetAgentPools), arg0, arg1) } -// GetAgentPoolsByIds mocks base method +// GetAgentPoolsByIds mocks base method. func (m *MockTaskagentClient) GetAgentPoolsByIds(arg0 context.Context, arg1 taskagent.GetAgentPoolsByIdsArgs) (*[]taskagent.TaskAgentPool, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetAgentPoolsByIds", arg0, arg1) @@ -366,13 +424,13 @@ func (m *MockTaskagentClient) GetAgentPoolsByIds(arg0 context.Context, arg1 task return ret0, ret1 } -// GetAgentPoolsByIds indicates an expected call of GetAgentPoolsByIds +// GetAgentPoolsByIds indicates an expected call of GetAgentPoolsByIds. func (mr *MockTaskagentClientMockRecorder) GetAgentPoolsByIds(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAgentPoolsByIds", reflect.TypeOf((*MockTaskagentClient)(nil).GetAgentPoolsByIds), arg0, arg1) } -// GetAgentQueue mocks base method +// GetAgentQueue mocks base method. func (m *MockTaskagentClient) GetAgentQueue(arg0 context.Context, arg1 taskagent.GetAgentQueueArgs) (*taskagent.TaskAgentQueue, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetAgentQueue", arg0, arg1) @@ -381,13 +439,13 @@ func (m *MockTaskagentClient) GetAgentQueue(arg0 context.Context, arg1 taskagent return ret0, ret1 } -// GetAgentQueue indicates an expected call of GetAgentQueue +// GetAgentQueue indicates an expected call of GetAgentQueue. func (mr *MockTaskagentClientMockRecorder) GetAgentQueue(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAgentQueue", reflect.TypeOf((*MockTaskagentClient)(nil).GetAgentQueue), arg0, arg1) } -// GetAgentQueues mocks base method +// GetAgentQueues mocks base method. func (m *MockTaskagentClient) GetAgentQueues(arg0 context.Context, arg1 taskagent.GetAgentQueuesArgs) (*[]taskagent.TaskAgentQueue, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetAgentQueues", arg0, arg1) @@ -396,13 +454,13 @@ func (m *MockTaskagentClient) GetAgentQueues(arg0 context.Context, arg1 taskagen return ret0, ret1 } -// GetAgentQueues indicates an expected call of GetAgentQueues +// GetAgentQueues indicates an expected call of GetAgentQueues. func (mr *MockTaskagentClientMockRecorder) GetAgentQueues(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAgentQueues", reflect.TypeOf((*MockTaskagentClient)(nil).GetAgentQueues), arg0, arg1) } -// GetAgentQueuesByIds mocks base method +// GetAgentQueuesByIds mocks base method. func (m *MockTaskagentClient) GetAgentQueuesByIds(arg0 context.Context, arg1 taskagent.GetAgentQueuesByIdsArgs) (*[]taskagent.TaskAgentQueue, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetAgentQueuesByIds", arg0, arg1) @@ -411,13 +469,13 @@ func (m *MockTaskagentClient) GetAgentQueuesByIds(arg0 context.Context, arg1 tas return ret0, ret1 } -// GetAgentQueuesByIds indicates an expected call of GetAgentQueuesByIds +// GetAgentQueuesByIds indicates an expected call of GetAgentQueuesByIds. func (mr *MockTaskagentClientMockRecorder) GetAgentQueuesByIds(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAgentQueuesByIds", reflect.TypeOf((*MockTaskagentClient)(nil).GetAgentQueuesByIds), arg0, arg1) } -// GetAgentQueuesByNames mocks base method +// GetAgentQueuesByNames mocks base method. func (m *MockTaskagentClient) GetAgentQueuesByNames(arg0 context.Context, arg1 taskagent.GetAgentQueuesByNamesArgs) (*[]taskagent.TaskAgentQueue, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetAgentQueuesByNames", arg0, arg1) @@ -426,13 +484,28 @@ func (m *MockTaskagentClient) GetAgentQueuesByNames(arg0 context.Context, arg1 t return ret0, ret1 } -// GetAgentQueuesByNames indicates an expected call of GetAgentQueuesByNames +// GetAgentQueuesByNames indicates an expected call of GetAgentQueuesByNames. func (mr *MockTaskagentClientMockRecorder) GetAgentQueuesByNames(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAgentQueuesByNames", reflect.TypeOf((*MockTaskagentClient)(nil).GetAgentQueuesByNames), arg0, arg1) } -// GetAgents mocks base method +// GetAgentQueuesForPools mocks base method. +func (m *MockTaskagentClient) GetAgentQueuesForPools(arg0 context.Context, arg1 taskagent.GetAgentQueuesForPoolsArgs) (*[]taskagent.TaskAgentQueue, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetAgentQueuesForPools", arg0, arg1) + ret0, _ := ret[0].(*[]taskagent.TaskAgentQueue) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetAgentQueuesForPools indicates an expected call of GetAgentQueuesForPools. +func (mr *MockTaskagentClientMockRecorder) GetAgentQueuesForPools(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAgentQueuesForPools", reflect.TypeOf((*MockTaskagentClient)(nil).GetAgentQueuesForPools), arg0, arg1) +} + +// GetAgents mocks base method. func (m *MockTaskagentClient) GetAgents(arg0 context.Context, arg1 taskagent.GetAgentsArgs) (*[]taskagent.TaskAgent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetAgents", arg0, arg1) @@ -441,13 +514,13 @@ func (m *MockTaskagentClient) GetAgents(arg0 context.Context, arg1 taskagent.Get return ret0, ret1 } -// GetAgents indicates an expected call of GetAgents +// GetAgents indicates an expected call of GetAgents. func (mr *MockTaskagentClientMockRecorder) GetAgents(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAgents", reflect.TypeOf((*MockTaskagentClient)(nil).GetAgents), arg0, arg1) } -// GetDeploymentGroup mocks base method +// GetDeploymentGroup mocks base method. func (m *MockTaskagentClient) GetDeploymentGroup(arg0 context.Context, arg1 taskagent.GetDeploymentGroupArgs) (*taskagent.DeploymentGroup, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetDeploymentGroup", arg0, arg1) @@ -456,13 +529,13 @@ func (m *MockTaskagentClient) GetDeploymentGroup(arg0 context.Context, arg1 task return ret0, ret1 } -// GetDeploymentGroup indicates an expected call of GetDeploymentGroup +// GetDeploymentGroup indicates an expected call of GetDeploymentGroup. func (mr *MockTaskagentClientMockRecorder) GetDeploymentGroup(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDeploymentGroup", reflect.TypeOf((*MockTaskagentClient)(nil).GetDeploymentGroup), arg0, arg1) } -// GetDeploymentGroups mocks base method +// GetDeploymentGroups mocks base method. func (m *MockTaskagentClient) GetDeploymentGroups(arg0 context.Context, arg1 taskagent.GetDeploymentGroupsArgs) (*taskagent.GetDeploymentGroupsResponseValue, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetDeploymentGroups", arg0, arg1) @@ -471,13 +544,13 @@ func (m *MockTaskagentClient) GetDeploymentGroups(arg0 context.Context, arg1 tas return ret0, ret1 } -// GetDeploymentGroups indicates an expected call of GetDeploymentGroups +// GetDeploymentGroups indicates an expected call of GetDeploymentGroups. func (mr *MockTaskagentClientMockRecorder) GetDeploymentGroups(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDeploymentGroups", reflect.TypeOf((*MockTaskagentClient)(nil).GetDeploymentGroups), arg0, arg1) } -// GetDeploymentTarget mocks base method +// GetDeploymentTarget mocks base method. func (m *MockTaskagentClient) GetDeploymentTarget(arg0 context.Context, arg1 taskagent.GetDeploymentTargetArgs) (*taskagent.DeploymentMachine, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetDeploymentTarget", arg0, arg1) @@ -486,13 +559,13 @@ func (m *MockTaskagentClient) GetDeploymentTarget(arg0 context.Context, arg1 tas return ret0, ret1 } -// GetDeploymentTarget indicates an expected call of GetDeploymentTarget +// GetDeploymentTarget indicates an expected call of GetDeploymentTarget. func (mr *MockTaskagentClientMockRecorder) GetDeploymentTarget(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDeploymentTarget", reflect.TypeOf((*MockTaskagentClient)(nil).GetDeploymentTarget), arg0, arg1) } -// GetDeploymentTargets mocks base method +// GetDeploymentTargets mocks base method. func (m *MockTaskagentClient) GetDeploymentTargets(arg0 context.Context, arg1 taskagent.GetDeploymentTargetsArgs) (*taskagent.GetDeploymentTargetsResponseValue, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetDeploymentTargets", arg0, arg1) @@ -501,13 +574,73 @@ func (m *MockTaskagentClient) GetDeploymentTargets(arg0 context.Context, arg1 ta return ret0, ret1 } -// GetDeploymentTargets indicates an expected call of GetDeploymentTargets +// GetDeploymentTargets indicates an expected call of GetDeploymentTargets. func (mr *MockTaskagentClientMockRecorder) GetDeploymentTargets(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDeploymentTargets", reflect.TypeOf((*MockTaskagentClient)(nil).GetDeploymentTargets), arg0, arg1) } -// GetTaskGroups mocks base method +// GetEnvironmentById mocks base method. +func (m *MockTaskagentClient) GetEnvironmentById(arg0 context.Context, arg1 taskagent.GetEnvironmentByIdArgs) (*taskagent.EnvironmentInstance, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetEnvironmentById", arg0, arg1) + ret0, _ := ret[0].(*taskagent.EnvironmentInstance) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetEnvironmentById indicates an expected call of GetEnvironmentById. +func (mr *MockTaskagentClientMockRecorder) GetEnvironmentById(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEnvironmentById", reflect.TypeOf((*MockTaskagentClient)(nil).GetEnvironmentById), arg0, arg1) +} + +// GetEnvironmentDeploymentExecutionRecords mocks base method. +func (m *MockTaskagentClient) GetEnvironmentDeploymentExecutionRecords(arg0 context.Context, arg1 taskagent.GetEnvironmentDeploymentExecutionRecordsArgs) (*taskagent.GetEnvironmentDeploymentExecutionRecordsResponseValue, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetEnvironmentDeploymentExecutionRecords", arg0, arg1) + ret0, _ := ret[0].(*taskagent.GetEnvironmentDeploymentExecutionRecordsResponseValue) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetEnvironmentDeploymentExecutionRecords indicates an expected call of GetEnvironmentDeploymentExecutionRecords. +func (mr *MockTaskagentClientMockRecorder) GetEnvironmentDeploymentExecutionRecords(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEnvironmentDeploymentExecutionRecords", reflect.TypeOf((*MockTaskagentClient)(nil).GetEnvironmentDeploymentExecutionRecords), arg0, arg1) +} + +// GetEnvironments mocks base method. +func (m *MockTaskagentClient) GetEnvironments(arg0 context.Context, arg1 taskagent.GetEnvironmentsArgs) (*taskagent.GetEnvironmentsResponseValue, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetEnvironments", arg0, arg1) + ret0, _ := ret[0].(*taskagent.GetEnvironmentsResponseValue) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetEnvironments indicates an expected call of GetEnvironments. +func (mr *MockTaskagentClientMockRecorder) GetEnvironments(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEnvironments", reflect.TypeOf((*MockTaskagentClient)(nil).GetEnvironments), arg0, arg1) +} + +// GetKubernetesResource mocks base method. +func (m *MockTaskagentClient) GetKubernetesResource(arg0 context.Context, arg1 taskagent.GetKubernetesResourceArgs) (*taskagent.KubernetesResource, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetKubernetesResource", arg0, arg1) + ret0, _ := ret[0].(*taskagent.KubernetesResource) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetKubernetesResource indicates an expected call of GetKubernetesResource. +func (mr *MockTaskagentClientMockRecorder) GetKubernetesResource(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetKubernetesResource", reflect.TypeOf((*MockTaskagentClient)(nil).GetKubernetesResource), arg0, arg1) +} + +// GetTaskGroups mocks base method. func (m *MockTaskagentClient) GetTaskGroups(arg0 context.Context, arg1 taskagent.GetTaskGroupsArgs) (*[]taskagent.TaskGroup, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetTaskGroups", arg0, arg1) @@ -516,13 +649,13 @@ func (m *MockTaskagentClient) GetTaskGroups(arg0 context.Context, arg1 taskagent return ret0, ret1 } -// GetTaskGroups indicates an expected call of GetTaskGroups +// GetTaskGroups indicates an expected call of GetTaskGroups. func (mr *MockTaskagentClientMockRecorder) GetTaskGroups(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTaskGroups", reflect.TypeOf((*MockTaskagentClient)(nil).GetTaskGroups), arg0, arg1) } -// GetVariableGroup mocks base method +// GetVariableGroup mocks base method. func (m *MockTaskagentClient) GetVariableGroup(arg0 context.Context, arg1 taskagent.GetVariableGroupArgs) (*taskagent.VariableGroup, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetVariableGroup", arg0, arg1) @@ -531,13 +664,13 @@ func (m *MockTaskagentClient) GetVariableGroup(arg0 context.Context, arg1 taskag return ret0, ret1 } -// GetVariableGroup indicates an expected call of GetVariableGroup +// GetVariableGroup indicates an expected call of GetVariableGroup. func (mr *MockTaskagentClientMockRecorder) GetVariableGroup(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVariableGroup", reflect.TypeOf((*MockTaskagentClient)(nil).GetVariableGroup), arg0, arg1) } -// GetVariableGroups mocks base method +// GetVariableGroups mocks base method. func (m *MockTaskagentClient) GetVariableGroups(arg0 context.Context, arg1 taskagent.GetVariableGroupsArgs) (*[]taskagent.VariableGroup, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetVariableGroups", arg0, arg1) @@ -546,13 +679,13 @@ func (m *MockTaskagentClient) GetVariableGroups(arg0 context.Context, arg1 taska return ret0, ret1 } -// GetVariableGroups indicates an expected call of GetVariableGroups +// GetVariableGroups indicates an expected call of GetVariableGroups. func (mr *MockTaskagentClientMockRecorder) GetVariableGroups(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVariableGroups", reflect.TypeOf((*MockTaskagentClient)(nil).GetVariableGroups), arg0, arg1) } -// GetVariableGroupsById mocks base method +// GetVariableGroupsById mocks base method. func (m *MockTaskagentClient) GetVariableGroupsById(arg0 context.Context, arg1 taskagent.GetVariableGroupsByIdArgs) (*[]taskagent.VariableGroup, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetVariableGroupsById", arg0, arg1) @@ -561,13 +694,28 @@ func (m *MockTaskagentClient) GetVariableGroupsById(arg0 context.Context, arg1 t return ret0, ret1 } -// GetVariableGroupsById indicates an expected call of GetVariableGroupsById +// GetVariableGroupsById indicates an expected call of GetVariableGroupsById. func (mr *MockTaskagentClientMockRecorder) GetVariableGroupsById(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVariableGroupsById", reflect.TypeOf((*MockTaskagentClient)(nil).GetVariableGroupsById), arg0, arg1) } -// GetYamlSchema mocks base method +// GetVirtualMachines mocks base method. +func (m *MockTaskagentClient) GetVirtualMachines(arg0 context.Context, arg1 taskagent.GetVirtualMachinesArgs) (*taskagent.GetVirtualMachinesResponseValue, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetVirtualMachines", arg0, arg1) + ret0, _ := ret[0].(*taskagent.GetVirtualMachinesResponseValue) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetVirtualMachines indicates an expected call of GetVirtualMachines. +func (mr *MockTaskagentClientMockRecorder) GetVirtualMachines(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVirtualMachines", reflect.TypeOf((*MockTaskagentClient)(nil).GetVirtualMachines), arg0, arg1) +} + +// GetYamlSchema mocks base method. func (m *MockTaskagentClient) GetYamlSchema(arg0 context.Context, arg1 taskagent.GetYamlSchemaArgs) (interface{}, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetYamlSchema", arg0, arg1) @@ -576,13 +724,13 @@ func (m *MockTaskagentClient) GetYamlSchema(arg0 context.Context, arg1 taskagent return ret0, ret1 } -// GetYamlSchema indicates an expected call of GetYamlSchema +// GetYamlSchema indicates an expected call of GetYamlSchema. func (mr *MockTaskagentClientMockRecorder) GetYamlSchema(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetYamlSchema", reflect.TypeOf((*MockTaskagentClient)(nil).GetYamlSchema), arg0, arg1) } -// ReplaceAgent mocks base method +// ReplaceAgent mocks base method. func (m *MockTaskagentClient) ReplaceAgent(arg0 context.Context, arg1 taskagent.ReplaceAgentArgs) (*taskagent.TaskAgent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ReplaceAgent", arg0, arg1) @@ -591,13 +739,27 @@ func (m *MockTaskagentClient) ReplaceAgent(arg0 context.Context, arg1 taskagent. return ret0, ret1 } -// ReplaceAgent indicates an expected call of ReplaceAgent +// ReplaceAgent indicates an expected call of ReplaceAgent. func (mr *MockTaskagentClientMockRecorder) ReplaceAgent(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReplaceAgent", reflect.TypeOf((*MockTaskagentClient)(nil).ReplaceAgent), arg0, arg1) } -// UpdateAgent mocks base method +// ShareVariableGroup mocks base method. +func (m *MockTaskagentClient) ShareVariableGroup(arg0 context.Context, arg1 taskagent.ShareVariableGroupArgs) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ShareVariableGroup", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ShareVariableGroup indicates an expected call of ShareVariableGroup. +func (mr *MockTaskagentClientMockRecorder) ShareVariableGroup(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ShareVariableGroup", reflect.TypeOf((*MockTaskagentClient)(nil).ShareVariableGroup), arg0, arg1) +} + +// UpdateAgent mocks base method. func (m *MockTaskagentClient) UpdateAgent(arg0 context.Context, arg1 taskagent.UpdateAgentArgs) (*taskagent.TaskAgent, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateAgent", arg0, arg1) @@ -606,13 +768,28 @@ func (m *MockTaskagentClient) UpdateAgent(arg0 context.Context, arg1 taskagent.U return ret0, ret1 } -// UpdateAgent indicates an expected call of UpdateAgent +// UpdateAgent indicates an expected call of UpdateAgent. func (mr *MockTaskagentClientMockRecorder) UpdateAgent(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAgent", reflect.TypeOf((*MockTaskagentClient)(nil).UpdateAgent), arg0, arg1) } -// UpdateAgentPool mocks base method +// UpdateAgentCloud mocks base method. +func (m *MockTaskagentClient) UpdateAgentCloud(arg0 context.Context, arg1 taskagent.UpdateAgentCloudArgs) (*taskagent.TaskAgentCloud, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateAgentCloud", arg0, arg1) + ret0, _ := ret[0].(*taskagent.TaskAgentCloud) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateAgentCloud indicates an expected call of UpdateAgentCloud. +func (mr *MockTaskagentClientMockRecorder) UpdateAgentCloud(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAgentCloud", reflect.TypeOf((*MockTaskagentClient)(nil).UpdateAgentCloud), arg0, arg1) +} + +// UpdateAgentPool mocks base method. func (m *MockTaskagentClient) UpdateAgentPool(arg0 context.Context, arg1 taskagent.UpdateAgentPoolArgs) (*taskagent.TaskAgentPool, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateAgentPool", arg0, arg1) @@ -621,13 +798,13 @@ func (m *MockTaskagentClient) UpdateAgentPool(arg0 context.Context, arg1 taskage return ret0, ret1 } -// UpdateAgentPool indicates an expected call of UpdateAgentPool +// UpdateAgentPool indicates an expected call of UpdateAgentPool. func (mr *MockTaskagentClientMockRecorder) UpdateAgentPool(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAgentPool", reflect.TypeOf((*MockTaskagentClient)(nil).UpdateAgentPool), arg0, arg1) } -// UpdateDeploymentGroup mocks base method +// UpdateDeploymentGroup mocks base method. func (m *MockTaskagentClient) UpdateDeploymentGroup(arg0 context.Context, arg1 taskagent.UpdateDeploymentGroupArgs) (*taskagent.DeploymentGroup, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateDeploymentGroup", arg0, arg1) @@ -636,13 +813,13 @@ func (m *MockTaskagentClient) UpdateDeploymentGroup(arg0 context.Context, arg1 t return ret0, ret1 } -// UpdateDeploymentGroup indicates an expected call of UpdateDeploymentGroup +// UpdateDeploymentGroup indicates an expected call of UpdateDeploymentGroup. func (mr *MockTaskagentClientMockRecorder) UpdateDeploymentGroup(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDeploymentGroup", reflect.TypeOf((*MockTaskagentClient)(nil).UpdateDeploymentGroup), arg0, arg1) } -// UpdateDeploymentTargets mocks base method +// UpdateDeploymentTargets mocks base method. func (m *MockTaskagentClient) UpdateDeploymentTargets(arg0 context.Context, arg1 taskagent.UpdateDeploymentTargetsArgs) (*[]taskagent.DeploymentMachine, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateDeploymentTargets", arg0, arg1) @@ -651,13 +828,28 @@ func (m *MockTaskagentClient) UpdateDeploymentTargets(arg0 context.Context, arg1 return ret0, ret1 } -// UpdateDeploymentTargets indicates an expected call of UpdateDeploymentTargets +// UpdateDeploymentTargets indicates an expected call of UpdateDeploymentTargets. func (mr *MockTaskagentClientMockRecorder) UpdateDeploymentTargets(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDeploymentTargets", reflect.TypeOf((*MockTaskagentClient)(nil).UpdateDeploymentTargets), arg0, arg1) } -// UpdateTaskGroup mocks base method +// UpdateEnvironment mocks base method. +func (m *MockTaskagentClient) UpdateEnvironment(arg0 context.Context, arg1 taskagent.UpdateEnvironmentArgs) (*taskagent.EnvironmentInstance, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateEnvironment", arg0, arg1) + ret0, _ := ret[0].(*taskagent.EnvironmentInstance) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateEnvironment indicates an expected call of UpdateEnvironment. +func (mr *MockTaskagentClientMockRecorder) UpdateEnvironment(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateEnvironment", reflect.TypeOf((*MockTaskagentClient)(nil).UpdateEnvironment), arg0, arg1) +} + +// UpdateTaskGroup mocks base method. func (m *MockTaskagentClient) UpdateTaskGroup(arg0 context.Context, arg1 taskagent.UpdateTaskGroupArgs) (*taskagent.TaskGroup, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateTaskGroup", arg0, arg1) @@ -666,13 +858,13 @@ func (m *MockTaskagentClient) UpdateTaskGroup(arg0 context.Context, arg1 taskage return ret0, ret1 } -// UpdateTaskGroup indicates an expected call of UpdateTaskGroup +// UpdateTaskGroup indicates an expected call of UpdateTaskGroup. func (mr *MockTaskagentClientMockRecorder) UpdateTaskGroup(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTaskGroup", reflect.TypeOf((*MockTaskagentClient)(nil).UpdateTaskGroup), arg0, arg1) } -// UpdateVariableGroup mocks base method +// UpdateVariableGroup mocks base method. func (m *MockTaskagentClient) UpdateVariableGroup(arg0 context.Context, arg1 taskagent.UpdateVariableGroupArgs) (*taskagent.VariableGroup, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateVariableGroup", arg0, arg1) @@ -681,8 +873,23 @@ func (m *MockTaskagentClient) UpdateVariableGroup(arg0 context.Context, arg1 tas return ret0, ret1 } -// UpdateVariableGroup indicates an expected call of UpdateVariableGroup +// UpdateVariableGroup indicates an expected call of UpdateVariableGroup. func (mr *MockTaskagentClientMockRecorder) UpdateVariableGroup(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateVariableGroup", reflect.TypeOf((*MockTaskagentClient)(nil).UpdateVariableGroup), arg0, arg1) } + +// UpdateVirtualMachines mocks base method. +func (m *MockTaskagentClient) UpdateVirtualMachines(arg0 context.Context, arg1 taskagent.UpdateVirtualMachinesArgs) (*[]taskagent.VirtualMachine, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateVirtualMachines", arg0, arg1) + ret0, _ := ret[0].(*[]taskagent.VirtualMachine) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateVirtualMachines indicates an expected call of UpdateVirtualMachines. +func (mr *MockTaskagentClientMockRecorder) UpdateVirtualMachines(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateVirtualMachines", reflect.TypeOf((*MockTaskagentClient)(nil).UpdateVirtualMachines), arg0, arg1) +} diff --git a/azdosdkmocks/test_sdk_mock.go b/azdosdkmocks/test_sdk_mock.go index de49d07ac..4ca024af2 100644 --- a/azdosdkmocks/test_sdk_mock.go +++ b/azdosdkmocks/test_sdk_mock.go @@ -44,13 +44,13 @@ func (m *MockTestClient) AddTestCasesToSuite(arg0 context.Context, arg1 test.Add return ret0, ret1 } -// AddTestCasesToSuite indicates an expected call of AddTestCasesToSuite +// AddTestCasesToSuite indicates an expected call of AddTestCasesToSuite. func (mr *MockTestClientMockRecorder) AddTestCasesToSuite(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddTestCasesToSuite", reflect.TypeOf((*MockTestClient)(nil).AddTestCasesToSuite), arg0, arg1) } -// AddTestResultsToTestRun mocks base method +// AddTestResultsToTestRun mocks base method. func (m *MockTestClient) AddTestResultsToTestRun(arg0 context.Context, arg1 test.AddTestResultsToTestRunArgs) (*[]test.TestCaseResult, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AddTestResultsToTestRun", arg0, arg1) @@ -59,13 +59,13 @@ func (m *MockTestClient) AddTestResultsToTestRun(arg0 context.Context, arg1 test return ret0, ret1 } -// AddTestResultsToTestRun indicates an expected call of AddTestResultsToTestRun +// AddTestResultsToTestRun indicates an expected call of AddTestResultsToTestRun. func (mr *MockTestClientMockRecorder) AddTestResultsToTestRun(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddTestResultsToTestRun", reflect.TypeOf((*MockTestClient)(nil).AddTestResultsToTestRun), arg0, arg1) } -// CreateTestResultAttachment mocks base method +// CreateTestResultAttachment mocks base method. func (m *MockTestClient) CreateTestResultAttachment(arg0 context.Context, arg1 test.CreateTestResultAttachmentArgs) (*test.TestAttachmentReference, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateTestResultAttachment", arg0, arg1) @@ -74,13 +74,13 @@ func (m *MockTestClient) CreateTestResultAttachment(arg0 context.Context, arg1 t return ret0, ret1 } -// CreateTestResultAttachment indicates an expected call of CreateTestResultAttachment +// CreateTestResultAttachment indicates an expected call of CreateTestResultAttachment. func (mr *MockTestClientMockRecorder) CreateTestResultAttachment(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTestResultAttachment", reflect.TypeOf((*MockTestClient)(nil).CreateTestResultAttachment), arg0, arg1) } -// CreateTestRun mocks base method +// CreateTestRun mocks base method. func (m *MockTestClient) CreateTestRun(arg0 context.Context, arg1 test.CreateTestRunArgs) (*test.TestRun, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateTestRun", arg0, arg1) @@ -89,13 +89,13 @@ func (m *MockTestClient) CreateTestRun(arg0 context.Context, arg1 test.CreateTes return ret0, ret1 } -// CreateTestRun indicates an expected call of CreateTestRun +// CreateTestRun indicates an expected call of CreateTestRun. func (mr *MockTestClientMockRecorder) CreateTestRun(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTestRun", reflect.TypeOf((*MockTestClient)(nil).CreateTestRun), arg0, arg1) } -// CreateTestRunAttachment mocks base method +// CreateTestRunAttachment mocks base method. func (m *MockTestClient) CreateTestRunAttachment(arg0 context.Context, arg1 test.CreateTestRunAttachmentArgs) (*test.TestAttachmentReference, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateTestRunAttachment", arg0, arg1) @@ -104,13 +104,13 @@ func (m *MockTestClient) CreateTestRunAttachment(arg0 context.Context, arg1 test return ret0, ret1 } -// CreateTestRunAttachment indicates an expected call of CreateTestRunAttachment +// CreateTestRunAttachment indicates an expected call of CreateTestRunAttachment. func (mr *MockTestClientMockRecorder) CreateTestRunAttachment(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTestRunAttachment", reflect.TypeOf((*MockTestClient)(nil).CreateTestRunAttachment), arg0, arg1) } -// CreateTestSession mocks base method +// CreateTestSession mocks base method. func (m *MockTestClient) CreateTestSession(arg0 context.Context, arg1 test.CreateTestSessionArgs) (*test.TestSession, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateTestSession", arg0, arg1) @@ -119,13 +119,13 @@ func (m *MockTestClient) CreateTestSession(arg0 context.Context, arg1 test.Creat return ret0, ret1 } -// CreateTestSession indicates an expected call of CreateTestSession +// CreateTestSession indicates an expected call of CreateTestSession. func (mr *MockTestClientMockRecorder) CreateTestSession(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTestSession", reflect.TypeOf((*MockTestClient)(nil).CreateTestSession), arg0, arg1) } -// CreateTestSubResultAttachment mocks base method +// CreateTestSubResultAttachment mocks base method. func (m *MockTestClient) CreateTestSubResultAttachment(arg0 context.Context, arg1 test.CreateTestSubResultAttachmentArgs) (*test.TestAttachmentReference, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateTestSubResultAttachment", arg0, arg1) @@ -134,13 +134,13 @@ func (m *MockTestClient) CreateTestSubResultAttachment(arg0 context.Context, arg return ret0, ret1 } -// CreateTestSubResultAttachment indicates an expected call of CreateTestSubResultAttachment +// CreateTestSubResultAttachment indicates an expected call of CreateTestSubResultAttachment. func (mr *MockTestClientMockRecorder) CreateTestSubResultAttachment(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTestSubResultAttachment", reflect.TypeOf((*MockTestClient)(nil).CreateTestSubResultAttachment), arg0, arg1) } -// DeleteTestCase mocks base method +// DeleteTestCase mocks base method. func (m *MockTestClient) DeleteTestCase(arg0 context.Context, arg1 test.DeleteTestCaseArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteTestCase", arg0, arg1) @@ -148,13 +148,13 @@ func (m *MockTestClient) DeleteTestCase(arg0 context.Context, arg1 test.DeleteTe return ret0 } -// DeleteTestCase indicates an expected call of DeleteTestCase +// DeleteTestCase indicates an expected call of DeleteTestCase. func (mr *MockTestClientMockRecorder) DeleteTestCase(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTestCase", reflect.TypeOf((*MockTestClient)(nil).DeleteTestCase), arg0, arg1) } -// DeleteTestRun mocks base method +// DeleteTestRun mocks base method. func (m *MockTestClient) DeleteTestRun(arg0 context.Context, arg1 test.DeleteTestRunArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteTestRun", arg0, arg1) @@ -162,13 +162,13 @@ func (m *MockTestClient) DeleteTestRun(arg0 context.Context, arg1 test.DeleteTes return ret0 } -// DeleteTestRun indicates an expected call of DeleteTestRun +// DeleteTestRun indicates an expected call of DeleteTestRun. func (mr *MockTestClientMockRecorder) DeleteTestRun(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTestRun", reflect.TypeOf((*MockTestClient)(nil).DeleteTestRun), arg0, arg1) } -// GetActionResults mocks base method +// GetActionResults mocks base method. func (m *MockTestClient) GetActionResults(arg0 context.Context, arg1 test.GetActionResultsArgs) (*[]test.TestActionResultModel, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetActionResults", arg0, arg1) @@ -177,13 +177,13 @@ func (m *MockTestClient) GetActionResults(arg0 context.Context, arg1 test.GetAct return ret0, ret1 } -// GetActionResults indicates an expected call of GetActionResults +// GetActionResults indicates an expected call of GetActionResults. func (mr *MockTestClientMockRecorder) GetActionResults(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetActionResults", reflect.TypeOf((*MockTestClient)(nil).GetActionResults), arg0, arg1) } -// GetBuildCodeCoverage mocks base method +// GetBuildCodeCoverage mocks base method. func (m *MockTestClient) GetBuildCodeCoverage(arg0 context.Context, arg1 test.GetBuildCodeCoverageArgs) (*[]test.BuildCoverage, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetBuildCodeCoverage", arg0, arg1) @@ -192,13 +192,13 @@ func (m *MockTestClient) GetBuildCodeCoverage(arg0 context.Context, arg1 test.Ge return ret0, ret1 } -// GetBuildCodeCoverage indicates an expected call of GetBuildCodeCoverage +// GetBuildCodeCoverage indicates an expected call of GetBuildCodeCoverage. func (mr *MockTestClientMockRecorder) GetBuildCodeCoverage(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBuildCodeCoverage", reflect.TypeOf((*MockTestClient)(nil).GetBuildCodeCoverage), arg0, arg1) } -// GetPoint mocks base method +// GetPoint mocks base method. func (m *MockTestClient) GetPoint(arg0 context.Context, arg1 test.GetPointArgs) (*test.TestPoint, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetPoint", arg0, arg1) @@ -207,13 +207,13 @@ func (m *MockTestClient) GetPoint(arg0 context.Context, arg1 test.GetPointArgs) return ret0, ret1 } -// GetPoint indicates an expected call of GetPoint +// GetPoint indicates an expected call of GetPoint. func (mr *MockTestClientMockRecorder) GetPoint(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPoint", reflect.TypeOf((*MockTestClient)(nil).GetPoint), arg0, arg1) } -// GetPoints mocks base method +// GetPoints mocks base method. func (m *MockTestClient) GetPoints(arg0 context.Context, arg1 test.GetPointsArgs) (*[]test.TestPoint, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetPoints", arg0, arg1) @@ -222,13 +222,13 @@ func (m *MockTestClient) GetPoints(arg0 context.Context, arg1 test.GetPointsArgs return ret0, ret1 } -// GetPoints indicates an expected call of GetPoints +// GetPoints indicates an expected call of GetPoints. func (mr *MockTestClientMockRecorder) GetPoints(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPoints", reflect.TypeOf((*MockTestClient)(nil).GetPoints), arg0, arg1) } -// GetPointsByQuery mocks base method +// GetPointsByQuery mocks base method. func (m *MockTestClient) GetPointsByQuery(arg0 context.Context, arg1 test.GetPointsByQueryArgs) (*test.TestPointsQuery, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetPointsByQuery", arg0, arg1) @@ -237,13 +237,13 @@ func (m *MockTestClient) GetPointsByQuery(arg0 context.Context, arg1 test.GetPoi return ret0, ret1 } -// GetPointsByQuery indicates an expected call of GetPointsByQuery +// GetPointsByQuery indicates an expected call of GetPointsByQuery. func (mr *MockTestClientMockRecorder) GetPointsByQuery(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPointsByQuery", reflect.TypeOf((*MockTestClient)(nil).GetPointsByQuery), arg0, arg1) } -// GetResultParameters mocks base method +// GetResultParameters mocks base method. func (m *MockTestClient) GetResultParameters(arg0 context.Context, arg1 test.GetResultParametersArgs) (*[]test.TestResultParameterModel, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetResultParameters", arg0, arg1) @@ -252,13 +252,13 @@ func (m *MockTestClient) GetResultParameters(arg0 context.Context, arg1 test.Get return ret0, ret1 } -// GetResultParameters indicates an expected call of GetResultParameters +// GetResultParameters indicates an expected call of GetResultParameters. func (mr *MockTestClientMockRecorder) GetResultParameters(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetResultParameters", reflect.TypeOf((*MockTestClient)(nil).GetResultParameters), arg0, arg1) } -// GetResultRetentionSettings mocks base method +// GetResultRetentionSettings mocks base method. func (m *MockTestClient) GetResultRetentionSettings(arg0 context.Context, arg1 test.GetResultRetentionSettingsArgs) (*test.ResultRetentionSettings, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetResultRetentionSettings", arg0, arg1) @@ -267,13 +267,13 @@ func (m *MockTestClient) GetResultRetentionSettings(arg0 context.Context, arg1 t return ret0, ret1 } -// GetResultRetentionSettings indicates an expected call of GetResultRetentionSettings +// GetResultRetentionSettings indicates an expected call of GetResultRetentionSettings. func (mr *MockTestClientMockRecorder) GetResultRetentionSettings(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetResultRetentionSettings", reflect.TypeOf((*MockTestClient)(nil).GetResultRetentionSettings), arg0, arg1) } -// GetTestCaseById mocks base method +// GetTestCaseById mocks base method. func (m *MockTestClient) GetTestCaseById(arg0 context.Context, arg1 test.GetTestCaseByIdArgs) (*test.SuiteTestCase, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetTestCaseById", arg0, arg1) @@ -282,13 +282,13 @@ func (m *MockTestClient) GetTestCaseById(arg0 context.Context, arg1 test.GetTest return ret0, ret1 } -// GetTestCaseById indicates an expected call of GetTestCaseById +// GetTestCaseById indicates an expected call of GetTestCaseById. func (mr *MockTestClientMockRecorder) GetTestCaseById(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTestCaseById", reflect.TypeOf((*MockTestClient)(nil).GetTestCaseById), arg0, arg1) } -// GetTestCases mocks base method +// GetTestCases mocks base method. func (m *MockTestClient) GetTestCases(arg0 context.Context, arg1 test.GetTestCasesArgs) (*[]test.SuiteTestCase, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetTestCases", arg0, arg1) @@ -297,13 +297,13 @@ func (m *MockTestClient) GetTestCases(arg0 context.Context, arg1 test.GetTestCas return ret0, ret1 } -// GetTestCases indicates an expected call of GetTestCases +// GetTestCases indicates an expected call of GetTestCases. func (mr *MockTestClientMockRecorder) GetTestCases(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTestCases", reflect.TypeOf((*MockTestClient)(nil).GetTestCases), arg0, arg1) } -// GetTestIteration mocks base method +// GetTestIteration mocks base method. func (m *MockTestClient) GetTestIteration(arg0 context.Context, arg1 test.GetTestIterationArgs) (*test.TestIterationDetailsModel, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetTestIteration", arg0, arg1) @@ -312,13 +312,13 @@ func (m *MockTestClient) GetTestIteration(arg0 context.Context, arg1 test.GetTes return ret0, ret1 } -// GetTestIteration indicates an expected call of GetTestIteration +// GetTestIteration indicates an expected call of GetTestIteration. func (mr *MockTestClientMockRecorder) GetTestIteration(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTestIteration", reflect.TypeOf((*MockTestClient)(nil).GetTestIteration), arg0, arg1) } -// GetTestIterations mocks base method +// GetTestIterations mocks base method. func (m *MockTestClient) GetTestIterations(arg0 context.Context, arg1 test.GetTestIterationsArgs) (*[]test.TestIterationDetailsModel, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetTestIterations", arg0, arg1) @@ -327,13 +327,13 @@ func (m *MockTestClient) GetTestIterations(arg0 context.Context, arg1 test.GetTe return ret0, ret1 } -// GetTestIterations indicates an expected call of GetTestIterations +// GetTestIterations indicates an expected call of GetTestIterations. func (mr *MockTestClientMockRecorder) GetTestIterations(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTestIterations", reflect.TypeOf((*MockTestClient)(nil).GetTestIterations), arg0, arg1) } -// GetTestResultAttachmentContent mocks base method +// GetTestResultAttachmentContent mocks base method. func (m *MockTestClient) GetTestResultAttachmentContent(arg0 context.Context, arg1 test.GetTestResultAttachmentContentArgs) (io.ReadCloser, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetTestResultAttachmentContent", arg0, arg1) @@ -342,13 +342,13 @@ func (m *MockTestClient) GetTestResultAttachmentContent(arg0 context.Context, ar return ret0, ret1 } -// GetTestResultAttachmentContent indicates an expected call of GetTestResultAttachmentContent +// GetTestResultAttachmentContent indicates an expected call of GetTestResultAttachmentContent. func (mr *MockTestClientMockRecorder) GetTestResultAttachmentContent(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTestResultAttachmentContent", reflect.TypeOf((*MockTestClient)(nil).GetTestResultAttachmentContent), arg0, arg1) } -// GetTestResultAttachmentZip mocks base method +// GetTestResultAttachmentZip mocks base method. func (m *MockTestClient) GetTestResultAttachmentZip(arg0 context.Context, arg1 test.GetTestResultAttachmentZipArgs) (io.ReadCloser, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetTestResultAttachmentZip", arg0, arg1) @@ -357,13 +357,13 @@ func (m *MockTestClient) GetTestResultAttachmentZip(arg0 context.Context, arg1 t return ret0, ret1 } -// GetTestResultAttachmentZip indicates an expected call of GetTestResultAttachmentZip +// GetTestResultAttachmentZip indicates an expected call of GetTestResultAttachmentZip. func (mr *MockTestClientMockRecorder) GetTestResultAttachmentZip(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTestResultAttachmentZip", reflect.TypeOf((*MockTestClient)(nil).GetTestResultAttachmentZip), arg0, arg1) } -// GetTestResultAttachments mocks base method +// GetTestResultAttachments mocks base method. func (m *MockTestClient) GetTestResultAttachments(arg0 context.Context, arg1 test.GetTestResultAttachmentsArgs) (*[]test.TestAttachment, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetTestResultAttachments", arg0, arg1) @@ -372,13 +372,13 @@ func (m *MockTestClient) GetTestResultAttachments(arg0 context.Context, arg1 tes return ret0, ret1 } -// GetTestResultAttachments indicates an expected call of GetTestResultAttachments +// GetTestResultAttachments indicates an expected call of GetTestResultAttachments. func (mr *MockTestClientMockRecorder) GetTestResultAttachments(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTestResultAttachments", reflect.TypeOf((*MockTestClient)(nil).GetTestResultAttachments), arg0, arg1) } -// GetTestResultById mocks base method +// GetTestResultById mocks base method. func (m *MockTestClient) GetTestResultById(arg0 context.Context, arg1 test.GetTestResultByIdArgs) (*test.TestCaseResult, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetTestResultById", arg0, arg1) @@ -387,13 +387,13 @@ func (m *MockTestClient) GetTestResultById(arg0 context.Context, arg1 test.GetTe return ret0, ret1 } -// GetTestResultById indicates an expected call of GetTestResultById +// GetTestResultById indicates an expected call of GetTestResultById. func (mr *MockTestClientMockRecorder) GetTestResultById(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTestResultById", reflect.TypeOf((*MockTestClient)(nil).GetTestResultById), arg0, arg1) } -// GetTestResults mocks base method +// GetTestResults mocks base method. func (m *MockTestClient) GetTestResults(arg0 context.Context, arg1 test.GetTestResultsArgs) (*[]test.TestCaseResult, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetTestResults", arg0, arg1) @@ -402,13 +402,13 @@ func (m *MockTestClient) GetTestResults(arg0 context.Context, arg1 test.GetTestR return ret0, ret1 } -// GetTestResults indicates an expected call of GetTestResults +// GetTestResults indicates an expected call of GetTestResults. func (mr *MockTestClientMockRecorder) GetTestResults(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTestResults", reflect.TypeOf((*MockTestClient)(nil).GetTestResults), arg0, arg1) } -// GetTestRunAttachmentContent mocks base method +// GetTestRunAttachmentContent mocks base method. func (m *MockTestClient) GetTestRunAttachmentContent(arg0 context.Context, arg1 test.GetTestRunAttachmentContentArgs) (io.ReadCloser, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetTestRunAttachmentContent", arg0, arg1) @@ -417,13 +417,13 @@ func (m *MockTestClient) GetTestRunAttachmentContent(arg0 context.Context, arg1 return ret0, ret1 } -// GetTestRunAttachmentContent indicates an expected call of GetTestRunAttachmentContent +// GetTestRunAttachmentContent indicates an expected call of GetTestRunAttachmentContent. func (mr *MockTestClientMockRecorder) GetTestRunAttachmentContent(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTestRunAttachmentContent", reflect.TypeOf((*MockTestClient)(nil).GetTestRunAttachmentContent), arg0, arg1) } -// GetTestRunAttachmentZip mocks base method +// GetTestRunAttachmentZip mocks base method. func (m *MockTestClient) GetTestRunAttachmentZip(arg0 context.Context, arg1 test.GetTestRunAttachmentZipArgs) (io.ReadCloser, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetTestRunAttachmentZip", arg0, arg1) @@ -432,13 +432,13 @@ func (m *MockTestClient) GetTestRunAttachmentZip(arg0 context.Context, arg1 test return ret0, ret1 } -// GetTestRunAttachmentZip indicates an expected call of GetTestRunAttachmentZip +// GetTestRunAttachmentZip indicates an expected call of GetTestRunAttachmentZip. func (mr *MockTestClientMockRecorder) GetTestRunAttachmentZip(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTestRunAttachmentZip", reflect.TypeOf((*MockTestClient)(nil).GetTestRunAttachmentZip), arg0, arg1) } -// GetTestRunAttachments mocks base method +// GetTestRunAttachments mocks base method. func (m *MockTestClient) GetTestRunAttachments(arg0 context.Context, arg1 test.GetTestRunAttachmentsArgs) (*[]test.TestAttachment, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetTestRunAttachments", arg0, arg1) @@ -447,13 +447,13 @@ func (m *MockTestClient) GetTestRunAttachments(arg0 context.Context, arg1 test.G return ret0, ret1 } -// GetTestRunAttachments indicates an expected call of GetTestRunAttachments +// GetTestRunAttachments indicates an expected call of GetTestRunAttachments. func (mr *MockTestClientMockRecorder) GetTestRunAttachments(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTestRunAttachments", reflect.TypeOf((*MockTestClient)(nil).GetTestRunAttachments), arg0, arg1) } -// GetTestRunById mocks base method +// GetTestRunById mocks base method. func (m *MockTestClient) GetTestRunById(arg0 context.Context, arg1 test.GetTestRunByIdArgs) (*test.TestRun, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetTestRunById", arg0, arg1) @@ -462,13 +462,13 @@ func (m *MockTestClient) GetTestRunById(arg0 context.Context, arg1 test.GetTestR return ret0, ret1 } -// GetTestRunById indicates an expected call of GetTestRunById +// GetTestRunById indicates an expected call of GetTestRunById. func (mr *MockTestClientMockRecorder) GetTestRunById(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTestRunById", reflect.TypeOf((*MockTestClient)(nil).GetTestRunById), arg0, arg1) } -// GetTestRunCodeCoverage mocks base method +// GetTestRunCodeCoverage mocks base method. func (m *MockTestClient) GetTestRunCodeCoverage(arg0 context.Context, arg1 test.GetTestRunCodeCoverageArgs) (*[]test.TestRunCoverage, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetTestRunCodeCoverage", arg0, arg1) @@ -477,13 +477,13 @@ func (m *MockTestClient) GetTestRunCodeCoverage(arg0 context.Context, arg1 test. return ret0, ret1 } -// GetTestRunCodeCoverage indicates an expected call of GetTestRunCodeCoverage +// GetTestRunCodeCoverage indicates an expected call of GetTestRunCodeCoverage. func (mr *MockTestClientMockRecorder) GetTestRunCodeCoverage(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTestRunCodeCoverage", reflect.TypeOf((*MockTestClient)(nil).GetTestRunCodeCoverage), arg0, arg1) } -// GetTestRunStatistics mocks base method +// GetTestRunStatistics mocks base method. func (m *MockTestClient) GetTestRunStatistics(arg0 context.Context, arg1 test.GetTestRunStatisticsArgs) (*test.TestRunStatistic, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetTestRunStatistics", arg0, arg1) @@ -492,13 +492,13 @@ func (m *MockTestClient) GetTestRunStatistics(arg0 context.Context, arg1 test.Ge return ret0, ret1 } -// GetTestRunStatistics indicates an expected call of GetTestRunStatistics +// GetTestRunStatistics indicates an expected call of GetTestRunStatistics. func (mr *MockTestClientMockRecorder) GetTestRunStatistics(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTestRunStatistics", reflect.TypeOf((*MockTestClient)(nil).GetTestRunStatistics), arg0, arg1) } -// GetTestRuns mocks base method +// GetTestRuns mocks base method. func (m *MockTestClient) GetTestRuns(arg0 context.Context, arg1 test.GetTestRunsArgs) (*[]test.TestRun, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetTestRuns", arg0, arg1) @@ -507,13 +507,13 @@ func (m *MockTestClient) GetTestRuns(arg0 context.Context, arg1 test.GetTestRuns return ret0, ret1 } -// GetTestRuns indicates an expected call of GetTestRuns +// GetTestRuns indicates an expected call of GetTestRuns. func (mr *MockTestClientMockRecorder) GetTestRuns(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTestRuns", reflect.TypeOf((*MockTestClient)(nil).GetTestRuns), arg0, arg1) } -// GetTestSessions mocks base method +// GetTestSessions mocks base method. func (m *MockTestClient) GetTestSessions(arg0 context.Context, arg1 test.GetTestSessionsArgs) (*[]test.TestSession, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetTestSessions", arg0, arg1) @@ -522,13 +522,13 @@ func (m *MockTestClient) GetTestSessions(arg0 context.Context, arg1 test.GetTest return ret0, ret1 } -// GetTestSessions indicates an expected call of GetTestSessions +// GetTestSessions indicates an expected call of GetTestSessions. func (mr *MockTestClientMockRecorder) GetTestSessions(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTestSessions", reflect.TypeOf((*MockTestClient)(nil).GetTestSessions), arg0, arg1) } -// GetTestSubResultAttachmentContent mocks base method +// GetTestSubResultAttachmentContent mocks base method. func (m *MockTestClient) GetTestSubResultAttachmentContent(arg0 context.Context, arg1 test.GetTestSubResultAttachmentContentArgs) (io.ReadCloser, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetTestSubResultAttachmentContent", arg0, arg1) @@ -537,13 +537,13 @@ func (m *MockTestClient) GetTestSubResultAttachmentContent(arg0 context.Context, return ret0, ret1 } -// GetTestSubResultAttachmentContent indicates an expected call of GetTestSubResultAttachmentContent +// GetTestSubResultAttachmentContent indicates an expected call of GetTestSubResultAttachmentContent. func (mr *MockTestClientMockRecorder) GetTestSubResultAttachmentContent(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTestSubResultAttachmentContent", reflect.TypeOf((*MockTestClient)(nil).GetTestSubResultAttachmentContent), arg0, arg1) } -// GetTestSubResultAttachmentZip mocks base method +// GetTestSubResultAttachmentZip mocks base method. func (m *MockTestClient) GetTestSubResultAttachmentZip(arg0 context.Context, arg1 test.GetTestSubResultAttachmentZipArgs) (io.ReadCloser, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetTestSubResultAttachmentZip", arg0, arg1) @@ -552,13 +552,13 @@ func (m *MockTestClient) GetTestSubResultAttachmentZip(arg0 context.Context, arg return ret0, ret1 } -// GetTestSubResultAttachmentZip indicates an expected call of GetTestSubResultAttachmentZip +// GetTestSubResultAttachmentZip indicates an expected call of GetTestSubResultAttachmentZip. func (mr *MockTestClientMockRecorder) GetTestSubResultAttachmentZip(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTestSubResultAttachmentZip", reflect.TypeOf((*MockTestClient)(nil).GetTestSubResultAttachmentZip), arg0, arg1) } -// GetTestSubResultAttachments mocks base method +// GetTestSubResultAttachments mocks base method. func (m *MockTestClient) GetTestSubResultAttachments(arg0 context.Context, arg1 test.GetTestSubResultAttachmentsArgs) (*[]test.TestAttachment, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetTestSubResultAttachments", arg0, arg1) @@ -567,13 +567,13 @@ func (m *MockTestClient) GetTestSubResultAttachments(arg0 context.Context, arg1 return ret0, ret1 } -// GetTestSubResultAttachments indicates an expected call of GetTestSubResultAttachments +// GetTestSubResultAttachments indicates an expected call of GetTestSubResultAttachments. func (mr *MockTestClientMockRecorder) GetTestSubResultAttachments(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTestSubResultAttachments", reflect.TypeOf((*MockTestClient)(nil).GetTestSubResultAttachments), arg0, arg1) } -// QueryTestHistory mocks base method +// QueryTestHistory mocks base method. func (m *MockTestClient) QueryTestHistory(arg0 context.Context, arg1 test.QueryTestHistoryArgs) (*test.TestHistoryQuery, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "QueryTestHistory", arg0, arg1) @@ -582,13 +582,13 @@ func (m *MockTestClient) QueryTestHistory(arg0 context.Context, arg1 test.QueryT return ret0, ret1 } -// QueryTestHistory indicates an expected call of QueryTestHistory +// QueryTestHistory indicates an expected call of QueryTestHistory. func (mr *MockTestClientMockRecorder) QueryTestHistory(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryTestHistory", reflect.TypeOf((*MockTestClient)(nil).QueryTestHistory), arg0, arg1) } -// QueryTestRuns mocks base method +// QueryTestRuns mocks base method. func (m *MockTestClient) QueryTestRuns(arg0 context.Context, arg1 test.QueryTestRunsArgs) (*test.QueryTestRunsResponseValue, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "QueryTestRuns", arg0, arg1) @@ -597,13 +597,13 @@ func (m *MockTestClient) QueryTestRuns(arg0 context.Context, arg1 test.QueryTest return ret0, ret1 } -// QueryTestRuns indicates an expected call of QueryTestRuns +// QueryTestRuns indicates an expected call of QueryTestRuns. func (mr *MockTestClientMockRecorder) QueryTestRuns(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryTestRuns", reflect.TypeOf((*MockTestClient)(nil).QueryTestRuns), arg0, arg1) } -// RemoveTestCasesFromSuiteUrl mocks base method +// RemoveTestCasesFromSuiteUrl mocks base method. func (m *MockTestClient) RemoveTestCasesFromSuiteUrl(arg0 context.Context, arg1 test.RemoveTestCasesFromSuiteUrlArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "RemoveTestCasesFromSuiteUrl", arg0, arg1) @@ -611,13 +611,13 @@ func (m *MockTestClient) RemoveTestCasesFromSuiteUrl(arg0 context.Context, arg1 return ret0 } -// RemoveTestCasesFromSuiteUrl indicates an expected call of RemoveTestCasesFromSuiteUrl +// RemoveTestCasesFromSuiteUrl indicates an expected call of RemoveTestCasesFromSuiteUrl. func (mr *MockTestClientMockRecorder) RemoveTestCasesFromSuiteUrl(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveTestCasesFromSuiteUrl", reflect.TypeOf((*MockTestClient)(nil).RemoveTestCasesFromSuiteUrl), arg0, arg1) } -// UpdateResultRetentionSettings mocks base method +// UpdateResultRetentionSettings mocks base method. func (m *MockTestClient) UpdateResultRetentionSettings(arg0 context.Context, arg1 test.UpdateResultRetentionSettingsArgs) (*test.ResultRetentionSettings, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateResultRetentionSettings", arg0, arg1) @@ -626,13 +626,13 @@ func (m *MockTestClient) UpdateResultRetentionSettings(arg0 context.Context, arg return ret0, ret1 } -// UpdateResultRetentionSettings indicates an expected call of UpdateResultRetentionSettings +// UpdateResultRetentionSettings indicates an expected call of UpdateResultRetentionSettings. func (mr *MockTestClientMockRecorder) UpdateResultRetentionSettings(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateResultRetentionSettings", reflect.TypeOf((*MockTestClient)(nil).UpdateResultRetentionSettings), arg0, arg1) } -// UpdateSuiteTestCases mocks base method +// UpdateSuiteTestCases mocks base method. func (m *MockTestClient) UpdateSuiteTestCases(arg0 context.Context, arg1 test.UpdateSuiteTestCasesArgs) (*[]test.SuiteTestCase, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateSuiteTestCases", arg0, arg1) @@ -641,13 +641,13 @@ func (m *MockTestClient) UpdateSuiteTestCases(arg0 context.Context, arg1 test.Up return ret0, ret1 } -// UpdateSuiteTestCases indicates an expected call of UpdateSuiteTestCases +// UpdateSuiteTestCases indicates an expected call of UpdateSuiteTestCases. func (mr *MockTestClientMockRecorder) UpdateSuiteTestCases(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSuiteTestCases", reflect.TypeOf((*MockTestClient)(nil).UpdateSuiteTestCases), arg0, arg1) } -// UpdateTestPoints mocks base method +// UpdateTestPoints mocks base method. func (m *MockTestClient) UpdateTestPoints(arg0 context.Context, arg1 test.UpdateTestPointsArgs) (*[]test.TestPoint, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateTestPoints", arg0, arg1) @@ -656,13 +656,13 @@ func (m *MockTestClient) UpdateTestPoints(arg0 context.Context, arg1 test.Update return ret0, ret1 } -// UpdateTestPoints indicates an expected call of UpdateTestPoints +// UpdateTestPoints indicates an expected call of UpdateTestPoints. func (mr *MockTestClientMockRecorder) UpdateTestPoints(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTestPoints", reflect.TypeOf((*MockTestClient)(nil).UpdateTestPoints), arg0, arg1) } -// UpdateTestResults mocks base method +// UpdateTestResults mocks base method. func (m *MockTestClient) UpdateTestResults(arg0 context.Context, arg1 test.UpdateTestResultsArgs) (*[]test.TestCaseResult, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateTestResults", arg0, arg1) @@ -671,13 +671,13 @@ func (m *MockTestClient) UpdateTestResults(arg0 context.Context, arg1 test.Updat return ret0, ret1 } -// UpdateTestResults indicates an expected call of UpdateTestResults +// UpdateTestResults indicates an expected call of UpdateTestResults. func (mr *MockTestClientMockRecorder) UpdateTestResults(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTestResults", reflect.TypeOf((*MockTestClient)(nil).UpdateTestResults), arg0, arg1) } -// UpdateTestRun mocks base method +// UpdateTestRun mocks base method. func (m *MockTestClient) UpdateTestRun(arg0 context.Context, arg1 test.UpdateTestRunArgs) (*test.TestRun, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateTestRun", arg0, arg1) @@ -686,13 +686,13 @@ func (m *MockTestClient) UpdateTestRun(arg0 context.Context, arg1 test.UpdateTes return ret0, ret1 } -// UpdateTestRun indicates an expected call of UpdateTestRun +// UpdateTestRun indicates an expected call of UpdateTestRun. func (mr *MockTestClientMockRecorder) UpdateTestRun(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTestRun", reflect.TypeOf((*MockTestClient)(nil).UpdateTestRun), arg0, arg1) } -// UpdateTestSession mocks base method +// UpdateTestSession mocks base method. func (m *MockTestClient) UpdateTestSession(arg0 context.Context, arg1 test.UpdateTestSessionArgs) (*test.TestSession, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateTestSession", arg0, arg1) @@ -701,7 +701,7 @@ func (m *MockTestClient) UpdateTestSession(arg0 context.Context, arg1 test.Updat return ret0, ret1 } -// UpdateTestSession indicates an expected call of UpdateTestSession +// UpdateTestSession indicates an expected call of UpdateTestSession. func (mr *MockTestClientMockRecorder) UpdateTestSession(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTestSession", reflect.TypeOf((*MockTestClient)(nil).UpdateTestSession), arg0, arg1) diff --git a/azdosdkmocks/workitemtracking_sdk_mock.go b/azdosdkmocks/workitemtracking_sdk_mock.go index 1b6335f78..aab2f0996 100644 --- a/azdosdkmocks/workitemtracking_sdk_mock.go +++ b/azdosdkmocks/workitemtracking_sdk_mock.go @@ -45,13 +45,13 @@ func (m *MockWorkitemtrackingClient) AddComment(arg0 context.Context, arg1 worki return ret0, ret1 } -// AddComment indicates an expected call of AddComment +// AddComment indicates an expected call of AddComment. func (mr *MockWorkitemtrackingClientMockRecorder) AddComment(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddComment", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).AddComment), arg0, arg1) } -// CreateAttachment mocks base method +// CreateAttachment mocks base method. func (m *MockWorkitemtrackingClient) CreateAttachment(arg0 context.Context, arg1 workitemtracking.CreateAttachmentArgs) (*workitemtracking.AttachmentReference, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateAttachment", arg0, arg1) @@ -60,13 +60,13 @@ func (m *MockWorkitemtrackingClient) CreateAttachment(arg0 context.Context, arg1 return ret0, ret1 } -// CreateAttachment indicates an expected call of CreateAttachment +// CreateAttachment indicates an expected call of CreateAttachment. func (mr *MockWorkitemtrackingClientMockRecorder) CreateAttachment(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAttachment", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).CreateAttachment), arg0, arg1) } -// CreateCommentReaction mocks base method +// CreateCommentReaction mocks base method. func (m *MockWorkitemtrackingClient) CreateCommentReaction(arg0 context.Context, arg1 workitemtracking.CreateCommentReactionArgs) (*workitemtracking.CommentReaction, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateCommentReaction", arg0, arg1) @@ -75,13 +75,13 @@ func (m *MockWorkitemtrackingClient) CreateCommentReaction(arg0 context.Context, return ret0, ret1 } -// CreateCommentReaction indicates an expected call of CreateCommentReaction +// CreateCommentReaction indicates an expected call of CreateCommentReaction. func (mr *MockWorkitemtrackingClientMockRecorder) CreateCommentReaction(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCommentReaction", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).CreateCommentReaction), arg0, arg1) } -// CreateField mocks base method +// CreateField mocks base method. func (m *MockWorkitemtrackingClient) CreateField(arg0 context.Context, arg1 workitemtracking.CreateFieldArgs) (*workitemtracking.WorkItemField, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateField", arg0, arg1) @@ -90,13 +90,13 @@ func (m *MockWorkitemtrackingClient) CreateField(arg0 context.Context, arg1 work return ret0, ret1 } -// CreateField indicates an expected call of CreateField +// CreateField indicates an expected call of CreateField. func (mr *MockWorkitemtrackingClientMockRecorder) CreateField(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateField", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).CreateField), arg0, arg1) } -// CreateOrUpdateClassificationNode mocks base method +// CreateOrUpdateClassificationNode mocks base method. func (m *MockWorkitemtrackingClient) CreateOrUpdateClassificationNode(arg0 context.Context, arg1 workitemtracking.CreateOrUpdateClassificationNodeArgs) (*workitemtracking.WorkItemClassificationNode, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateOrUpdateClassificationNode", arg0, arg1) @@ -105,13 +105,13 @@ func (m *MockWorkitemtrackingClient) CreateOrUpdateClassificationNode(arg0 conte return ret0, ret1 } -// CreateOrUpdateClassificationNode indicates an expected call of CreateOrUpdateClassificationNode +// CreateOrUpdateClassificationNode indicates an expected call of CreateOrUpdateClassificationNode. func (mr *MockWorkitemtrackingClientMockRecorder) CreateOrUpdateClassificationNode(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOrUpdateClassificationNode", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).CreateOrUpdateClassificationNode), arg0, arg1) } -// CreateQuery mocks base method +// CreateQuery mocks base method. func (m *MockWorkitemtrackingClient) CreateQuery(arg0 context.Context, arg1 workitemtracking.CreateQueryArgs) (*workitemtracking.QueryHierarchyItem, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateQuery", arg0, arg1) @@ -120,13 +120,13 @@ func (m *MockWorkitemtrackingClient) CreateQuery(arg0 context.Context, arg1 work return ret0, ret1 } -// CreateQuery indicates an expected call of CreateQuery +// CreateQuery indicates an expected call of CreateQuery. func (mr *MockWorkitemtrackingClientMockRecorder) CreateQuery(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateQuery", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).CreateQuery), arg0, arg1) } -// CreateTemplate mocks base method +// CreateTemplate mocks base method. func (m *MockWorkitemtrackingClient) CreateTemplate(arg0 context.Context, arg1 workitemtracking.CreateTemplateArgs) (*workitemtracking.WorkItemTemplate, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateTemplate", arg0, arg1) @@ -135,13 +135,13 @@ func (m *MockWorkitemtrackingClient) CreateTemplate(arg0 context.Context, arg1 w return ret0, ret1 } -// CreateTemplate indicates an expected call of CreateTemplate +// CreateTemplate indicates an expected call of CreateTemplate. func (mr *MockWorkitemtrackingClientMockRecorder) CreateTemplate(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTemplate", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).CreateTemplate), arg0, arg1) } -// CreateWorkItem mocks base method +// CreateWorkItem mocks base method. func (m *MockWorkitemtrackingClient) CreateWorkItem(arg0 context.Context, arg1 workitemtracking.CreateWorkItemArgs) (*workitemtracking.WorkItem, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateWorkItem", arg0, arg1) @@ -150,13 +150,13 @@ func (m *MockWorkitemtrackingClient) CreateWorkItem(arg0 context.Context, arg1 w return ret0, ret1 } -// CreateWorkItem indicates an expected call of CreateWorkItem +// CreateWorkItem indicates an expected call of CreateWorkItem. func (mr *MockWorkitemtrackingClientMockRecorder) CreateWorkItem(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateWorkItem", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).CreateWorkItem), arg0, arg1) } -// DeleteClassificationNode mocks base method +// DeleteClassificationNode mocks base method. func (m *MockWorkitemtrackingClient) DeleteClassificationNode(arg0 context.Context, arg1 workitemtracking.DeleteClassificationNodeArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteClassificationNode", arg0, arg1) @@ -164,13 +164,13 @@ func (m *MockWorkitemtrackingClient) DeleteClassificationNode(arg0 context.Conte return ret0 } -// DeleteClassificationNode indicates an expected call of DeleteClassificationNode +// DeleteClassificationNode indicates an expected call of DeleteClassificationNode. func (mr *MockWorkitemtrackingClientMockRecorder) DeleteClassificationNode(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteClassificationNode", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).DeleteClassificationNode), arg0, arg1) } -// DeleteComment mocks base method +// DeleteComment mocks base method. func (m *MockWorkitemtrackingClient) DeleteComment(arg0 context.Context, arg1 workitemtracking.DeleteCommentArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteComment", arg0, arg1) @@ -178,13 +178,13 @@ func (m *MockWorkitemtrackingClient) DeleteComment(arg0 context.Context, arg1 wo return ret0 } -// DeleteComment indicates an expected call of DeleteComment +// DeleteComment indicates an expected call of DeleteComment. func (mr *MockWorkitemtrackingClientMockRecorder) DeleteComment(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteComment", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).DeleteComment), arg0, arg1) } -// DeleteCommentReaction mocks base method +// DeleteCommentReaction mocks base method. func (m *MockWorkitemtrackingClient) DeleteCommentReaction(arg0 context.Context, arg1 workitemtracking.DeleteCommentReactionArgs) (*workitemtracking.CommentReaction, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteCommentReaction", arg0, arg1) @@ -193,13 +193,13 @@ func (m *MockWorkitemtrackingClient) DeleteCommentReaction(arg0 context.Context, return ret0, ret1 } -// DeleteCommentReaction indicates an expected call of DeleteCommentReaction +// DeleteCommentReaction indicates an expected call of DeleteCommentReaction. func (mr *MockWorkitemtrackingClientMockRecorder) DeleteCommentReaction(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCommentReaction", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).DeleteCommentReaction), arg0, arg1) } -// DeleteField mocks base method +// DeleteField mocks base method. func (m *MockWorkitemtrackingClient) DeleteField(arg0 context.Context, arg1 workitemtracking.DeleteFieldArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteField", arg0, arg1) @@ -207,13 +207,13 @@ func (m *MockWorkitemtrackingClient) DeleteField(arg0 context.Context, arg1 work return ret0 } -// DeleteField indicates an expected call of DeleteField +// DeleteField indicates an expected call of DeleteField. func (mr *MockWorkitemtrackingClientMockRecorder) DeleteField(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteField", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).DeleteField), arg0, arg1) } -// DeleteQuery mocks base method +// DeleteQuery mocks base method. func (m *MockWorkitemtrackingClient) DeleteQuery(arg0 context.Context, arg1 workitemtracking.DeleteQueryArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteQuery", arg0, arg1) @@ -221,13 +221,27 @@ func (m *MockWorkitemtrackingClient) DeleteQuery(arg0 context.Context, arg1 work return ret0 } -// DeleteQuery indicates an expected call of DeleteQuery +// DeleteQuery indicates an expected call of DeleteQuery. func (mr *MockWorkitemtrackingClientMockRecorder) DeleteQuery(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteQuery", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).DeleteQuery), arg0, arg1) } -// DeleteTemplate mocks base method +// DeleteTag mocks base method. +func (m *MockWorkitemtrackingClient) DeleteTag(arg0 context.Context, arg1 workitemtracking.DeleteTagArgs) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteTag", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DeleteTag indicates an expected call of DeleteTag. +func (mr *MockWorkitemtrackingClientMockRecorder) DeleteTag(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTag", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).DeleteTag), arg0, arg1) +} + +// DeleteTemplate mocks base method. func (m *MockWorkitemtrackingClient) DeleteTemplate(arg0 context.Context, arg1 workitemtracking.DeleteTemplateArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteTemplate", arg0, arg1) @@ -235,13 +249,13 @@ func (m *MockWorkitemtrackingClient) DeleteTemplate(arg0 context.Context, arg1 w return ret0 } -// DeleteTemplate indicates an expected call of DeleteTemplate +// DeleteTemplate indicates an expected call of DeleteTemplate. func (mr *MockWorkitemtrackingClientMockRecorder) DeleteTemplate(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTemplate", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).DeleteTemplate), arg0, arg1) } -// DeleteWorkItem mocks base method +// DeleteWorkItem mocks base method. func (m *MockWorkitemtrackingClient) DeleteWorkItem(arg0 context.Context, arg1 workitemtracking.DeleteWorkItemArgs) (*workitemtracking.WorkItemDelete, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteWorkItem", arg0, arg1) @@ -250,13 +264,13 @@ func (m *MockWorkitemtrackingClient) DeleteWorkItem(arg0 context.Context, arg1 w return ret0, ret1 } -// DeleteWorkItem indicates an expected call of DeleteWorkItem +// DeleteWorkItem indicates an expected call of DeleteWorkItem. func (mr *MockWorkitemtrackingClientMockRecorder) DeleteWorkItem(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteWorkItem", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).DeleteWorkItem), arg0, arg1) } -// DestroyWorkItem mocks base method +// DestroyWorkItem mocks base method. func (m *MockWorkitemtrackingClient) DestroyWorkItem(arg0 context.Context, arg1 workitemtracking.DestroyWorkItemArgs) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DestroyWorkItem", arg0, arg1) @@ -264,13 +278,13 @@ func (m *MockWorkitemtrackingClient) DestroyWorkItem(arg0 context.Context, arg1 return ret0 } -// DestroyWorkItem indicates an expected call of DestroyWorkItem +// DestroyWorkItem indicates an expected call of DestroyWorkItem. func (mr *MockWorkitemtrackingClientMockRecorder) DestroyWorkItem(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DestroyWorkItem", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).DestroyWorkItem), arg0, arg1) } -// GetAttachmentContent mocks base method +// GetAttachmentContent mocks base method. func (m *MockWorkitemtrackingClient) GetAttachmentContent(arg0 context.Context, arg1 workitemtracking.GetAttachmentContentArgs) (io.ReadCloser, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetAttachmentContent", arg0, arg1) @@ -279,13 +293,13 @@ func (m *MockWorkitemtrackingClient) GetAttachmentContent(arg0 context.Context, return ret0, ret1 } -// GetAttachmentContent indicates an expected call of GetAttachmentContent +// GetAttachmentContent indicates an expected call of GetAttachmentContent. func (mr *MockWorkitemtrackingClientMockRecorder) GetAttachmentContent(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAttachmentContent", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).GetAttachmentContent), arg0, arg1) } -// GetAttachmentZip mocks base method +// GetAttachmentZip mocks base method. func (m *MockWorkitemtrackingClient) GetAttachmentZip(arg0 context.Context, arg1 workitemtracking.GetAttachmentZipArgs) (io.ReadCloser, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetAttachmentZip", arg0, arg1) @@ -294,13 +308,13 @@ func (m *MockWorkitemtrackingClient) GetAttachmentZip(arg0 context.Context, arg1 return ret0, ret1 } -// GetAttachmentZip indicates an expected call of GetAttachmentZip +// GetAttachmentZip indicates an expected call of GetAttachmentZip. func (mr *MockWorkitemtrackingClientMockRecorder) GetAttachmentZip(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAttachmentZip", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).GetAttachmentZip), arg0, arg1) } -// GetClassificationNode mocks base method +// GetClassificationNode mocks base method. func (m *MockWorkitemtrackingClient) GetClassificationNode(arg0 context.Context, arg1 workitemtracking.GetClassificationNodeArgs) (*workitemtracking.WorkItemClassificationNode, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetClassificationNode", arg0, arg1) @@ -309,13 +323,13 @@ func (m *MockWorkitemtrackingClient) GetClassificationNode(arg0 context.Context, return ret0, ret1 } -// GetClassificationNode indicates an expected call of GetClassificationNode +// GetClassificationNode indicates an expected call of GetClassificationNode. func (mr *MockWorkitemtrackingClientMockRecorder) GetClassificationNode(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetClassificationNode", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).GetClassificationNode), arg0, arg1) } -// GetClassificationNodes mocks base method +// GetClassificationNodes mocks base method. func (m *MockWorkitemtrackingClient) GetClassificationNodes(arg0 context.Context, arg1 workitemtracking.GetClassificationNodesArgs) (*[]workitemtracking.WorkItemClassificationNode, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetClassificationNodes", arg0, arg1) @@ -324,13 +338,13 @@ func (m *MockWorkitemtrackingClient) GetClassificationNodes(arg0 context.Context return ret0, ret1 } -// GetClassificationNodes indicates an expected call of GetClassificationNodes +// GetClassificationNodes indicates an expected call of GetClassificationNodes. func (mr *MockWorkitemtrackingClientMockRecorder) GetClassificationNodes(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetClassificationNodes", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).GetClassificationNodes), arg0, arg1) } -// GetComment mocks base method +// GetComment mocks base method. func (m *MockWorkitemtrackingClient) GetComment(arg0 context.Context, arg1 workitemtracking.GetCommentArgs) (*workitemtracking.Comment, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetComment", arg0, arg1) @@ -339,13 +353,13 @@ func (m *MockWorkitemtrackingClient) GetComment(arg0 context.Context, arg1 worki return ret0, ret1 } -// GetComment indicates an expected call of GetComment +// GetComment indicates an expected call of GetComment. func (mr *MockWorkitemtrackingClientMockRecorder) GetComment(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetComment", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).GetComment), arg0, arg1) } -// GetCommentReactions mocks base method +// GetCommentReactions mocks base method. func (m *MockWorkitemtrackingClient) GetCommentReactions(arg0 context.Context, arg1 workitemtracking.GetCommentReactionsArgs) (*[]workitemtracking.CommentReaction, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetCommentReactions", arg0, arg1) @@ -354,13 +368,13 @@ func (m *MockWorkitemtrackingClient) GetCommentReactions(arg0 context.Context, a return ret0, ret1 } -// GetCommentReactions indicates an expected call of GetCommentReactions +// GetCommentReactions indicates an expected call of GetCommentReactions. func (mr *MockWorkitemtrackingClientMockRecorder) GetCommentReactions(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCommentReactions", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).GetCommentReactions), arg0, arg1) } -// GetCommentVersion mocks base method +// GetCommentVersion mocks base method. func (m *MockWorkitemtrackingClient) GetCommentVersion(arg0 context.Context, arg1 workitemtracking.GetCommentVersionArgs) (*workitemtracking.CommentVersion, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetCommentVersion", arg0, arg1) @@ -369,13 +383,13 @@ func (m *MockWorkitemtrackingClient) GetCommentVersion(arg0 context.Context, arg return ret0, ret1 } -// GetCommentVersion indicates an expected call of GetCommentVersion +// GetCommentVersion indicates an expected call of GetCommentVersion. func (mr *MockWorkitemtrackingClientMockRecorder) GetCommentVersion(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCommentVersion", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).GetCommentVersion), arg0, arg1) } -// GetCommentVersions mocks base method +// GetCommentVersions mocks base method. func (m *MockWorkitemtrackingClient) GetCommentVersions(arg0 context.Context, arg1 workitemtracking.GetCommentVersionsArgs) (*[]workitemtracking.CommentVersion, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetCommentVersions", arg0, arg1) @@ -384,13 +398,13 @@ func (m *MockWorkitemtrackingClient) GetCommentVersions(arg0 context.Context, ar return ret0, ret1 } -// GetCommentVersions indicates an expected call of GetCommentVersions +// GetCommentVersions indicates an expected call of GetCommentVersions. func (mr *MockWorkitemtrackingClientMockRecorder) GetCommentVersions(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCommentVersions", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).GetCommentVersions), arg0, arg1) } -// GetComments mocks base method +// GetComments mocks base method. func (m *MockWorkitemtrackingClient) GetComments(arg0 context.Context, arg1 workitemtracking.GetCommentsArgs) (*workitemtracking.CommentList, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetComments", arg0, arg1) @@ -399,13 +413,13 @@ func (m *MockWorkitemtrackingClient) GetComments(arg0 context.Context, arg1 work return ret0, ret1 } -// GetComments indicates an expected call of GetComments +// GetComments indicates an expected call of GetComments. func (mr *MockWorkitemtrackingClientMockRecorder) GetComments(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetComments", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).GetComments), arg0, arg1) } -// GetCommentsBatch mocks base method +// GetCommentsBatch mocks base method. func (m *MockWorkitemtrackingClient) GetCommentsBatch(arg0 context.Context, arg1 workitemtracking.GetCommentsBatchArgs) (*workitemtracking.CommentList, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetCommentsBatch", arg0, arg1) @@ -414,13 +428,13 @@ func (m *MockWorkitemtrackingClient) GetCommentsBatch(arg0 context.Context, arg1 return ret0, ret1 } -// GetCommentsBatch indicates an expected call of GetCommentsBatch +// GetCommentsBatch indicates an expected call of GetCommentsBatch. func (mr *MockWorkitemtrackingClientMockRecorder) GetCommentsBatch(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCommentsBatch", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).GetCommentsBatch), arg0, arg1) } -// GetDeletedWorkItem mocks base method +// GetDeletedWorkItem mocks base method. func (m *MockWorkitemtrackingClient) GetDeletedWorkItem(arg0 context.Context, arg1 workitemtracking.GetDeletedWorkItemArgs) (*workitemtracking.WorkItemDelete, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetDeletedWorkItem", arg0, arg1) @@ -429,13 +443,13 @@ func (m *MockWorkitemtrackingClient) GetDeletedWorkItem(arg0 context.Context, ar return ret0, ret1 } -// GetDeletedWorkItem indicates an expected call of GetDeletedWorkItem +// GetDeletedWorkItem indicates an expected call of GetDeletedWorkItem. func (mr *MockWorkitemtrackingClientMockRecorder) GetDeletedWorkItem(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDeletedWorkItem", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).GetDeletedWorkItem), arg0, arg1) } -// GetDeletedWorkItemShallowReferences mocks base method +// GetDeletedWorkItemShallowReferences mocks base method. func (m *MockWorkitemtrackingClient) GetDeletedWorkItemShallowReferences(arg0 context.Context, arg1 workitemtracking.GetDeletedWorkItemShallowReferencesArgs) (*[]workitemtracking.WorkItemDeleteShallowReference, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetDeletedWorkItemShallowReferences", arg0, arg1) @@ -444,13 +458,13 @@ func (m *MockWorkitemtrackingClient) GetDeletedWorkItemShallowReferences(arg0 co return ret0, ret1 } -// GetDeletedWorkItemShallowReferences indicates an expected call of GetDeletedWorkItemShallowReferences +// GetDeletedWorkItemShallowReferences indicates an expected call of GetDeletedWorkItemShallowReferences. func (mr *MockWorkitemtrackingClientMockRecorder) GetDeletedWorkItemShallowReferences(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDeletedWorkItemShallowReferences", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).GetDeletedWorkItemShallowReferences), arg0, arg1) } -// GetDeletedWorkItems mocks base method +// GetDeletedWorkItems mocks base method. func (m *MockWorkitemtrackingClient) GetDeletedWorkItems(arg0 context.Context, arg1 workitemtracking.GetDeletedWorkItemsArgs) (*[]workitemtracking.WorkItemDeleteReference, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetDeletedWorkItems", arg0, arg1) @@ -459,13 +473,13 @@ func (m *MockWorkitemtrackingClient) GetDeletedWorkItems(arg0 context.Context, a return ret0, ret1 } -// GetDeletedWorkItems indicates an expected call of GetDeletedWorkItems +// GetDeletedWorkItems indicates an expected call of GetDeletedWorkItems. func (mr *MockWorkitemtrackingClientMockRecorder) GetDeletedWorkItems(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDeletedWorkItems", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).GetDeletedWorkItems), arg0, arg1) } -// GetEngagedUsers mocks base method +// GetEngagedUsers mocks base method. func (m *MockWorkitemtrackingClient) GetEngagedUsers(arg0 context.Context, arg1 workitemtracking.GetEngagedUsersArgs) (*[]webapi.IdentityRef, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetEngagedUsers", arg0, arg1) @@ -474,13 +488,13 @@ func (m *MockWorkitemtrackingClient) GetEngagedUsers(arg0 context.Context, arg1 return ret0, ret1 } -// GetEngagedUsers indicates an expected call of GetEngagedUsers +// GetEngagedUsers indicates an expected call of GetEngagedUsers. func (mr *MockWorkitemtrackingClientMockRecorder) GetEngagedUsers(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEngagedUsers", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).GetEngagedUsers), arg0, arg1) } -// GetField mocks base method +// GetField mocks base method. func (m *MockWorkitemtrackingClient) GetField(arg0 context.Context, arg1 workitemtracking.GetFieldArgs) (*workitemtracking.WorkItemField, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetField", arg0, arg1) @@ -489,13 +503,13 @@ func (m *MockWorkitemtrackingClient) GetField(arg0 context.Context, arg1 workite return ret0, ret1 } -// GetField indicates an expected call of GetField +// GetField indicates an expected call of GetField. func (mr *MockWorkitemtrackingClientMockRecorder) GetField(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetField", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).GetField), arg0, arg1) } -// GetFields mocks base method +// GetFields mocks base method. func (m *MockWorkitemtrackingClient) GetFields(arg0 context.Context, arg1 workitemtracking.GetFieldsArgs) (*[]workitemtracking.WorkItemField, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetFields", arg0, arg1) @@ -504,13 +518,13 @@ func (m *MockWorkitemtrackingClient) GetFields(arg0 context.Context, arg1 workit return ret0, ret1 } -// GetFields indicates an expected call of GetFields +// GetFields indicates an expected call of GetFields. func (mr *MockWorkitemtrackingClientMockRecorder) GetFields(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFields", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).GetFields), arg0, arg1) } -// GetQueries mocks base method +// GetQueries mocks base method. func (m *MockWorkitemtrackingClient) GetQueries(arg0 context.Context, arg1 workitemtracking.GetQueriesArgs) (*[]workitemtracking.QueryHierarchyItem, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetQueries", arg0, arg1) @@ -519,13 +533,13 @@ func (m *MockWorkitemtrackingClient) GetQueries(arg0 context.Context, arg1 worki return ret0, ret1 } -// GetQueries indicates an expected call of GetQueries +// GetQueries indicates an expected call of GetQueries. func (mr *MockWorkitemtrackingClientMockRecorder) GetQueries(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetQueries", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).GetQueries), arg0, arg1) } -// GetQueriesBatch mocks base method +// GetQueriesBatch mocks base method. func (m *MockWorkitemtrackingClient) GetQueriesBatch(arg0 context.Context, arg1 workitemtracking.GetQueriesBatchArgs) (*[]workitemtracking.QueryHierarchyItem, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetQueriesBatch", arg0, arg1) @@ -534,13 +548,13 @@ func (m *MockWorkitemtrackingClient) GetQueriesBatch(arg0 context.Context, arg1 return ret0, ret1 } -// GetQueriesBatch indicates an expected call of GetQueriesBatch +// GetQueriesBatch indicates an expected call of GetQueriesBatch. func (mr *MockWorkitemtrackingClientMockRecorder) GetQueriesBatch(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetQueriesBatch", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).GetQueriesBatch), arg0, arg1) } -// GetQuery mocks base method +// GetQuery mocks base method. func (m *MockWorkitemtrackingClient) GetQuery(arg0 context.Context, arg1 workitemtracking.GetQueryArgs) (*workitemtracking.QueryHierarchyItem, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetQuery", arg0, arg1) @@ -549,13 +563,13 @@ func (m *MockWorkitemtrackingClient) GetQuery(arg0 context.Context, arg1 workite return ret0, ret1 } -// GetQuery indicates an expected call of GetQuery +// GetQuery indicates an expected call of GetQuery. func (mr *MockWorkitemtrackingClientMockRecorder) GetQuery(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetQuery", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).GetQuery), arg0, arg1) } -// GetQueryResultCount mocks base method +// GetQueryResultCount mocks base method. func (m *MockWorkitemtrackingClient) GetQueryResultCount(arg0 context.Context, arg1 workitemtracking.GetQueryResultCountArgs) (*int, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetQueryResultCount", arg0, arg1) @@ -564,13 +578,13 @@ func (m *MockWorkitemtrackingClient) GetQueryResultCount(arg0 context.Context, a return ret0, ret1 } -// GetQueryResultCount indicates an expected call of GetQueryResultCount +// GetQueryResultCount indicates an expected call of GetQueryResultCount. func (mr *MockWorkitemtrackingClientMockRecorder) GetQueryResultCount(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetQueryResultCount", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).GetQueryResultCount), arg0, arg1) } -// GetRecentActivityData mocks base method +// GetRecentActivityData mocks base method. func (m *MockWorkitemtrackingClient) GetRecentActivityData(arg0 context.Context, arg1 workitemtracking.GetRecentActivityDataArgs) (*[]workitemtracking.AccountRecentActivityWorkItemModel2, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetRecentActivityData", arg0, arg1) @@ -579,13 +593,13 @@ func (m *MockWorkitemtrackingClient) GetRecentActivityData(arg0 context.Context, return ret0, ret1 } -// GetRecentActivityData indicates an expected call of GetRecentActivityData +// GetRecentActivityData indicates an expected call of GetRecentActivityData. func (mr *MockWorkitemtrackingClientMockRecorder) GetRecentActivityData(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRecentActivityData", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).GetRecentActivityData), arg0, arg1) } -// GetRelationType mocks base method +// GetRelationType mocks base method. func (m *MockWorkitemtrackingClient) GetRelationType(arg0 context.Context, arg1 workitemtracking.GetRelationTypeArgs) (*workitemtracking.WorkItemRelationType, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetRelationType", arg0, arg1) @@ -594,13 +608,13 @@ func (m *MockWorkitemtrackingClient) GetRelationType(arg0 context.Context, arg1 return ret0, ret1 } -// GetRelationType indicates an expected call of GetRelationType +// GetRelationType indicates an expected call of GetRelationType. func (mr *MockWorkitemtrackingClientMockRecorder) GetRelationType(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRelationType", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).GetRelationType), arg0, arg1) } -// GetRelationTypes mocks base method +// GetRelationTypes mocks base method. func (m *MockWorkitemtrackingClient) GetRelationTypes(arg0 context.Context, arg1 workitemtracking.GetRelationTypesArgs) (*[]workitemtracking.WorkItemRelationType, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetRelationTypes", arg0, arg1) @@ -609,13 +623,13 @@ func (m *MockWorkitemtrackingClient) GetRelationTypes(arg0 context.Context, arg1 return ret0, ret1 } -// GetRelationTypes indicates an expected call of GetRelationTypes +// GetRelationTypes indicates an expected call of GetRelationTypes. func (mr *MockWorkitemtrackingClientMockRecorder) GetRelationTypes(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRelationTypes", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).GetRelationTypes), arg0, arg1) } -// GetReportingLinksByLinkType mocks base method +// GetReportingLinksByLinkType mocks base method. func (m *MockWorkitemtrackingClient) GetReportingLinksByLinkType(arg0 context.Context, arg1 workitemtracking.GetReportingLinksByLinkTypeArgs) (*workitemtracking.ReportingWorkItemLinksBatch, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetReportingLinksByLinkType", arg0, arg1) @@ -624,13 +638,13 @@ func (m *MockWorkitemtrackingClient) GetReportingLinksByLinkType(arg0 context.Co return ret0, ret1 } -// GetReportingLinksByLinkType indicates an expected call of GetReportingLinksByLinkType +// GetReportingLinksByLinkType indicates an expected call of GetReportingLinksByLinkType. func (mr *MockWorkitemtrackingClientMockRecorder) GetReportingLinksByLinkType(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetReportingLinksByLinkType", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).GetReportingLinksByLinkType), arg0, arg1) } -// GetRevision mocks base method +// GetRevision mocks base method. func (m *MockWorkitemtrackingClient) GetRevision(arg0 context.Context, arg1 workitemtracking.GetRevisionArgs) (*workitemtracking.WorkItem, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetRevision", arg0, arg1) @@ -639,13 +653,13 @@ func (m *MockWorkitemtrackingClient) GetRevision(arg0 context.Context, arg1 work return ret0, ret1 } -// GetRevision indicates an expected call of GetRevision +// GetRevision indicates an expected call of GetRevision. func (mr *MockWorkitemtrackingClientMockRecorder) GetRevision(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRevision", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).GetRevision), arg0, arg1) } -// GetRevisions mocks base method +// GetRevisions mocks base method. func (m *MockWorkitemtrackingClient) GetRevisions(arg0 context.Context, arg1 workitemtracking.GetRevisionsArgs) (*[]workitemtracking.WorkItem, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetRevisions", arg0, arg1) @@ -654,13 +668,13 @@ func (m *MockWorkitemtrackingClient) GetRevisions(arg0 context.Context, arg1 wor return ret0, ret1 } -// GetRevisions indicates an expected call of GetRevisions +// GetRevisions indicates an expected call of GetRevisions. func (mr *MockWorkitemtrackingClientMockRecorder) GetRevisions(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRevisions", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).GetRevisions), arg0, arg1) } -// GetRootNodes mocks base method +// GetRootNodes mocks base method. func (m *MockWorkitemtrackingClient) GetRootNodes(arg0 context.Context, arg1 workitemtracking.GetRootNodesArgs) (*[]workitemtracking.WorkItemClassificationNode, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetRootNodes", arg0, arg1) @@ -669,13 +683,43 @@ func (m *MockWorkitemtrackingClient) GetRootNodes(arg0 context.Context, arg1 wor return ret0, ret1 } -// GetRootNodes indicates an expected call of GetRootNodes +// GetRootNodes indicates an expected call of GetRootNodes. func (mr *MockWorkitemtrackingClientMockRecorder) GetRootNodes(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRootNodes", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).GetRootNodes), arg0, arg1) } -// GetTemplate mocks base method +// GetTag mocks base method. +func (m *MockWorkitemtrackingClient) GetTag(arg0 context.Context, arg1 workitemtracking.GetTagArgs) (*workitemtracking.WorkItemTagDefinition, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetTag", arg0, arg1) + ret0, _ := ret[0].(*workitemtracking.WorkItemTagDefinition) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetTag indicates an expected call of GetTag. +func (mr *MockWorkitemtrackingClientMockRecorder) GetTag(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTag", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).GetTag), arg0, arg1) +} + +// GetTags mocks base method. +func (m *MockWorkitemtrackingClient) GetTags(arg0 context.Context, arg1 workitemtracking.GetTagsArgs) (*[]workitemtracking.WorkItemTagDefinition, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetTags", arg0, arg1) + ret0, _ := ret[0].(*[]workitemtracking.WorkItemTagDefinition) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetTags indicates an expected call of GetTags. +func (mr *MockWorkitemtrackingClientMockRecorder) GetTags(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTags", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).GetTags), arg0, arg1) +} + +// GetTemplate mocks base method. func (m *MockWorkitemtrackingClient) GetTemplate(arg0 context.Context, arg1 workitemtracking.GetTemplateArgs) (*workitemtracking.WorkItemTemplate, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetTemplate", arg0, arg1) @@ -684,13 +728,13 @@ func (m *MockWorkitemtrackingClient) GetTemplate(arg0 context.Context, arg1 work return ret0, ret1 } -// GetTemplate indicates an expected call of GetTemplate +// GetTemplate indicates an expected call of GetTemplate. func (mr *MockWorkitemtrackingClientMockRecorder) GetTemplate(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTemplate", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).GetTemplate), arg0, arg1) } -// GetTemplates mocks base method +// GetTemplates mocks base method. func (m *MockWorkitemtrackingClient) GetTemplates(arg0 context.Context, arg1 workitemtracking.GetTemplatesArgs) (*[]workitemtracking.WorkItemTemplateReference, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetTemplates", arg0, arg1) @@ -699,13 +743,13 @@ func (m *MockWorkitemtrackingClient) GetTemplates(arg0 context.Context, arg1 wor return ret0, ret1 } -// GetTemplates indicates an expected call of GetTemplates +// GetTemplates indicates an expected call of GetTemplates. func (mr *MockWorkitemtrackingClientMockRecorder) GetTemplates(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTemplates", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).GetTemplates), arg0, arg1) } -// GetUpdate mocks base method +// GetUpdate mocks base method. func (m *MockWorkitemtrackingClient) GetUpdate(arg0 context.Context, arg1 workitemtracking.GetUpdateArgs) (*workitemtracking.WorkItemUpdate, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetUpdate", arg0, arg1) @@ -714,13 +758,13 @@ func (m *MockWorkitemtrackingClient) GetUpdate(arg0 context.Context, arg1 workit return ret0, ret1 } -// GetUpdate indicates an expected call of GetUpdate +// GetUpdate indicates an expected call of GetUpdate. func (mr *MockWorkitemtrackingClientMockRecorder) GetUpdate(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUpdate", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).GetUpdate), arg0, arg1) } -// GetUpdates mocks base method +// GetUpdates mocks base method. func (m *MockWorkitemtrackingClient) GetUpdates(arg0 context.Context, arg1 workitemtracking.GetUpdatesArgs) (*[]workitemtracking.WorkItemUpdate, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetUpdates", arg0, arg1) @@ -729,13 +773,13 @@ func (m *MockWorkitemtrackingClient) GetUpdates(arg0 context.Context, arg1 worki return ret0, ret1 } -// GetUpdates indicates an expected call of GetUpdates +// GetUpdates indicates an expected call of GetUpdates. func (mr *MockWorkitemtrackingClientMockRecorder) GetUpdates(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUpdates", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).GetUpdates), arg0, arg1) } -// GetWorkArtifactLinkTypes mocks base method +// GetWorkArtifactLinkTypes mocks base method. func (m *MockWorkitemtrackingClient) GetWorkArtifactLinkTypes(arg0 context.Context, arg1 workitemtracking.GetWorkArtifactLinkTypesArgs) (*[]workitemtracking.WorkArtifactLink, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetWorkArtifactLinkTypes", arg0, arg1) @@ -744,13 +788,13 @@ func (m *MockWorkitemtrackingClient) GetWorkArtifactLinkTypes(arg0 context.Conte return ret0, ret1 } -// GetWorkArtifactLinkTypes indicates an expected call of GetWorkArtifactLinkTypes +// GetWorkArtifactLinkTypes indicates an expected call of GetWorkArtifactLinkTypes. func (mr *MockWorkitemtrackingClientMockRecorder) GetWorkArtifactLinkTypes(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWorkArtifactLinkTypes", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).GetWorkArtifactLinkTypes), arg0, arg1) } -// GetWorkItem mocks base method +// GetWorkItem mocks base method. func (m *MockWorkitemtrackingClient) GetWorkItem(arg0 context.Context, arg1 workitemtracking.GetWorkItemArgs) (*workitemtracking.WorkItem, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetWorkItem", arg0, arg1) @@ -759,13 +803,13 @@ func (m *MockWorkitemtrackingClient) GetWorkItem(arg0 context.Context, arg1 work return ret0, ret1 } -// GetWorkItem indicates an expected call of GetWorkItem +// GetWorkItem indicates an expected call of GetWorkItem. func (mr *MockWorkitemtrackingClientMockRecorder) GetWorkItem(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWorkItem", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).GetWorkItem), arg0, arg1) } -// GetWorkItemIconJson mocks base method +// GetWorkItemIconJson mocks base method. func (m *MockWorkitemtrackingClient) GetWorkItemIconJson(arg0 context.Context, arg1 workitemtracking.GetWorkItemIconJsonArgs) (*workitemtracking.WorkItemIcon, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetWorkItemIconJson", arg0, arg1) @@ -774,13 +818,13 @@ func (m *MockWorkitemtrackingClient) GetWorkItemIconJson(arg0 context.Context, a return ret0, ret1 } -// GetWorkItemIconJson indicates an expected call of GetWorkItemIconJson +// GetWorkItemIconJson indicates an expected call of GetWorkItemIconJson. func (mr *MockWorkitemtrackingClientMockRecorder) GetWorkItemIconJson(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWorkItemIconJson", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).GetWorkItemIconJson), arg0, arg1) } -// GetWorkItemIconSvg mocks base method +// GetWorkItemIconSvg mocks base method. func (m *MockWorkitemtrackingClient) GetWorkItemIconSvg(arg0 context.Context, arg1 workitemtracking.GetWorkItemIconSvgArgs) (io.ReadCloser, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetWorkItemIconSvg", arg0, arg1) @@ -789,13 +833,13 @@ func (m *MockWorkitemtrackingClient) GetWorkItemIconSvg(arg0 context.Context, ar return ret0, ret1 } -// GetWorkItemIconSvg indicates an expected call of GetWorkItemIconSvg +// GetWorkItemIconSvg indicates an expected call of GetWorkItemIconSvg. func (mr *MockWorkitemtrackingClientMockRecorder) GetWorkItemIconSvg(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWorkItemIconSvg", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).GetWorkItemIconSvg), arg0, arg1) } -// GetWorkItemIconXaml mocks base method +// GetWorkItemIconXaml mocks base method. func (m *MockWorkitemtrackingClient) GetWorkItemIconXaml(arg0 context.Context, arg1 workitemtracking.GetWorkItemIconXamlArgs) (io.ReadCloser, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetWorkItemIconXaml", arg0, arg1) @@ -804,13 +848,13 @@ func (m *MockWorkitemtrackingClient) GetWorkItemIconXaml(arg0 context.Context, a return ret0, ret1 } -// GetWorkItemIconXaml indicates an expected call of GetWorkItemIconXaml +// GetWorkItemIconXaml indicates an expected call of GetWorkItemIconXaml. func (mr *MockWorkitemtrackingClientMockRecorder) GetWorkItemIconXaml(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWorkItemIconXaml", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).GetWorkItemIconXaml), arg0, arg1) } -// GetWorkItemIcons mocks base method +// GetWorkItemIcons mocks base method. func (m *MockWorkitemtrackingClient) GetWorkItemIcons(arg0 context.Context, arg1 workitemtracking.GetWorkItemIconsArgs) (*[]workitemtracking.WorkItemIcon, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetWorkItemIcons", arg0, arg1) @@ -819,13 +863,13 @@ func (m *MockWorkitemtrackingClient) GetWorkItemIcons(arg0 context.Context, arg1 return ret0, ret1 } -// GetWorkItemIcons indicates an expected call of GetWorkItemIcons +// GetWorkItemIcons indicates an expected call of GetWorkItemIcons. func (mr *MockWorkitemtrackingClientMockRecorder) GetWorkItemIcons(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWorkItemIcons", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).GetWorkItemIcons), arg0, arg1) } -// GetWorkItemNextStatesOnCheckinAction mocks base method +// GetWorkItemNextStatesOnCheckinAction mocks base method. func (m *MockWorkitemtrackingClient) GetWorkItemNextStatesOnCheckinAction(arg0 context.Context, arg1 workitemtracking.GetWorkItemNextStatesOnCheckinActionArgs) (*[]workitemtracking.WorkItemNextStateOnTransition, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetWorkItemNextStatesOnCheckinAction", arg0, arg1) @@ -834,13 +878,13 @@ func (m *MockWorkitemtrackingClient) GetWorkItemNextStatesOnCheckinAction(arg0 c return ret0, ret1 } -// GetWorkItemNextStatesOnCheckinAction indicates an expected call of GetWorkItemNextStatesOnCheckinAction +// GetWorkItemNextStatesOnCheckinAction indicates an expected call of GetWorkItemNextStatesOnCheckinAction. func (mr *MockWorkitemtrackingClientMockRecorder) GetWorkItemNextStatesOnCheckinAction(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWorkItemNextStatesOnCheckinAction", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).GetWorkItemNextStatesOnCheckinAction), arg0, arg1) } -// GetWorkItemTemplate mocks base method +// GetWorkItemTemplate mocks base method. func (m *MockWorkitemtrackingClient) GetWorkItemTemplate(arg0 context.Context, arg1 workitemtracking.GetWorkItemTemplateArgs) (*workitemtracking.WorkItem, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetWorkItemTemplate", arg0, arg1) @@ -849,13 +893,13 @@ func (m *MockWorkitemtrackingClient) GetWorkItemTemplate(arg0 context.Context, a return ret0, ret1 } -// GetWorkItemTemplate indicates an expected call of GetWorkItemTemplate +// GetWorkItemTemplate indicates an expected call of GetWorkItemTemplate. func (mr *MockWorkitemtrackingClientMockRecorder) GetWorkItemTemplate(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWorkItemTemplate", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).GetWorkItemTemplate), arg0, arg1) } -// GetWorkItemType mocks base method +// GetWorkItemType mocks base method. func (m *MockWorkitemtrackingClient) GetWorkItemType(arg0 context.Context, arg1 workitemtracking.GetWorkItemTypeArgs) (*workitemtracking.WorkItemType, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetWorkItemType", arg0, arg1) @@ -864,13 +908,13 @@ func (m *MockWorkitemtrackingClient) GetWorkItemType(arg0 context.Context, arg1 return ret0, ret1 } -// GetWorkItemType indicates an expected call of GetWorkItemType +// GetWorkItemType indicates an expected call of GetWorkItemType. func (mr *MockWorkitemtrackingClientMockRecorder) GetWorkItemType(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWorkItemType", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).GetWorkItemType), arg0, arg1) } -// GetWorkItemTypeCategories mocks base method +// GetWorkItemTypeCategories mocks base method. func (m *MockWorkitemtrackingClient) GetWorkItemTypeCategories(arg0 context.Context, arg1 workitemtracking.GetWorkItemTypeCategoriesArgs) (*[]workitemtracking.WorkItemTypeCategory, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetWorkItemTypeCategories", arg0, arg1) @@ -879,13 +923,13 @@ func (m *MockWorkitemtrackingClient) GetWorkItemTypeCategories(arg0 context.Cont return ret0, ret1 } -// GetWorkItemTypeCategories indicates an expected call of GetWorkItemTypeCategories +// GetWorkItemTypeCategories indicates an expected call of GetWorkItemTypeCategories. func (mr *MockWorkitemtrackingClientMockRecorder) GetWorkItemTypeCategories(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWorkItemTypeCategories", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).GetWorkItemTypeCategories), arg0, arg1) } -// GetWorkItemTypeCategory mocks base method +// GetWorkItemTypeCategory mocks base method. func (m *MockWorkitemtrackingClient) GetWorkItemTypeCategory(arg0 context.Context, arg1 workitemtracking.GetWorkItemTypeCategoryArgs) (*workitemtracking.WorkItemTypeCategory, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetWorkItemTypeCategory", arg0, arg1) @@ -894,13 +938,13 @@ func (m *MockWorkitemtrackingClient) GetWorkItemTypeCategory(arg0 context.Contex return ret0, ret1 } -// GetWorkItemTypeCategory indicates an expected call of GetWorkItemTypeCategory +// GetWorkItemTypeCategory indicates an expected call of GetWorkItemTypeCategory. func (mr *MockWorkitemtrackingClientMockRecorder) GetWorkItemTypeCategory(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWorkItemTypeCategory", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).GetWorkItemTypeCategory), arg0, arg1) } -// GetWorkItemTypeFieldWithReferences mocks base method +// GetWorkItemTypeFieldWithReferences mocks base method. func (m *MockWorkitemtrackingClient) GetWorkItemTypeFieldWithReferences(arg0 context.Context, arg1 workitemtracking.GetWorkItemTypeFieldWithReferencesArgs) (*workitemtracking.WorkItemTypeFieldWithReferences, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetWorkItemTypeFieldWithReferences", arg0, arg1) @@ -909,13 +953,13 @@ func (m *MockWorkitemtrackingClient) GetWorkItemTypeFieldWithReferences(arg0 con return ret0, ret1 } -// GetWorkItemTypeFieldWithReferences indicates an expected call of GetWorkItemTypeFieldWithReferences +// GetWorkItemTypeFieldWithReferences indicates an expected call of GetWorkItemTypeFieldWithReferences. func (mr *MockWorkitemtrackingClientMockRecorder) GetWorkItemTypeFieldWithReferences(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWorkItemTypeFieldWithReferences", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).GetWorkItemTypeFieldWithReferences), arg0, arg1) } -// GetWorkItemTypeFieldsWithReferences mocks base method +// GetWorkItemTypeFieldsWithReferences mocks base method. func (m *MockWorkitemtrackingClient) GetWorkItemTypeFieldsWithReferences(arg0 context.Context, arg1 workitemtracking.GetWorkItemTypeFieldsWithReferencesArgs) (*[]workitemtracking.WorkItemTypeFieldWithReferences, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetWorkItemTypeFieldsWithReferences", arg0, arg1) @@ -924,13 +968,13 @@ func (m *MockWorkitemtrackingClient) GetWorkItemTypeFieldsWithReferences(arg0 co return ret0, ret1 } -// GetWorkItemTypeFieldsWithReferences indicates an expected call of GetWorkItemTypeFieldsWithReferences +// GetWorkItemTypeFieldsWithReferences indicates an expected call of GetWorkItemTypeFieldsWithReferences. func (mr *MockWorkitemtrackingClientMockRecorder) GetWorkItemTypeFieldsWithReferences(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWorkItemTypeFieldsWithReferences", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).GetWorkItemTypeFieldsWithReferences), arg0, arg1) } -// GetWorkItemTypeStates mocks base method +// GetWorkItemTypeStates mocks base method. func (m *MockWorkitemtrackingClient) GetWorkItemTypeStates(arg0 context.Context, arg1 workitemtracking.GetWorkItemTypeStatesArgs) (*[]workitemtracking.WorkItemStateColor, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetWorkItemTypeStates", arg0, arg1) @@ -939,13 +983,13 @@ func (m *MockWorkitemtrackingClient) GetWorkItemTypeStates(arg0 context.Context, return ret0, ret1 } -// GetWorkItemTypeStates indicates an expected call of GetWorkItemTypeStates +// GetWorkItemTypeStates indicates an expected call of GetWorkItemTypeStates. func (mr *MockWorkitemtrackingClientMockRecorder) GetWorkItemTypeStates(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWorkItemTypeStates", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).GetWorkItemTypeStates), arg0, arg1) } -// GetWorkItemTypes mocks base method +// GetWorkItemTypes mocks base method. func (m *MockWorkitemtrackingClient) GetWorkItemTypes(arg0 context.Context, arg1 workitemtracking.GetWorkItemTypesArgs) (*[]workitemtracking.WorkItemType, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetWorkItemTypes", arg0, arg1) @@ -954,13 +998,13 @@ func (m *MockWorkitemtrackingClient) GetWorkItemTypes(arg0 context.Context, arg1 return ret0, ret1 } -// GetWorkItemTypes indicates an expected call of GetWorkItemTypes +// GetWorkItemTypes indicates an expected call of GetWorkItemTypes. func (mr *MockWorkitemtrackingClientMockRecorder) GetWorkItemTypes(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWorkItemTypes", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).GetWorkItemTypes), arg0, arg1) } -// GetWorkItems mocks base method +// GetWorkItems mocks base method. func (m *MockWorkitemtrackingClient) GetWorkItems(arg0 context.Context, arg1 workitemtracking.GetWorkItemsArgs) (*[]workitemtracking.WorkItem, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetWorkItems", arg0, arg1) @@ -969,13 +1013,13 @@ func (m *MockWorkitemtrackingClient) GetWorkItems(arg0 context.Context, arg1 wor return ret0, ret1 } -// GetWorkItems indicates an expected call of GetWorkItems +// GetWorkItems indicates an expected call of GetWorkItems. func (mr *MockWorkitemtrackingClientMockRecorder) GetWorkItems(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWorkItems", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).GetWorkItems), arg0, arg1) } -// GetWorkItemsBatch mocks base method +// GetWorkItemsBatch mocks base method. func (m *MockWorkitemtrackingClient) GetWorkItemsBatch(arg0 context.Context, arg1 workitemtracking.GetWorkItemsBatchArgs) (*[]workitemtracking.WorkItem, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetWorkItemsBatch", arg0, arg1) @@ -984,13 +1028,28 @@ func (m *MockWorkitemtrackingClient) GetWorkItemsBatch(arg0 context.Context, arg return ret0, ret1 } -// GetWorkItemsBatch indicates an expected call of GetWorkItemsBatch +// GetWorkItemsBatch indicates an expected call of GetWorkItemsBatch. func (mr *MockWorkitemtrackingClientMockRecorder) GetWorkItemsBatch(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWorkItemsBatch", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).GetWorkItemsBatch), arg0, arg1) } -// QueryById mocks base method +// MigrateProjectsProcess mocks base method. +func (m *MockWorkitemtrackingClient) MigrateProjectsProcess(arg0 context.Context, arg1 workitemtracking.MigrateProjectsProcessArgs) (*workitemtracking.ProcessMigrationResultModel, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "MigrateProjectsProcess", arg0, arg1) + ret0, _ := ret[0].(*workitemtracking.ProcessMigrationResultModel) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// MigrateProjectsProcess indicates an expected call of MigrateProjectsProcess. +func (mr *MockWorkitemtrackingClientMockRecorder) MigrateProjectsProcess(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MigrateProjectsProcess", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).MigrateProjectsProcess), arg0, arg1) +} + +// QueryById mocks base method. func (m *MockWorkitemtrackingClient) QueryById(arg0 context.Context, arg1 workitemtracking.QueryByIdArgs) (*workitemtracking.WorkItemQueryResult, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "QueryById", arg0, arg1) @@ -999,13 +1058,13 @@ func (m *MockWorkitemtrackingClient) QueryById(arg0 context.Context, arg1 workit return ret0, ret1 } -// QueryById indicates an expected call of QueryById +// QueryById indicates an expected call of QueryById. func (mr *MockWorkitemtrackingClientMockRecorder) QueryById(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryById", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).QueryById), arg0, arg1) } -// QueryByWiql mocks base method +// QueryByWiql mocks base method. func (m *MockWorkitemtrackingClient) QueryByWiql(arg0 context.Context, arg1 workitemtracking.QueryByWiqlArgs) (*workitemtracking.WorkItemQueryResult, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "QueryByWiql", arg0, arg1) @@ -1014,13 +1073,13 @@ func (m *MockWorkitemtrackingClient) QueryByWiql(arg0 context.Context, arg1 work return ret0, ret1 } -// QueryByWiql indicates an expected call of QueryByWiql +// QueryByWiql indicates an expected call of QueryByWiql. func (mr *MockWorkitemtrackingClientMockRecorder) QueryByWiql(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryByWiql", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).QueryByWiql), arg0, arg1) } -// QueryWorkItemsForArtifactUris mocks base method +// QueryWorkItemsForArtifactUris mocks base method. func (m *MockWorkitemtrackingClient) QueryWorkItemsForArtifactUris(arg0 context.Context, arg1 workitemtracking.QueryWorkItemsForArtifactUrisArgs) (*workitemtracking.ArtifactUriQueryResult, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "QueryWorkItemsForArtifactUris", arg0, arg1) @@ -1029,13 +1088,13 @@ func (m *MockWorkitemtrackingClient) QueryWorkItemsForArtifactUris(arg0 context. return ret0, ret1 } -// QueryWorkItemsForArtifactUris indicates an expected call of QueryWorkItemsForArtifactUris +// QueryWorkItemsForArtifactUris indicates an expected call of QueryWorkItemsForArtifactUris. func (mr *MockWorkitemtrackingClientMockRecorder) QueryWorkItemsForArtifactUris(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryWorkItemsForArtifactUris", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).QueryWorkItemsForArtifactUris), arg0, arg1) } -// ReadReportingDiscussions mocks base method +// ReadReportingDiscussions mocks base method. func (m *MockWorkitemtrackingClient) ReadReportingDiscussions(arg0 context.Context, arg1 workitemtracking.ReadReportingDiscussionsArgs) (*workitemtracking.ReportingWorkItemRevisionsBatch, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ReadReportingDiscussions", arg0, arg1) @@ -1044,13 +1103,13 @@ func (m *MockWorkitemtrackingClient) ReadReportingDiscussions(arg0 context.Conte return ret0, ret1 } -// ReadReportingDiscussions indicates an expected call of ReadReportingDiscussions +// ReadReportingDiscussions indicates an expected call of ReadReportingDiscussions. func (mr *MockWorkitemtrackingClientMockRecorder) ReadReportingDiscussions(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadReportingDiscussions", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).ReadReportingDiscussions), arg0, arg1) } -// ReadReportingRevisionsGet mocks base method +// ReadReportingRevisionsGet mocks base method. func (m *MockWorkitemtrackingClient) ReadReportingRevisionsGet(arg0 context.Context, arg1 workitemtracking.ReadReportingRevisionsGetArgs) (*workitemtracking.ReportingWorkItemRevisionsBatch, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ReadReportingRevisionsGet", arg0, arg1) @@ -1059,13 +1118,13 @@ func (m *MockWorkitemtrackingClient) ReadReportingRevisionsGet(arg0 context.Cont return ret0, ret1 } -// ReadReportingRevisionsGet indicates an expected call of ReadReportingRevisionsGet +// ReadReportingRevisionsGet indicates an expected call of ReadReportingRevisionsGet. func (mr *MockWorkitemtrackingClientMockRecorder) ReadReportingRevisionsGet(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadReportingRevisionsGet", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).ReadReportingRevisionsGet), arg0, arg1) } -// ReadReportingRevisionsPost mocks base method +// ReadReportingRevisionsPost mocks base method. func (m *MockWorkitemtrackingClient) ReadReportingRevisionsPost(arg0 context.Context, arg1 workitemtracking.ReadReportingRevisionsPostArgs) (*workitemtracking.ReportingWorkItemRevisionsBatch, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ReadReportingRevisionsPost", arg0, arg1) @@ -1074,13 +1133,13 @@ func (m *MockWorkitemtrackingClient) ReadReportingRevisionsPost(arg0 context.Con return ret0, ret1 } -// ReadReportingRevisionsPost indicates an expected call of ReadReportingRevisionsPost +// ReadReportingRevisionsPost indicates an expected call of ReadReportingRevisionsPost. func (mr *MockWorkitemtrackingClientMockRecorder) ReadReportingRevisionsPost(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadReportingRevisionsPost", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).ReadReportingRevisionsPost), arg0, arg1) } -// ReplaceTemplate mocks base method +// ReplaceTemplate mocks base method. func (m *MockWorkitemtrackingClient) ReplaceTemplate(arg0 context.Context, arg1 workitemtracking.ReplaceTemplateArgs) (*workitemtracking.WorkItemTemplate, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ReplaceTemplate", arg0, arg1) @@ -1089,13 +1148,13 @@ func (m *MockWorkitemtrackingClient) ReplaceTemplate(arg0 context.Context, arg1 return ret0, ret1 } -// ReplaceTemplate indicates an expected call of ReplaceTemplate +// ReplaceTemplate indicates an expected call of ReplaceTemplate. func (mr *MockWorkitemtrackingClientMockRecorder) ReplaceTemplate(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReplaceTemplate", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).ReplaceTemplate), arg0, arg1) } -// RestoreWorkItem mocks base method +// RestoreWorkItem mocks base method. func (m *MockWorkitemtrackingClient) RestoreWorkItem(arg0 context.Context, arg1 workitemtracking.RestoreWorkItemArgs) (*workitemtracking.WorkItemDelete, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "RestoreWorkItem", arg0, arg1) @@ -1104,13 +1163,13 @@ func (m *MockWorkitemtrackingClient) RestoreWorkItem(arg0 context.Context, arg1 return ret0, ret1 } -// RestoreWorkItem indicates an expected call of RestoreWorkItem +// RestoreWorkItem indicates an expected call of RestoreWorkItem. func (mr *MockWorkitemtrackingClientMockRecorder) RestoreWorkItem(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RestoreWorkItem", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).RestoreWorkItem), arg0, arg1) } -// SearchQueries mocks base method +// SearchQueries mocks base method. func (m *MockWorkitemtrackingClient) SearchQueries(arg0 context.Context, arg1 workitemtracking.SearchQueriesArgs) (*workitemtracking.QueryHierarchyItemsResult, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SearchQueries", arg0, arg1) @@ -1119,13 +1178,13 @@ func (m *MockWorkitemtrackingClient) SearchQueries(arg0 context.Context, arg1 wo return ret0, ret1 } -// SearchQueries indicates an expected call of SearchQueries +// SearchQueries indicates an expected call of SearchQueries. func (mr *MockWorkitemtrackingClientMockRecorder) SearchQueries(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchQueries", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).SearchQueries), arg0, arg1) } -// UpdateClassificationNode mocks base method +// UpdateClassificationNode mocks base method. func (m *MockWorkitemtrackingClient) UpdateClassificationNode(arg0 context.Context, arg1 workitemtracking.UpdateClassificationNodeArgs) (*workitemtracking.WorkItemClassificationNode, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateClassificationNode", arg0, arg1) @@ -1134,13 +1193,13 @@ func (m *MockWorkitemtrackingClient) UpdateClassificationNode(arg0 context.Conte return ret0, ret1 } -// UpdateClassificationNode indicates an expected call of UpdateClassificationNode +// UpdateClassificationNode indicates an expected call of UpdateClassificationNode. func (mr *MockWorkitemtrackingClientMockRecorder) UpdateClassificationNode(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateClassificationNode", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).UpdateClassificationNode), arg0, arg1) } -// UpdateComment mocks base method +// UpdateComment mocks base method. func (m *MockWorkitemtrackingClient) UpdateComment(arg0 context.Context, arg1 workitemtracking.UpdateCommentArgs) (*workitemtracking.Comment, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateComment", arg0, arg1) @@ -1149,13 +1208,28 @@ func (m *MockWorkitemtrackingClient) UpdateComment(arg0 context.Context, arg1 wo return ret0, ret1 } -// UpdateComment indicates an expected call of UpdateComment +// UpdateComment indicates an expected call of UpdateComment. func (mr *MockWorkitemtrackingClientMockRecorder) UpdateComment(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateComment", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).UpdateComment), arg0, arg1) } -// UpdateQuery mocks base method +// UpdateField mocks base method. +func (m *MockWorkitemtrackingClient) UpdateField(arg0 context.Context, arg1 workitemtracking.UpdateFieldArgs) (*workitemtracking.WorkItemField, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateField", arg0, arg1) + ret0, _ := ret[0].(*workitemtracking.WorkItemField) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateField indicates an expected call of UpdateField. +func (mr *MockWorkitemtrackingClientMockRecorder) UpdateField(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateField", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).UpdateField), arg0, arg1) +} + +// UpdateQuery mocks base method. func (m *MockWorkitemtrackingClient) UpdateQuery(arg0 context.Context, arg1 workitemtracking.UpdateQueryArgs) (*workitemtracking.QueryHierarchyItem, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateQuery", arg0, arg1) @@ -1164,13 +1238,28 @@ func (m *MockWorkitemtrackingClient) UpdateQuery(arg0 context.Context, arg1 work return ret0, ret1 } -// UpdateQuery indicates an expected call of UpdateQuery +// UpdateQuery indicates an expected call of UpdateQuery. func (mr *MockWorkitemtrackingClientMockRecorder) UpdateQuery(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateQuery", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).UpdateQuery), arg0, arg1) } -// UpdateWorkItem mocks base method +// UpdateTag mocks base method. +func (m *MockWorkitemtrackingClient) UpdateTag(arg0 context.Context, arg1 workitemtracking.UpdateTagArgs) (*workitemtracking.WorkItemTagDefinition, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateTag", arg0, arg1) + ret0, _ := ret[0].(*workitemtracking.WorkItemTagDefinition) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateTag indicates an expected call of UpdateTag. +func (mr *MockWorkitemtrackingClientMockRecorder) UpdateTag(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTag", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).UpdateTag), arg0, arg1) +} + +// UpdateWorkItem mocks base method. func (m *MockWorkitemtrackingClient) UpdateWorkItem(arg0 context.Context, arg1 workitemtracking.UpdateWorkItemArgs) (*workitemtracking.WorkItem, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateWorkItem", arg0, arg1) @@ -1179,7 +1268,7 @@ func (m *MockWorkitemtrackingClient) UpdateWorkItem(arg0 context.Context, arg1 w return ret0, ret1 } -// UpdateWorkItem indicates an expected call of UpdateWorkItem +// UpdateWorkItem indicates an expected call of UpdateWorkItem. func (mr *MockWorkitemtrackingClientMockRecorder) UpdateWorkItem(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateWorkItem", reflect.TypeOf((*MockWorkitemtrackingClient)(nil).UpdateWorkItem), arg0, arg1) diff --git a/babylon/Dockerfile.semver b/babylon/Dockerfile.semver index e798a3678..2165651ce 100644 --- a/babylon/Dockerfile.semver +++ b/babylon/Dockerfile.semver @@ -1,6 +1,6 @@ ARG SHA_VERSION -FROM quay.io/babylonhealth/azure-terraform:${SHA_VERSION} +FROM babylon.jfrog.io/classic-dev-docker-virtual/babylonhealth/azure-terraform:${SHA_VERSION} ARG SEMVER_VERSION diff --git a/babylon/build b/babylon/build index 240cd77c5..edaba4348 100755 --- a/babylon/build +++ b/babylon/build @@ -2,7 +2,7 @@ set -euxo pipefail -CONTAINER_NAME=quay.io/babylonhealth/azure-terraform +CONTAINER_NAME=babylon.jfrog.io/classic-dev-docker-virtual/babylonhealth/azure-terraform BINARY_NAME=terraform-provider-bblnazuredevops SHA_VERSION=${CIRCLE_SHA1:-latest} @@ -84,7 +84,7 @@ run_tag_semver() { --build-arg SEMVER_VERSION="${SEMVER_VERSION}" \ -t "${CONTAINER_NAME}:${SEMVER_VERSION}" - if docker run -e DOCKER_REPO=babylonhealth/azure-terraform -e DOCKER_TAG="${SEMVER_VERSION}" quay.io/babylonhealth/tag-exists; then + if docker run -e DOCKER_REPO=babylonhealth/azure-terraform -e DOCKER_TAG="${SEMVER_VERSION}" babylon.jfrog.io/classic-dev-docker-virtual/babylonhealth/tag-exists; then echo "Tag ${SEMVER_VERSION} exists!" && exit 1 else docker push "${CONTAINER_NAME}:${SEMVER_VERSION}" diff --git a/bblnazuredevops/internal/utils/HttpResponse.go b/bblnazuredevops/internal/utils/HttpResponse.go index 91c642b1b..fd34bd04f 100644 --- a/bblnazuredevops/internal/utils/HttpResponse.go +++ b/bblnazuredevops/internal/utils/HttpResponse.go @@ -4,7 +4,7 @@ import ( "net/http" "strings" - "github.com/microsoft/azure-devops-go-api/azuredevops" + "github.com/microsoft/azure-devops-go-api/azuredevops/v6" ) // ResponseWasNotFound was used for check if error is due to resource not found diff --git a/bblnazuredevops/internal/utils/HttpResponse_test.go b/bblnazuredevops/internal/utils/HttpResponse_test.go index 9094c111f..c0968a682 100644 --- a/bblnazuredevops/internal/utils/HttpResponse_test.go +++ b/bblnazuredevops/internal/utils/HttpResponse_test.go @@ -3,7 +3,7 @@ package utils import ( "testing" - "github.com/microsoft/azure-devops-go-api/azuredevops" + "github.com/microsoft/azure-devops-go-api/azuredevops/v6" ) func TestResponseContainsStatusMessage(t *testing.T) { diff --git a/scripts/generate-mocks.sh b/scripts/generate-mocks.sh index de66f4a61..59aba5dff 100755 --- a/scripts/generate-mocks.sh +++ b/scripts/generate-mocks.sh @@ -45,7 +45,8 @@ function generate_single_mock_client() { -package $MOCK_PKG_NAME \ -destination "$OUTPUT_DIR/$OUTPUT_FILE" \ -mock_names "$2=$MOCK_NAME" \ - $1 $2 > /dev/null 2>&1 + --build_flags=--mod=mod \ + $1 $2 if [ $? -eq 0 ] then diff --git a/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/LICENSE b/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/LICENSE deleted file mode 100644 index 4b1ad51b2..000000000 --- a/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ - MIT License - - Copyright (c) Microsoft Corporation. All rights reserved. - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE diff --git a/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/client.go b/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/client.go deleted file mode 100644 index 8547dc58a..000000000 --- a/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/client.go +++ /dev/null @@ -1,434 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package azuredevops - -import ( - "bytes" - "context" - "encoding/json" - "errors" - "io" - "io/ioutil" - "net/http" - "net/url" - "reflect" - "regexp" - "runtime" - "strings" - "sync" - - "github.com/google/uuid" -) - -const ( - // header keys - headerKeyAccept = "Accept" - headerKeyAuthorization = "Authorization" - headerKeyContentType = "Content-Type" - HeaderKeyContinuationToken = "X-MS-ContinuationToken" - headerKeyFedAuthRedirect = "X-TFS-FedAuthRedirect" - headerKeyForceMsaPassThrough = "X-VSS-ForceMsaPassThrough" - headerKeySession = "X-TFS-Session" - headerUserAgent = "User-Agent" - - // media types - MediaTypeTextPlain = "text/plain" - MediaTypeApplicationJson = "application/json" -) - -// Unique session id to be used by all requests of this session. -var SessionId = uuid.New().String() - -// ApiResourceLocation Cache by Url -var apiResourceLocationCache = make(map[string]*map[uuid.UUID]ApiResourceLocation) -var apiResourceLocationCacheLock = sync.RWMutex{} - -var version = "1.1.0-b3" // todo: remove hardcoded version -var versionSuffix = "" - -// Base user agent string. The UserAgent set on the connection will be appended to this. -var baseUserAgent = "go/" + runtime.Version() + " (" + runtime.GOOS + " " + runtime.GOARCH + ") azure-devops-go-api/" + version + versionSuffix - -func NewClient(connection *Connection, baseUrl string) *Client { - client := &http.Client{} - if connection.Timeout != nil { - client.Timeout = *connection.Timeout - } - return &Client{ - baseUrl: baseUrl, - client: client, - authorization: connection.AuthorizationString, - suppressFedAuthRedirect: connection.SuppressFedAuthRedirect, - forceMsaPassThrough: connection.ForceMsaPassThrough, - userAgent: connection.UserAgent, - } -} - -type Client struct { - baseUrl string - client *http.Client - authorization string - suppressFedAuthRedirect bool - forceMsaPassThrough bool - userAgent string -} - -func (client *Client) SendRequest(request *http.Request) (response *http.Response, err error) { - resp, err := client.client.Do(request) // todo: add retry logic - if resp != nil && (resp.StatusCode < 200 || resp.StatusCode >= 300) { - err = client.UnwrapError(resp) - } - return resp, err -} - -func (client *Client) Send(ctx context.Context, - httpMethod string, - locationId uuid.UUID, - apiVersion string, - routeValues map[string]string, - queryParameters url.Values, - body io.Reader, - mediaType string, - acceptMediaType string, - additionalHeaders map[string]string) (response *http.Response, err error) { - location, err := client.getResourceLocation(ctx, locationId) - if err != nil { - return nil, err - } - generatedUrl := client.GenerateUrl(location, routeValues, queryParameters) - fullUrl := combineUrl(client.baseUrl, generatedUrl) - negotiatedVersion, err := negotiateRequestVersion(location, apiVersion) - if err != nil { - return nil, err - } - - req, err := client.CreateRequestMessage(ctx, httpMethod, fullUrl, negotiatedVersion, body, mediaType, acceptMediaType, additionalHeaders) - if err != nil { - return nil, err - } - - resp, err := client.SendRequest(req) - if err != nil { - return nil, err - } - - // Set session if one was supplied in the response. - session, ok := resp.Header[headerKeySession] - if ok && len(session) > 0 { - SessionId = session[0] - } - - return resp, err -} - -func (client *Client) GenerateUrl(apiResourceLocation *ApiResourceLocation, routeValues map[string]string, queryParameters url.Values) (request string) { - builtUrl := *apiResourceLocation.RouteTemplate - if routeValues == nil { - routeValues = make(map[string]string) - } - routeValues["area"] = *apiResourceLocation.Area - routeValues["resource"] = *apiResourceLocation.ResourceName - builtUrl = transformRouteTemplate(builtUrl, routeValues) - if queryParameters != nil && len(queryParameters) > 0 { - builtUrl += "?" + queryParameters.Encode() - } - return builtUrl -} - -func (client *Client) CreateRequestMessage(ctx context.Context, - httpMethod string, - url string, - apiVersion string, - body io.Reader, - mediaType string, - acceptMediaType string, - additionalHeaders map[string]string) (request *http.Request, err error) { - req, err := http.NewRequest(httpMethod, url, body) - if err != nil { - return nil, err - } - - if ctx != nil { - req = req.WithContext(ctx) - } - - if client.authorization != "" { - req.Header.Add(headerKeyAuthorization, client.authorization) - } - accept := acceptMediaType - if apiVersion != "" { - accept += ";api-version=" + apiVersion - } - req.Header.Add(headerKeyAccept, accept) - if mediaType != "" { - req.Header.Add(headerKeyContentType, mediaType+";charset=utf-8") - } - if client.suppressFedAuthRedirect { - req.Header.Add(headerKeyFedAuthRedirect, "Suppress") - } - if client.forceMsaPassThrough { - req.Header.Add(headerKeyForceMsaPassThrough, "true") - } - - // set session if it has not already been set - _, ok := req.Header[headerKeySession] - if !ok { - req.Header.Add(headerKeySession, SessionId) - } - - userAgent := baseUserAgent - if client.userAgent != "" { - userAgent += " " + client.userAgent - } - req.Header.Add(headerUserAgent, userAgent) - - for key, value := range additionalHeaders { - req.Header.Add(key, value) - } - - return req, err -} - -func (client *Client) getResourceLocation(ctx context.Context, locationId uuid.UUID) (*ApiResourceLocation, error) { - locationsMap, ok := getApiResourceLocationCache(client.baseUrl) - if !ok { - locations, err := client.getResourceLocationsFromServer(ctx) - if err != nil { - return nil, err - } - newMap := make(map[uuid.UUID]ApiResourceLocation) - locationsMap = &newMap - for _, locationEntry := range locations { - (*locationsMap)[*locationEntry.Id] = locationEntry - } - - setApiResourceLocationCache(client.baseUrl, locationsMap) - } - - location, ok := (*locationsMap)[locationId] - if ok { - return &location, nil - } - - return nil, &LocationIdNotRegisteredError{locationId, client.baseUrl} -} - -func getApiResourceLocationCache(url string) (*map[uuid.UUID]ApiResourceLocation, bool) { - apiResourceLocationCacheLock.RLock() - defer apiResourceLocationCacheLock.RUnlock() - locationsMap, ok := apiResourceLocationCache[url] - return locationsMap, ok -} - -func setApiResourceLocationCache(url string, locationsMap *map[uuid.UUID]ApiResourceLocation) { - apiResourceLocationCacheLock.Lock() - defer apiResourceLocationCacheLock.Unlock() - apiResourceLocationCache[url] = locationsMap -} - -func (client *Client) getResourceLocationsFromServer(ctx context.Context) ([]ApiResourceLocation, error) { - optionsUri := combineUrl(client.baseUrl, "_apis") - request, err := client.CreateRequestMessage(ctx, http.MethodOptions, optionsUri, "", nil, "", MediaTypeApplicationJson, nil) - if err != nil { - return nil, err - } - - resp, err := client.SendRequest(request) - if err != nil { - return nil, err - } - - // Set session if one was supplied in the response. - session, ok := resp.Header[headerKeySession] - if ok && len(session) > 0 { - SessionId = session[0] - } - - if resp != nil && (resp.StatusCode < 200 || resp.StatusCode >= 300) { - return nil, client.UnwrapError(resp) - } - - var locations []ApiResourceLocation - err = client.UnmarshalCollectionBody(resp, &locations) - - return locations, err -} - -// Examples of api-version: 5.1, 5.1-preview, 5.1-preview.1 -var apiVersionRegEx = regexp.MustCompile(`(\d+(\.\d)?)(-preview(.(\d+))?)?`) - -func combineUrl(part1 string, part2 string) string { - return strings.TrimRight(part1, "/") + "/" + strings.TrimLeft(part2, "/") -} - -func transformRouteTemplate(routeTemplate string, routeValues map[string]string) string { - newTemplate := "" - routeTemplate = strings.Replace(routeTemplate, "{*", "{", -1) - segments := strings.Split(routeTemplate, "/") - for _, segment := range segments { - length := len(segment) - if length <= 2 || segment[0] != '{' || segment[length-1] != '}' { - newTemplate += "/" + segment - } else { - value, ok := routeValues[segment[1:length-1]] - if ok { - newTemplate += "/" + url.PathEscape(value) - } - // else this is an optional parameter that has not been supplied, so don't add it back - } - } - // following covers oddball templates with segments that include the token and additional constants - for key, value := range routeValues { - newTemplate = strings.Replace(newTemplate, "{"+key+"}", value, -1) - } - return newTemplate -} - -func (client *Client) UnmarshalBody(response *http.Response, v interface{}) (err error) { - if response != nil && response.Body != nil { - var err error - defer func() { - if closeError := response.Body.Close(); closeError != nil { - err = closeError - } - }() - body, err := ioutil.ReadAll(response.Body) - if err != nil { - return err - } - body = trimByteOrderMark(body) - return json.Unmarshal(body, &v) - } - return nil -} - -func (client *Client) UnmarshalCollectionBody(response *http.Response, v interface{}) (err error) { - if response != nil && response.Body != nil { - var err error - defer func() { - if closeError := response.Body.Close(); closeError != nil { - err = closeError - } - }() - body, err := ioutil.ReadAll(response.Body) - if err != nil { - return err - } - - body = trimByteOrderMark(body) - err = client.UnmarshalCollectionJson(body, v) - if err != nil { - return err - } - } - return nil -} - -func (client *Client) UnmarshalCollectionJson(jsonValue []byte, v interface{}) (err error) { - t := reflect.TypeOf(v) - if t.Kind() == reflect.Ptr { - t = t.Elem() - } else { - return errors.New("value type must be a pointer") - } - sType := reflect.StructOf([]reflect.StructField{ - {Name: "Count", Type: reflect.TypeOf(0)}, - {Name: "Value", Type: t}, - }) - sv := reflect.New(sType) - err = json.Unmarshal(jsonValue, sv.Interface()) - if err != nil { - return err - } - - rv := reflect.ValueOf(v) - rv.Elem().Set(sv.Elem().FieldByName("Value")) - return nil -} - -// Returns slice of body without utf-8 byte order mark. -// If BOM does not exist body is returned unchanged. -func trimByteOrderMark(body []byte) []byte { - return bytes.TrimPrefix(body, []byte("\xef\xbb\xbf")) -} - -func (client *Client) UnwrapError(response *http.Response) (err error) { - if response.ContentLength == 0 { - message := "Request returned status: " + response.Status - return &WrappedError{ - Message: &message, - StatusCode: &response.StatusCode, - } - } - - defer func() { - if closeError := response.Body.Close(); closeError != nil { - err = closeError - } - }() - - body, err := ioutil.ReadAll(response.Body) - if err != nil { - return err - } - - body = trimByteOrderMark(body) - - contentType, ok := response.Header[headerKeyContentType] - if ok && len(contentType) > 0 && strings.Index(contentType[0], MediaTypeTextPlain) >= 0 { - message := string(body) - statusCode := response.StatusCode - return WrappedError{Message: &message, StatusCode: &statusCode} - } - - var wrappedError WrappedError - err = json.Unmarshal(body, &wrappedError) - wrappedError.StatusCode = &response.StatusCode - if err != nil { - return err - } - - if wrappedError.Message == nil { - var wrappedImproperError WrappedImproperError - err = json.Unmarshal(body, &wrappedImproperError) - if err == nil && wrappedImproperError.Value != nil && wrappedImproperError.Value.Message != nil { - return &WrappedError{ - Message: wrappedImproperError.Value.Message, - StatusCode: &response.StatusCode, - } - } - } - - return wrappedError -} - -func (client *Client) GetResourceAreas(ctx context.Context) (*[]ResourceAreaInfo, error) { - queryParams := url.Values{} - locationId, _ := uuid.Parse("e81700f7-3be2-46de-8624-2eb35882fcaa") - resp, err := client.Send(ctx, http.MethodGet, locationId, "5.1-preview.1", nil, queryParams, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue []ResourceAreaInfo - err = client.UnmarshalCollectionBody(resp, &responseValue) - return &responseValue, err -} - -type LocationIdNotRegisteredError struct { - LocationId uuid.UUID - Url string -} - -func (e LocationIdNotRegisteredError) Error() string { - return "API resource location " + e.LocationId.String() + " is not registered on " + e.Url + "." -} - -type InvalidApiVersion struct { - ApiVersion string -} - -func (e InvalidApiVersion) Error() string { - return "The requested api-version is not in a valid format: " + e.ApiVersion -} diff --git a/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/connection.go b/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/connection.go deleted file mode 100644 index 8b90ee40a..000000000 --- a/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/connection.go +++ /dev/null @@ -1,154 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package azuredevops - -import ( - "context" - "encoding/base64" - "github.com/google/uuid" - "strings" - "sync" - "time" -) - -// Creates a new Azure DevOps connection instance using a personal access token. -func NewPatConnection(organizationUrl string, personalAccessToken string) *Connection { - authorizationString := CreateBasicAuthHeaderValue("", personalAccessToken) - organizationUrl = normalizeUrl(organizationUrl) - return &Connection{ - AuthorizationString: authorizationString, - BaseUrl: organizationUrl, - SuppressFedAuthRedirect: true, - } -} - -func NewAnonymousConnection(organizationUrl string) *Connection { - organizationUrl = normalizeUrl(organizationUrl) - return &Connection{ - BaseUrl: organizationUrl, - SuppressFedAuthRedirect: true, - } -} - -type Connection struct { - AuthorizationString string - BaseUrl string - UserAgent string - SuppressFedAuthRedirect bool - ForceMsaPassThrough bool - Timeout *time.Duration - clientCache map[string]Client - clientCacheLock sync.RWMutex - resourceAreaCache map[uuid.UUID]ResourceAreaInfo - resourceAreaCacheLock sync.RWMutex -} - -func CreateBasicAuthHeaderValue(username, password string) string { - auth := username + ":" + password - return "Basic " + base64.StdEncoding.EncodeToString([]byte(auth)) -} - -func normalizeUrl(url string) string { - return strings.ToLower(strings.TrimRight(url, "/")) -} - -func (connection *Connection) GetClientByResourceAreaId(ctx context.Context, resourceAreaID uuid.UUID) (*Client, error) { - resourceAreaInfo, err := connection.getResourceAreaInfo(ctx, resourceAreaID) - if err != nil { - return nil, err - } - var client *Client - if resourceAreaInfo != nil { - client = connection.GetClientByUrl(*resourceAreaInfo.LocationUrl) - } else { - // resourceAreaInfo will be nil for on prem servers - client = connection.GetClientByUrl(connection.BaseUrl) - } - return client, nil -} - -func (connection *Connection) GetClientByUrl(baseUrl string) *Client { - normalizedUrl := normalizeUrl(baseUrl) - azureDevOpsClient, ok := connection.getClientCacheEntry(normalizedUrl) - if !ok { - azureDevOpsClient = NewClient(connection, normalizedUrl) - connection.setClientCacheEntry(normalizedUrl, azureDevOpsClient) - } - return azureDevOpsClient -} - -func (connection *Connection) getResourceAreaInfo(ctx context.Context, resourceAreaId uuid.UUID) (*ResourceAreaInfo, error) { - resourceAreaInfo, ok := connection.getResourceAreaCacheEntry(resourceAreaId) - if !ok { - client := connection.GetClientByUrl(connection.BaseUrl) - resourceAreaInfos, err := client.GetResourceAreas(ctx) - if err != nil { - return nil, err - } - - if len(*resourceAreaInfos) > 0 { - for _, resourceEntry := range *resourceAreaInfos { - connection.setResourceAreaCacheEntry(*resourceEntry.Id, &resourceEntry) - } - resourceAreaInfo, ok = connection.getResourceAreaCacheEntry(resourceAreaId) - } else { - // on prem servers return an empty list - return nil, nil - } - } - - if ok { - return resourceAreaInfo, nil - } - - return nil, &ResourceAreaIdNotRegisteredError{resourceAreaId, connection.BaseUrl} -} - -// Client Cache by Url -func (connection *Connection) getClientCacheEntry(url string) (*Client, bool) { - if connection.clientCache == nil { - return nil, false - } - connection.clientCacheLock.RLock() - defer connection.clientCacheLock.RUnlock() - client, ok := connection.clientCache[url] - return &client, ok -} - -func (connection *Connection) setClientCacheEntry(url string, client *Client) { - connection.clientCacheLock.Lock() - defer connection.clientCacheLock.Unlock() - if connection.clientCache == nil { - connection.clientCache = make(map[string]Client) - } - connection.clientCache[url] = *client -} - -func (connection *Connection) getResourceAreaCacheEntry(resourceAreaId uuid.UUID) (*ResourceAreaInfo, bool) { - if connection.resourceAreaCache == nil { - return nil, false - } - connection.resourceAreaCacheLock.RLock() - defer connection.resourceAreaCacheLock.RUnlock() - resourceAreaInfo, ok := connection.resourceAreaCache[resourceAreaId] - return &resourceAreaInfo, ok -} - -func (connection *Connection) setResourceAreaCacheEntry(resourceAreaId uuid.UUID, resourceAreaInfo *ResourceAreaInfo) { - connection.resourceAreaCacheLock.Lock() - defer connection.resourceAreaCacheLock.Unlock() - if connection.resourceAreaCache == nil { - connection.resourceAreaCache = make(map[uuid.UUID]ResourceAreaInfo) - } - connection.resourceAreaCache[resourceAreaId] = *resourceAreaInfo -} - -type ResourceAreaIdNotRegisteredError struct { - ResourceAreaId uuid.UUID - Url string -} - -func (e ResourceAreaIdNotRegisteredError) Error() string { - return "API resource area Id " + e.ResourceAreaId.String() + " is not registered on " + e.Url + "." -} diff --git a/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/delegatedauthorization/models.go b/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/delegatedauthorization/models.go deleted file mode 100644 index e26fb557c..000000000 --- a/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/delegatedauthorization/models.go +++ /dev/null @@ -1,350 +0,0 @@ -// -------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// -------------------------------------------------------------------------------------------- -// Generated file, DO NOT EDIT -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// -------------------------------------------------------------------------------------------- - -package delegatedauthorization - -import ( - "github.com/google/uuid" - "github.com/microsoft/azure-devops-go-api/azuredevops" - "github.com/microsoft/azure-devops-go-api/azuredevops/webapi" -) - -type AccessTokenResult struct { - AccessToken *webapi.JsonWebToken `json:"accessToken,omitempty"` - AccessTokenError *TokenError `json:"accessTokenError,omitempty"` - AuthorizationId *uuid.UUID `json:"authorizationId,omitempty"` - ErrorDescription *string `json:"errorDescription,omitempty"` - HasError *bool `json:"hasError,omitempty"` - RefreshToken *RefreshTokenGrant `json:"refreshToken,omitempty"` - TokenType *string `json:"tokenType,omitempty"` - ValidTo *azuredevops.Time `json:"validTo,omitempty"` -} - -type Authorization struct { - AccessIssued *azuredevops.Time `json:"accessIssued,omitempty"` - Audience *string `json:"audience,omitempty"` - AuthorizationId *uuid.UUID `json:"authorizationId,omitempty"` - IdentityId *uuid.UUID `json:"identityId,omitempty"` - IsAccessUsed *bool `json:"isAccessUsed,omitempty"` - IsValid *bool `json:"isValid,omitempty"` - RedirectUri *string `json:"redirectUri,omitempty"` - RegistrationId *uuid.UUID `json:"registrationId,omitempty"` - Scopes *string `json:"scopes,omitempty"` - Source *string `json:"source,omitempty"` - ValidFrom *azuredevops.Time `json:"validFrom,omitempty"` - ValidTo *azuredevops.Time `json:"validTo,omitempty"` -} - -type AuthorizationDecision struct { - Authorization *Authorization `json:"authorization,omitempty"` - AuthorizationError *AuthorizationError `json:"authorizationError,omitempty"` - AuthorizationGrant *AuthorizationGrant `json:"authorizationGrant,omitempty"` - HasError *bool `json:"hasError,omitempty"` - IsAuthorized *bool `json:"isAuthorized,omitempty"` -} - -type AuthorizationDescription struct { - ClientRegistration *Registration `json:"clientRegistration,omitempty"` - HasError *bool `json:"hasError,omitempty"` - InitiationError *InitiationError `json:"initiationError,omitempty"` - ScopeDescriptions *[]AuthorizationScopeDescription `json:"scopeDescriptions,omitempty"` -} - -type AuthorizationDetails struct { - Authorization *Authorization `json:"authorization,omitempty"` - ClientRegistration *Registration `json:"clientRegistration,omitempty"` - ScopeDescriptions *[]AuthorizationScopeDescription `json:"scopeDescriptions,omitempty"` -} - -type AuthorizationError string - -type authorizationErrorValuesType struct { - None AuthorizationError - ClientIdRequired AuthorizationError - InvalidClientId AuthorizationError - ResponseTypeRequired AuthorizationError - ResponseTypeNotSupported AuthorizationError - ScopeRequired AuthorizationError - InvalidScope AuthorizationError - RedirectUriRequired AuthorizationError - InsecureRedirectUri AuthorizationError - InvalidRedirectUri AuthorizationError - InvalidUserId AuthorizationError - InvalidUserType AuthorizationError - AccessDenied AuthorizationError -} - -var AuthorizationErrorValues = authorizationErrorValuesType{ - None: "none", - ClientIdRequired: "clientIdRequired", - InvalidClientId: "invalidClientId", - ResponseTypeRequired: "responseTypeRequired", - ResponseTypeNotSupported: "responseTypeNotSupported", - ScopeRequired: "scopeRequired", - InvalidScope: "invalidScope", - RedirectUriRequired: "redirectUriRequired", - InsecureRedirectUri: "insecureRedirectUri", - InvalidRedirectUri: "invalidRedirectUri", - InvalidUserId: "invalidUserId", - InvalidUserType: "invalidUserType", - AccessDenied: "accessDenied", -} - -type AuthorizationGrant struct { - GrantType *GrantType `json:"grantType,omitempty"` -} - -type AuthorizationScopeDescription struct { - Description *string `json:"description,omitempty"` - Market *string `json:"market,omitempty"` - Title *string `json:"title,omitempty"` -} - -type ClientType string - -type clientTypeValuesType struct { - Confidential ClientType - Public ClientType - MediumTrust ClientType - HighTrust ClientType - FullTrust ClientType -} - -var ClientTypeValues = clientTypeValuesType{ - Confidential: "confidential", - Public: "public", - MediumTrust: "mediumTrust", - HighTrust: "highTrust", - FullTrust: "fullTrust", -} - -type GrantType string - -type grantTypeValuesType struct { - None GrantType - JwtBearer GrantType - RefreshToken GrantType - Implicit GrantType - ClientCredentials GrantType -} - -var GrantTypeValues = grantTypeValuesType{ - None: "none", - JwtBearer: "jwtBearer", - RefreshToken: "refreshToken", - Implicit: "implicit", - ClientCredentials: "clientCredentials", -} - -type HostAuthorization struct { - HostId *uuid.UUID `json:"hostId,omitempty"` - Id *uuid.UUID `json:"id,omitempty"` - IsValid *bool `json:"isValid,omitempty"` - RegistrationId *uuid.UUID `json:"registrationId,omitempty"` -} - -type HostAuthorizationDecision struct { - HasError *bool `json:"hasError,omitempty"` - HostAuthorizationError *HostAuthorizationError `json:"hostAuthorizationError,omitempty"` - HostAuthorizationId *uuid.UUID `json:"hostAuthorizationId,omitempty"` -} - -type HostAuthorizationError string - -type hostAuthorizationErrorValuesType struct { - None HostAuthorizationError - ClientIdRequired HostAuthorizationError - AccessDenied HostAuthorizationError - FailedToAuthorizeHost HostAuthorizationError - ClientIdNotFound HostAuthorizationError - InvalidClientId HostAuthorizationError -} - -var HostAuthorizationErrorValues = hostAuthorizationErrorValuesType{ - None: "none", - ClientIdRequired: "clientIdRequired", - AccessDenied: "accessDenied", - FailedToAuthorizeHost: "failedToAuthorizeHost", - ClientIdNotFound: "clientIdNotFound", - InvalidClientId: "invalidClientId", -} - -type InitiationError string - -type initiationErrorValuesType struct { - None InitiationError - ClientIdRequired InitiationError - InvalidClientId InitiationError - ResponseTypeRequired InitiationError - ResponseTypeNotSupported InitiationError - ScopeRequired InitiationError - InvalidScope InitiationError - RedirectUriRequired InitiationError - InsecureRedirectUri InitiationError - InvalidRedirectUri InitiationError -} - -var InitiationErrorValues = initiationErrorValuesType{ - None: "none", - ClientIdRequired: "clientIdRequired", - InvalidClientId: "invalidClientId", - ResponseTypeRequired: "responseTypeRequired", - ResponseTypeNotSupported: "responseTypeNotSupported", - ScopeRequired: "scopeRequired", - InvalidScope: "invalidScope", - RedirectUriRequired: "redirectUriRequired", - InsecureRedirectUri: "insecureRedirectUri", - InvalidRedirectUri: "invalidRedirectUri", -} - -type RefreshTokenGrant struct { - GrantType *GrantType `json:"grantType,omitempty"` - Jwt *webapi.JsonWebToken `json:"jwt,omitempty"` -} - -type Registration struct { - ClientType *ClientType `json:"clientType,omitempty"` - IdentityId *uuid.UUID `json:"identityId,omitempty"` - Issuer *string `json:"issuer,omitempty"` - IsValid *bool `json:"isValid,omitempty"` - IsWellKnown *bool `json:"isWellKnown,omitempty"` - OrganizationLocation *string `json:"organizationLocation,omitempty"` - OrganizationName *string `json:"organizationName,omitempty"` - // Raw cert data string from public key. This will be used for authenticating medium trust clients. - PublicKey *string `json:"publicKey,omitempty"` - RedirectUris *[]string `json:"redirectUris,omitempty"` - RegistrationDescription *string `json:"registrationDescription,omitempty"` - RegistrationId *uuid.UUID `json:"registrationId,omitempty"` - RegistrationLocation *string `json:"registrationLocation,omitempty"` - RegistrationLogoSecureLocation *string `json:"registrationLogoSecureLocation,omitempty"` - RegistrationName *string `json:"registrationName,omitempty"` - RegistrationPrivacyStatementLocation *string `json:"registrationPrivacyStatementLocation,omitempty"` - RegistrationTermsOfServiceLocation *string `json:"registrationTermsOfServiceLocation,omitempty"` - ResponseTypes *string `json:"responseTypes,omitempty"` - Scopes *string `json:"scopes,omitempty"` - Secret *string `json:"secret,omitempty"` - SecretValidTo *azuredevops.Time `json:"secretValidTo,omitempty"` - SecretVersionId *uuid.UUID `json:"secretVersionId,omitempty"` - ValidFrom *azuredevops.Time `json:"validFrom,omitempty"` -} - -type ResponseType string - -type responseTypeValuesType struct { - None ResponseType - Assertion ResponseType - IdToken ResponseType - TenantPicker ResponseType - SignoutToken ResponseType - AppToken ResponseType - Code ResponseType -} - -var ResponseTypeValues = responseTypeValuesType{ - None: "none", - Assertion: "assertion", - IdToken: "idToken", - TenantPicker: "tenantPicker", - SignoutToken: "signoutToken", - AppToken: "appToken", - Code: "code", -} - -type SessionToken struct { - AccessId *uuid.UUID `json:"accessId,omitempty"` - // This is populated when user requests a compact token. The alternate token value is self describing token. - AlternateToken *string `json:"alternateToken,omitempty"` - AuthorizationId *uuid.UUID `json:"authorizationId,omitempty"` - Claims *map[string]string `json:"claims,omitempty"` - ClientId *uuid.UUID `json:"clientId,omitempty"` - DisplayName *string `json:"displayName,omitempty"` - HostAuthorizationId *uuid.UUID `json:"hostAuthorizationId,omitempty"` - IsPublic *bool `json:"isPublic,omitempty"` - IsValid *bool `json:"isValid,omitempty"` - PublicData *string `json:"publicData,omitempty"` - Scope *string `json:"scope,omitempty"` - Source *string `json:"source,omitempty"` - TargetAccounts *[]uuid.UUID `json:"targetAccounts,omitempty"` - // This is computed and not returned in Get queries - Token *string `json:"token,omitempty"` - UserId *uuid.UUID `json:"userId,omitempty"` - ValidFrom *azuredevops.Time `json:"validFrom,omitempty"` - ValidTo *azuredevops.Time `json:"validTo,omitempty"` -} - -type TokenError string - -type tokenErrorValuesType struct { - None TokenError - GrantTypeRequired TokenError - AuthorizationGrantRequired TokenError - ClientSecretRequired TokenError - RedirectUriRequired TokenError - InvalidAuthorizationGrant TokenError - InvalidAuthorizationScopes TokenError - InvalidRefreshToken TokenError - AuthorizationNotFound TokenError - AuthorizationGrantExpired TokenError - AccessAlreadyIssued TokenError - InvalidRedirectUri TokenError - AccessTokenNotFound TokenError - InvalidAccessToken TokenError - AccessTokenAlreadyRefreshed TokenError - InvalidClientSecret TokenError - ClientSecretExpired TokenError - ServerError TokenError - AccessDenied TokenError - AccessTokenKeyRequired TokenError - InvalidAccessTokenKey TokenError - FailedToGetAccessToken TokenError - InvalidClientId TokenError - InvalidClient TokenError - InvalidValidTo TokenError - InvalidUserId TokenError - FailedToIssueAccessToken TokenError - AuthorizationGrantScopeMissing TokenError - InvalidPublicAccessTokenKey TokenError - InvalidPublicAccessToken TokenError - PublicFeatureFlagNotEnabled TokenError - SshPolicyDisabled TokenError -} - -var TokenErrorValues = tokenErrorValuesType{ - None: "none", - GrantTypeRequired: "grantTypeRequired", - AuthorizationGrantRequired: "authorizationGrantRequired", - ClientSecretRequired: "clientSecretRequired", - RedirectUriRequired: "redirectUriRequired", - InvalidAuthorizationGrant: "invalidAuthorizationGrant", - InvalidAuthorizationScopes: "invalidAuthorizationScopes", - InvalidRefreshToken: "invalidRefreshToken", - AuthorizationNotFound: "authorizationNotFound", - AuthorizationGrantExpired: "authorizationGrantExpired", - AccessAlreadyIssued: "accessAlreadyIssued", - InvalidRedirectUri: "invalidRedirectUri", - AccessTokenNotFound: "accessTokenNotFound", - InvalidAccessToken: "invalidAccessToken", - AccessTokenAlreadyRefreshed: "accessTokenAlreadyRefreshed", - InvalidClientSecret: "invalidClientSecret", - ClientSecretExpired: "clientSecretExpired", - ServerError: "serverError", - AccessDenied: "accessDenied", - AccessTokenKeyRequired: "accessTokenKeyRequired", - InvalidAccessTokenKey: "invalidAccessTokenKey", - FailedToGetAccessToken: "failedToGetAccessToken", - InvalidClientId: "invalidClientId", - InvalidClient: "invalidClient", - InvalidValidTo: "invalidValidTo", - InvalidUserId: "invalidUserId", - FailedToIssueAccessToken: "failedToIssueAccessToken", - AuthorizationGrantScopeMissing: "authorizationGrantScopeMissing", - InvalidPublicAccessTokenKey: "invalidPublicAccessTokenKey", - InvalidPublicAccessToken: "invalidPublicAccessToken", - PublicFeatureFlagNotEnabled: "publicFeatureFlagNotEnabled", - SshPolicyDisabled: "sshPolicyDisabled", -} diff --git a/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/errors.go b/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/errors.go deleted file mode 100644 index e7cf6a377..000000000 --- a/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/errors.go +++ /dev/null @@ -1,17 +0,0 @@ -package azuredevops - -type ArgumentNilError struct { - ArgumentName string -} - -func (e ArgumentNilError) Error() string { - return "Argument " + e.ArgumentName + " can not be nil" -} - -type ArgumentNilOrEmptyError struct { - ArgumentName string -} - -func (e ArgumentNilOrEmptyError) Error() string { - return "Argument " + e.ArgumentName + " can not be nil or empty" -} diff --git a/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/identity/client.go b/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/identity/client.go deleted file mode 100644 index 226eab918..000000000 --- a/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/identity/client.go +++ /dev/null @@ -1,996 +0,0 @@ -// -------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// -------------------------------------------------------------------------------------------- -// Generated file, DO NOT EDIT -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// -------------------------------------------------------------------------------------------- - -package identity - -import ( - "bytes" - "context" - "encoding/json" - "github.com/google/uuid" - "github.com/microsoft/azure-devops-go-api/azuredevops" - "github.com/microsoft/azure-devops-go-api/azuredevops/delegatedauthorization" - "github.com/microsoft/azure-devops-go-api/azuredevops/webapi" - "net/http" - "net/url" - "strconv" -) - -var ResourceAreaId, _ = uuid.Parse("8a3d49b8-91f0-46ef-b33d-dda338c25db3") - -type Client interface { - // [Preview API] - AddMember(context.Context, AddMemberArgs) (*bool, error) - CreateGroups(context.Context, CreateGroupsArgs) (*[]Identity, error) - CreateIdentity(context.Context, CreateIdentityArgs) (*Identity, error) - // [Preview API] - CreateOrBindWithClaims(context.Context, CreateOrBindWithClaimsArgs) (*Identity, error) - // [Preview API] - CreateScope(context.Context, CreateScopeArgs) (*IdentityScope, error) - DeleteGroup(context.Context, DeleteGroupArgs) error - // [Preview API] - DeleteScope(context.Context, DeleteScopeArgs) error - // [Preview API] - GetDescriptorById(context.Context, GetDescriptorByIdArgs) (*string, error) - GetIdentityChanges(context.Context, GetIdentityChangesArgs) (*ChangedIdentities, error) - // [Preview API] - GetIdentitySnapshot(context.Context, GetIdentitySnapshotArgs) (*IdentitySnapshot, error) - // Read the max sequence id of all the identities. - GetMaxSequenceId(context.Context, GetMaxSequenceIdArgs) (*uint64, error) - // [Preview API] - GetScopeById(context.Context, GetScopeByIdArgs) (*IdentityScope, error) - // [Preview API] - GetScopeByName(context.Context, GetScopeByNameArgs) (*IdentityScope, error) - // Read identity of the home tenant request user. - GetSelf(context.Context, GetSelfArgs) (*IdentitySelf, error) - // [Preview API] - GetSignedInToken(context.Context, GetSignedInTokenArgs) (*delegatedauthorization.AccessTokenResult, error) - // [Preview API] - GetSignoutToken(context.Context, GetSignoutTokenArgs) (*delegatedauthorization.AccessTokenResult, error) - // [Preview API] - GetTenant(context.Context, GetTenantArgs) (*TenantInfo, error) - GetUserIdentityIdsByDomainId(context.Context, GetUserIdentityIdsByDomainIdArgs) (*[]uuid.UUID, error) - ListGroups(context.Context, ListGroupsArgs) (*[]Identity, error) - ReadIdentities(context.Context, ReadIdentitiesArgs) (*[]Identity, error) - ReadIdentitiesByScope(context.Context, ReadIdentitiesByScopeArgs) (*[]Identity, error) - ReadIdentity(context.Context, ReadIdentityArgs) (*Identity, error) - // [Preview API] - ReadIdentityBatch(context.Context, ReadIdentityBatchArgs) (*[]Identity, error) - // [Preview API] - ReadMember(context.Context, ReadMemberArgs) (*string, error) - // [Preview API] - ReadMemberOf(context.Context, ReadMemberOfArgs) (*string, error) - // [Preview API] - ReadMembers(context.Context, ReadMembersArgs) (*[]string, error) - // [Preview API] - ReadMembersOf(context.Context, ReadMembersOfArgs) (*[]string, error) - // [Preview API] - RemoveMember(context.Context, RemoveMemberArgs) (*bool, error) - UpdateIdentities(context.Context, UpdateIdentitiesArgs) (*[]IdentityUpdateData, error) - UpdateIdentity(context.Context, UpdateIdentityArgs) error - // [Preview API] - UpdateScope(context.Context, UpdateScopeArgs) error -} - -type ClientImpl struct { - Client azuredevops.Client -} - -func NewClient(ctx context.Context, connection *azuredevops.Connection) (Client, error) { - client, err := connection.GetClientByResourceAreaId(ctx, ResourceAreaId) - if err != nil { - return nil, err - } - return &ClientImpl{ - Client: *client, - }, nil -} - -// [Preview API] -func (client *ClientImpl) AddMember(ctx context.Context, args AddMemberArgs) (*bool, error) { - routeValues := make(map[string]string) - if args.ContainerId == nil || *args.ContainerId == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.ContainerId"} - } - routeValues["containerId"] = *args.ContainerId - if args.MemberId == nil || *args.MemberId == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.MemberId"} - } - routeValues["memberId"] = *args.MemberId - - locationId, _ := uuid.Parse("8ba35978-138e-41f8-8963-7b1ea2c5f775") - resp, err := client.Client.Send(ctx, http.MethodPut, locationId, "5.1-preview.1", routeValues, nil, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue bool - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the AddMember function -type AddMemberArgs struct { - // (required) - ContainerId *string - // (required) - MemberId *string -} - -func (client *ClientImpl) CreateGroups(ctx context.Context, args CreateGroupsArgs) (*[]Identity, error) { - if args.Container == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.Container"} - } - body, marshalErr := json.Marshal(args.Container) - if marshalErr != nil { - return nil, marshalErr - } - locationId, _ := uuid.Parse("5966283b-4196-4d57-9211-1b68f41ec1c2") - resp, err := client.Client.Send(ctx, http.MethodPost, locationId, "5.1", nil, nil, bytes.NewReader(body), "application/json", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue []Identity - err = client.Client.UnmarshalCollectionBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the CreateGroups function -type CreateGroupsArgs struct { - // (required) - Container interface{} -} - -func (client *ClientImpl) CreateIdentity(ctx context.Context, args CreateIdentityArgs) (*Identity, error) { - if args.FrameworkIdentityInfo == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.FrameworkIdentityInfo"} - } - body, marshalErr := json.Marshal(*args.FrameworkIdentityInfo) - if marshalErr != nil { - return nil, marshalErr - } - locationId, _ := uuid.Parse("dd55f0eb-6ea2-4fe4-9ebe-919e7dd1dfb4") - resp, err := client.Client.Send(ctx, http.MethodPut, locationId, "5.1", nil, nil, bytes.NewReader(body), "application/json", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue Identity - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the CreateIdentity function -type CreateIdentityArgs struct { - // (required) - FrameworkIdentityInfo *FrameworkIdentityInfo -} - -// [Preview API] -func (client *ClientImpl) CreateOrBindWithClaims(ctx context.Context, args CreateOrBindWithClaimsArgs) (*Identity, error) { - if args.SourceIdentity == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.SourceIdentity"} - } - body, marshalErr := json.Marshal(*args.SourceIdentity) - if marshalErr != nil { - return nil, marshalErr - } - locationId, _ := uuid.Parse("90ddfe71-171c-446c-bf3b-b597cd562afd") - resp, err := client.Client.Send(ctx, http.MethodPut, locationId, "5.1-preview.1", nil, nil, bytes.NewReader(body), "application/json", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue Identity - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the CreateOrBindWithClaims function -type CreateOrBindWithClaimsArgs struct { - // (required) - SourceIdentity *Identity -} - -// [Preview API] -func (client *ClientImpl) CreateScope(ctx context.Context, args CreateScopeArgs) (*IdentityScope, error) { - if args.Info == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.Info"} - } - routeValues := make(map[string]string) - if args.ScopeId == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.ScopeId"} - } - routeValues["scopeId"] = (*args.ScopeId).String() - - body, marshalErr := json.Marshal(*args.Info) - if marshalErr != nil { - return nil, marshalErr - } - locationId, _ := uuid.Parse("4e11e2bf-1e79-4eb5-8f34-a6337bd0de38") - resp, err := client.Client.Send(ctx, http.MethodPut, locationId, "5.1-preview.2", routeValues, nil, bytes.NewReader(body), "application/json", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue IdentityScope - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the CreateScope function -type CreateScopeArgs struct { - // (required) - Info *CreateScopeInfo - // (required) - ScopeId *uuid.UUID -} - -func (client *ClientImpl) DeleteGroup(ctx context.Context, args DeleteGroupArgs) error { - routeValues := make(map[string]string) - if args.GroupId == nil || *args.GroupId == "" { - return &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.GroupId"} - } - routeValues["groupId"] = *args.GroupId - - locationId, _ := uuid.Parse("5966283b-4196-4d57-9211-1b68f41ec1c2") - _, err := client.Client.Send(ctx, http.MethodDelete, locationId, "5.1", routeValues, nil, nil, "", "application/json", nil) - if err != nil { - return err - } - - return nil -} - -// Arguments for the DeleteGroup function -type DeleteGroupArgs struct { - // (required) - GroupId *string -} - -// [Preview API] -func (client *ClientImpl) DeleteScope(ctx context.Context, args DeleteScopeArgs) error { - routeValues := make(map[string]string) - if args.ScopeId == nil { - return &azuredevops.ArgumentNilError{ArgumentName: "args.ScopeId"} - } - routeValues["scopeId"] = (*args.ScopeId).String() - - locationId, _ := uuid.Parse("4e11e2bf-1e79-4eb5-8f34-a6337bd0de38") - _, err := client.Client.Send(ctx, http.MethodDelete, locationId, "5.1-preview.2", routeValues, nil, nil, "", "application/json", nil) - if err != nil { - return err - } - - return nil -} - -// Arguments for the DeleteScope function -type DeleteScopeArgs struct { - // (required) - ScopeId *uuid.UUID -} - -// [Preview API] -func (client *ClientImpl) GetDescriptorById(ctx context.Context, args GetDescriptorByIdArgs) (*string, error) { - routeValues := make(map[string]string) - if args.Id == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.Id"} - } - routeValues["id"] = (*args.Id).String() - - queryParams := url.Values{} - if args.IsMasterId != nil { - queryParams.Add("isMasterId", strconv.FormatBool(*args.IsMasterId)) - } - locationId, _ := uuid.Parse("a230389a-94f2-496c-839f-c929787496dd") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1-preview.1", routeValues, queryParams, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue string - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetDescriptorById function -type GetDescriptorByIdArgs struct { - // (required) - Id *uuid.UUID - // (optional) - IsMasterId *bool -} - -func (client *ClientImpl) GetIdentityChanges(ctx context.Context, args GetIdentityChangesArgs) (*ChangedIdentities, error) { - queryParams := url.Values{} - if args.IdentitySequenceId == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "identitySequenceId"} - } - queryParams.Add("identitySequenceId", strconv.Itoa(*args.IdentitySequenceId)) - if args.GroupSequenceId == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "groupSequenceId"} - } - queryParams.Add("groupSequenceId", strconv.Itoa(*args.GroupSequenceId)) - if args.OrganizationIdentitySequenceId != nil { - queryParams.Add("organizationIdentitySequenceId", strconv.Itoa(*args.OrganizationIdentitySequenceId)) - } - if args.PageSize != nil { - queryParams.Add("pageSize", strconv.Itoa(*args.PageSize)) - } - if args.ScopeId != nil { - queryParams.Add("scopeId", (*args.ScopeId).String()) - } - locationId, _ := uuid.Parse("28010c54-d0c0-4c89-a5b0-1c9e188b9fb7") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1", nil, queryParams, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue ChangedIdentities - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetIdentityChanges function -type GetIdentityChangesArgs struct { - // (required) - IdentitySequenceId *int - // (required) - GroupSequenceId *int - // (optional) - OrganizationIdentitySequenceId *int - // (optional) - PageSize *int - // (optional) - ScopeId *uuid.UUID -} - -// [Preview API] -func (client *ClientImpl) GetIdentitySnapshot(ctx context.Context, args GetIdentitySnapshotArgs) (*IdentitySnapshot, error) { - routeValues := make(map[string]string) - if args.ScopeId == nil || *args.ScopeId == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.ScopeId"} - } - routeValues["scopeId"] = *args.ScopeId - - locationId, _ := uuid.Parse("d56223df-8ccd-45c9-89b4-eddf692400d7") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1-preview.1", routeValues, nil, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue IdentitySnapshot - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetIdentitySnapshot function -type GetIdentitySnapshotArgs struct { - // (required) - ScopeId *string -} - -// Read the max sequence id of all the identities. -func (client *ClientImpl) GetMaxSequenceId(ctx context.Context, args GetMaxSequenceIdArgs) (*uint64, error) { - locationId, _ := uuid.Parse("e4a70778-cb2c-4e85-b7cc-3f3c7ae2d408") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1", nil, nil, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue uint64 - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetMaxSequenceId function -type GetMaxSequenceIdArgs struct { -} - -// [Preview API] -func (client *ClientImpl) GetScopeById(ctx context.Context, args GetScopeByIdArgs) (*IdentityScope, error) { - routeValues := make(map[string]string) - if args.ScopeId == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.ScopeId"} - } - routeValues["scopeId"] = (*args.ScopeId).String() - - locationId, _ := uuid.Parse("4e11e2bf-1e79-4eb5-8f34-a6337bd0de38") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1-preview.2", routeValues, nil, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue IdentityScope - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetScopeById function -type GetScopeByIdArgs struct { - // (required) - ScopeId *uuid.UUID -} - -// [Preview API] -func (client *ClientImpl) GetScopeByName(ctx context.Context, args GetScopeByNameArgs) (*IdentityScope, error) { - queryParams := url.Values{} - if args.ScopeName == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "scopeName"} - } - queryParams.Add("scopeName", *args.ScopeName) - locationId, _ := uuid.Parse("4e11e2bf-1e79-4eb5-8f34-a6337bd0de38") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1-preview.2", nil, queryParams, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue IdentityScope - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetScopeByName function -type GetScopeByNameArgs struct { - // (required) - ScopeName *string -} - -// Read identity of the home tenant request user. -func (client *ClientImpl) GetSelf(ctx context.Context, args GetSelfArgs) (*IdentitySelf, error) { - locationId, _ := uuid.Parse("4bb02b5b-c120-4be2-b68e-21f7c50a4b82") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1", nil, nil, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue IdentitySelf - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetSelf function -type GetSelfArgs struct { -} - -// [Preview API] -func (client *ClientImpl) GetSignedInToken(ctx context.Context, args GetSignedInTokenArgs) (*delegatedauthorization.AccessTokenResult, error) { - locationId, _ := uuid.Parse("6074ff18-aaad-4abb-a41e-5c75f6178057") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1-preview.1", nil, nil, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue delegatedauthorization.AccessTokenResult - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetSignedInToken function -type GetSignedInTokenArgs struct { -} - -// [Preview API] -func (client *ClientImpl) GetSignoutToken(ctx context.Context, args GetSignoutTokenArgs) (*delegatedauthorization.AccessTokenResult, error) { - locationId, _ := uuid.Parse("be39e83c-7529-45e9-9c67-0410885880da") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1-preview.1", nil, nil, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue delegatedauthorization.AccessTokenResult - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetSignoutToken function -type GetSignoutTokenArgs struct { -} - -// [Preview API] -func (client *ClientImpl) GetTenant(ctx context.Context, args GetTenantArgs) (*TenantInfo, error) { - routeValues := make(map[string]string) - if args.TenantId == nil || *args.TenantId == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.TenantId"} - } - routeValues["tenantId"] = *args.TenantId - - locationId, _ := uuid.Parse("5f0a1723-2e2c-4c31-8cae-002d01bdd592") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1-preview.1", routeValues, nil, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue TenantInfo - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetTenant function -type GetTenantArgs struct { - // (required) - TenantId *string -} - -func (client *ClientImpl) GetUserIdentityIdsByDomainId(ctx context.Context, args GetUserIdentityIdsByDomainIdArgs) (*[]uuid.UUID, error) { - queryParams := url.Values{} - if args.DomainId == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "domainId"} - } - queryParams.Add("domainId", (*args.DomainId).String()) - locationId, _ := uuid.Parse("28010c54-d0c0-4c89-a5b0-1c9e188b9fb7") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1", nil, queryParams, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue []uuid.UUID - err = client.Client.UnmarshalCollectionBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetUserIdentityIdsByDomainId function -type GetUserIdentityIdsByDomainIdArgs struct { - // (required) - DomainId *uuid.UUID -} - -func (client *ClientImpl) ListGroups(ctx context.Context, args ListGroupsArgs) (*[]Identity, error) { - queryParams := url.Values{} - if args.ScopeIds != nil { - queryParams.Add("scopeIds", *args.ScopeIds) - } - if args.Recurse != nil { - queryParams.Add("recurse", strconv.FormatBool(*args.Recurse)) - } - if args.Deleted != nil { - queryParams.Add("deleted", strconv.FormatBool(*args.Deleted)) - } - if args.Properties != nil { - queryParams.Add("properties", *args.Properties) - } - locationId, _ := uuid.Parse("5966283b-4196-4d57-9211-1b68f41ec1c2") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1", nil, queryParams, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue []Identity - err = client.Client.UnmarshalCollectionBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the ListGroups function -type ListGroupsArgs struct { - // (optional) - ScopeIds *string - // (optional) - Recurse *bool - // (optional) - Deleted *bool - // (optional) - Properties *string -} - -func (client *ClientImpl) ReadIdentities(ctx context.Context, args ReadIdentitiesArgs) (*[]Identity, error) { - queryParams := url.Values{} - if args.Descriptors != nil { - queryParams.Add("descriptors", *args.Descriptors) - } - if args.IdentityIds != nil { - queryParams.Add("identityIds", *args.IdentityIds) - } - if args.SubjectDescriptors != nil { - queryParams.Add("subjectDescriptors", *args.SubjectDescriptors) - } - if args.SocialDescriptors != nil { - queryParams.Add("socialDescriptors", *args.SocialDescriptors) - } - if args.SearchFilter != nil { - queryParams.Add("searchFilter", *args.SearchFilter) - } - if args.FilterValue != nil { - queryParams.Add("filterValue", *args.FilterValue) - } - if args.QueryMembership != nil { - queryParams.Add("queryMembership", string(*args.QueryMembership)) - } - if args.Properties != nil { - queryParams.Add("properties", *args.Properties) - } - if args.IncludeRestrictedVisibility != nil { - queryParams.Add("includeRestrictedVisibility", strconv.FormatBool(*args.IncludeRestrictedVisibility)) - } - if args.Options != nil { - queryParams.Add("options", string(*args.Options)) - } - locationId, _ := uuid.Parse("28010c54-d0c0-4c89-a5b0-1c9e188b9fb7") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1", nil, queryParams, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue []Identity - err = client.Client.UnmarshalCollectionBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the ReadIdentities function -type ReadIdentitiesArgs struct { - // (optional) - Descriptors *string - // (optional) - IdentityIds *string - // (optional) - SubjectDescriptors *string - // (optional) - SocialDescriptors *string - // (optional) - SearchFilter *string - // (optional) - FilterValue *string - // (optional) - QueryMembership *QueryMembership - // (optional) - Properties *string - // (optional) - IncludeRestrictedVisibility *bool - // (optional) - Options *ReadIdentitiesOptions -} - -func (client *ClientImpl) ReadIdentitiesByScope(ctx context.Context, args ReadIdentitiesByScopeArgs) (*[]Identity, error) { - queryParams := url.Values{} - if args.ScopeId == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "scopeId"} - } - queryParams.Add("scopeId", (*args.ScopeId).String()) - if args.QueryMembership != nil { - queryParams.Add("queryMembership", string(*args.QueryMembership)) - } - if args.Properties != nil { - queryParams.Add("properties", *args.Properties) - } - locationId, _ := uuid.Parse("28010c54-d0c0-4c89-a5b0-1c9e188b9fb7") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1", nil, queryParams, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue []Identity - err = client.Client.UnmarshalCollectionBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the ReadIdentitiesByScope function -type ReadIdentitiesByScopeArgs struct { - // (required) - ScopeId *uuid.UUID - // (optional) - QueryMembership *QueryMembership - // (optional) - Properties *string -} - -func (client *ClientImpl) ReadIdentity(ctx context.Context, args ReadIdentityArgs) (*Identity, error) { - routeValues := make(map[string]string) - if args.IdentityId == nil || *args.IdentityId == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.IdentityId"} - } - routeValues["identityId"] = *args.IdentityId - - queryParams := url.Values{} - if args.QueryMembership != nil { - queryParams.Add("queryMembership", string(*args.QueryMembership)) - } - if args.Properties != nil { - queryParams.Add("properties", *args.Properties) - } - locationId, _ := uuid.Parse("28010c54-d0c0-4c89-a5b0-1c9e188b9fb7") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1", routeValues, queryParams, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue Identity - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the ReadIdentity function -type ReadIdentityArgs struct { - // (required) - IdentityId *string - // (optional) - QueryMembership *QueryMembership - // (optional) - Properties *string -} - -// [Preview API] -func (client *ClientImpl) ReadIdentityBatch(ctx context.Context, args ReadIdentityBatchArgs) (*[]Identity, error) { - if args.BatchInfo == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.BatchInfo"} - } - body, marshalErr := json.Marshal(*args.BatchInfo) - if marshalErr != nil { - return nil, marshalErr - } - locationId, _ := uuid.Parse("299e50df-fe45-4d3a-8b5b-a5836fac74dc") - resp, err := client.Client.Send(ctx, http.MethodPost, locationId, "5.1-preview.1", nil, nil, bytes.NewReader(body), "application/json", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue []Identity - err = client.Client.UnmarshalCollectionBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the ReadIdentityBatch function -type ReadIdentityBatchArgs struct { - // (required) - BatchInfo *IdentityBatchInfo -} - -// [Preview API] -func (client *ClientImpl) ReadMember(ctx context.Context, args ReadMemberArgs) (*string, error) { - routeValues := make(map[string]string) - if args.ContainerId == nil || *args.ContainerId == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.ContainerId"} - } - routeValues["containerId"] = *args.ContainerId - if args.MemberId == nil || *args.MemberId == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.MemberId"} - } - routeValues["memberId"] = *args.MemberId - - queryParams := url.Values{} - if args.QueryMembership != nil { - queryParams.Add("queryMembership", string(*args.QueryMembership)) - } - locationId, _ := uuid.Parse("8ba35978-138e-41f8-8963-7b1ea2c5f775") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1-preview.1", routeValues, queryParams, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue string - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the ReadMember function -type ReadMemberArgs struct { - // (required) - ContainerId *string - // (required) - MemberId *string - // (optional) - QueryMembership *QueryMembership -} - -// [Preview API] -func (client *ClientImpl) ReadMemberOf(ctx context.Context, args ReadMemberOfArgs) (*string, error) { - routeValues := make(map[string]string) - if args.MemberId == nil || *args.MemberId == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.MemberId"} - } - routeValues["memberId"] = *args.MemberId - if args.ContainerId == nil || *args.ContainerId == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.ContainerId"} - } - routeValues["containerId"] = *args.ContainerId - - queryParams := url.Values{} - if args.QueryMembership != nil { - queryParams.Add("queryMembership", string(*args.QueryMembership)) - } - locationId, _ := uuid.Parse("22865b02-9e4a-479e-9e18-e35b8803b8a0") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1-preview.1", routeValues, queryParams, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue string - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the ReadMemberOf function -type ReadMemberOfArgs struct { - // (required) - MemberId *string - // (required) - ContainerId *string - // (optional) - QueryMembership *QueryMembership -} - -// [Preview API] -func (client *ClientImpl) ReadMembers(ctx context.Context, args ReadMembersArgs) (*[]string, error) { - routeValues := make(map[string]string) - if args.ContainerId == nil || *args.ContainerId == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.ContainerId"} - } - routeValues["containerId"] = *args.ContainerId - - queryParams := url.Values{} - if args.QueryMembership != nil { - queryParams.Add("queryMembership", string(*args.QueryMembership)) - } - locationId, _ := uuid.Parse("8ba35978-138e-41f8-8963-7b1ea2c5f775") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1-preview.1", routeValues, queryParams, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue []string - err = client.Client.UnmarshalCollectionBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the ReadMembers function -type ReadMembersArgs struct { - // (required) - ContainerId *string - // (optional) - QueryMembership *QueryMembership -} - -// [Preview API] -func (client *ClientImpl) ReadMembersOf(ctx context.Context, args ReadMembersOfArgs) (*[]string, error) { - routeValues := make(map[string]string) - if args.MemberId == nil || *args.MemberId == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.MemberId"} - } - routeValues["memberId"] = *args.MemberId - - queryParams := url.Values{} - if args.QueryMembership != nil { - queryParams.Add("queryMembership", string(*args.QueryMembership)) - } - locationId, _ := uuid.Parse("22865b02-9e4a-479e-9e18-e35b8803b8a0") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1-preview.1", routeValues, queryParams, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue []string - err = client.Client.UnmarshalCollectionBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the ReadMembersOf function -type ReadMembersOfArgs struct { - // (required) - MemberId *string - // (optional) - QueryMembership *QueryMembership -} - -// [Preview API] -func (client *ClientImpl) RemoveMember(ctx context.Context, args RemoveMemberArgs) (*bool, error) { - routeValues := make(map[string]string) - if args.ContainerId == nil || *args.ContainerId == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.ContainerId"} - } - routeValues["containerId"] = *args.ContainerId - if args.MemberId == nil || *args.MemberId == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.MemberId"} - } - routeValues["memberId"] = *args.MemberId - - locationId, _ := uuid.Parse("8ba35978-138e-41f8-8963-7b1ea2c5f775") - resp, err := client.Client.Send(ctx, http.MethodDelete, locationId, "5.1-preview.1", routeValues, nil, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue bool - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the RemoveMember function -type RemoveMemberArgs struct { - // (required) - ContainerId *string - // (required) - MemberId *string -} - -func (client *ClientImpl) UpdateIdentities(ctx context.Context, args UpdateIdentitiesArgs) (*[]IdentityUpdateData, error) { - if args.Identities == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.Identities"} - } - body, marshalErr := json.Marshal(*args.Identities) - if marshalErr != nil { - return nil, marshalErr - } - locationId, _ := uuid.Parse("28010c54-d0c0-4c89-a5b0-1c9e188b9fb7") - resp, err := client.Client.Send(ctx, http.MethodPut, locationId, "5.1", nil, nil, bytes.NewReader(body), "application/json", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue []IdentityUpdateData - err = client.Client.UnmarshalCollectionBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the UpdateIdentities function -type UpdateIdentitiesArgs struct { - // (required) - Identities *azuredevops.VssJsonCollectionWrapper -} - -func (client *ClientImpl) UpdateIdentity(ctx context.Context, args UpdateIdentityArgs) error { - if args.Identity == nil { - return &azuredevops.ArgumentNilError{ArgumentName: "args.Identity"} - } - routeValues := make(map[string]string) - if args.IdentityId == nil { - return &azuredevops.ArgumentNilError{ArgumentName: "args.IdentityId"} - } - routeValues["identityId"] = (*args.IdentityId).String() - - body, marshalErr := json.Marshal(*args.Identity) - if marshalErr != nil { - return marshalErr - } - locationId, _ := uuid.Parse("28010c54-d0c0-4c89-a5b0-1c9e188b9fb7") - _, err := client.Client.Send(ctx, http.MethodPut, locationId, "5.1", routeValues, nil, bytes.NewReader(body), "application/json", "application/json", nil) - if err != nil { - return err - } - - return nil -} - -// Arguments for the UpdateIdentity function -type UpdateIdentityArgs struct { - // (required) - Identity *Identity - // (required) - IdentityId *uuid.UUID -} - -// [Preview API] -func (client *ClientImpl) UpdateScope(ctx context.Context, args UpdateScopeArgs) error { - if args.PatchDocument == nil { - return &azuredevops.ArgumentNilError{ArgumentName: "args.PatchDocument"} - } - routeValues := make(map[string]string) - if args.ScopeId == nil { - return &azuredevops.ArgumentNilError{ArgumentName: "args.ScopeId"} - } - routeValues["scopeId"] = (*args.ScopeId).String() - - body, marshalErr := json.Marshal(*args.PatchDocument) - if marshalErr != nil { - return marshalErr - } - locationId, _ := uuid.Parse("4e11e2bf-1e79-4eb5-8f34-a6337bd0de38") - _, err := client.Client.Send(ctx, http.MethodPatch, locationId, "5.1-preview.2", routeValues, nil, bytes.NewReader(body), "application/json-patch+json", "application/json", nil) - if err != nil { - return err - } - - return nil -} - -// Arguments for the UpdateScope function -type UpdateScopeArgs struct { - // (required) - PatchDocument *[]webapi.JsonPatchOperation - // (required) - ScopeId *uuid.UUID -} diff --git a/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/identity/models.go b/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/identity/models.go deleted file mode 100644 index 54f9b75e7..000000000 --- a/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/identity/models.go +++ /dev/null @@ -1,234 +0,0 @@ -// -------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// -------------------------------------------------------------------------------------------- -// Generated file, DO NOT EDIT -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// -------------------------------------------------------------------------------------------- - -package identity - -import ( - "github.com/google/uuid" -) - -// Container class for changed identities -type ChangedIdentities struct { - // Changed Identities - Identities *[]Identity `json:"identities,omitempty"` - // More data available, set to true if pagesize is specified. - MoreData *bool `json:"moreData,omitempty"` - // Last Identity SequenceId - SequenceContext *ChangedIdentitiesContext `json:"sequenceContext,omitempty"` -} - -// Context class for changed identities -type ChangedIdentitiesContext struct { - // Last Group SequenceId - GroupSequenceId *int `json:"groupSequenceId,omitempty"` - // Last Identity SequenceId - IdentitySequenceId *int `json:"identitySequenceId,omitempty"` - // Last Group OrganizationIdentitySequenceId - OrganizationIdentitySequenceId *int `json:"organizationIdentitySequenceId,omitempty"` - // Page size - PageSize *int `json:"pageSize,omitempty"` -} - -type CreateScopeInfo struct { - AdminGroupDescription *string `json:"adminGroupDescription,omitempty"` - AdminGroupName *string `json:"adminGroupName,omitempty"` - CreatorId *uuid.UUID `json:"creatorId,omitempty"` - ParentScopeId *uuid.UUID `json:"parentScopeId,omitempty"` - ScopeName *string `json:"scopeName,omitempty"` - ScopeType *GroupScopeType `json:"scopeType,omitempty"` -} - -type FrameworkIdentityInfo struct { - DisplayName *string `json:"displayName,omitempty"` - Identifier *string `json:"identifier,omitempty"` - IdentityType *FrameworkIdentityType `json:"identityType,omitempty"` - Role *string `json:"role,omitempty"` -} - -type FrameworkIdentityType string - -type frameworkIdentityTypeValuesType struct { - None FrameworkIdentityType - ServiceIdentity FrameworkIdentityType - AggregateIdentity FrameworkIdentityType - ImportedIdentity FrameworkIdentityType -} - -var FrameworkIdentityTypeValues = frameworkIdentityTypeValuesType{ - None: "none", - ServiceIdentity: "serviceIdentity", - AggregateIdentity: "aggregateIdentity", - ImportedIdentity: "importedIdentity", -} - -type GroupMembership struct { - Active *bool `json:"active,omitempty"` - Descriptor *string `json:"descriptor,omitempty"` - Id *uuid.UUID `json:"id,omitempty"` - QueriedId *uuid.UUID `json:"queriedId,omitempty"` -} - -type GroupScopeType string - -type groupScopeTypeValuesType struct { - Generic GroupScopeType - ServiceHost GroupScopeType - TeamProject GroupScopeType -} - -var GroupScopeTypeValues = groupScopeTypeValuesType{ - Generic: "generic", - ServiceHost: "serviceHost", - TeamProject: "teamProject", -} - -type Identity struct { - // The custom display name for the identity (if any). Setting this property to an empty string will clear the existing custom display name. Setting this property to null will not affect the existing persisted value (since null values do not get sent over the wire or to the database) - CustomDisplayName *string `json:"customDisplayName,omitempty"` - Descriptor *string `json:"descriptor,omitempty"` - Id *uuid.UUID `json:"id,omitempty"` - IsActive *bool `json:"isActive,omitempty"` - IsContainer *bool `json:"isContainer,omitempty"` - MasterId *uuid.UUID `json:"masterId,omitempty"` - MemberIds *[]uuid.UUID `json:"memberIds,omitempty"` - MemberOf *[]string `json:"memberOf,omitempty"` - Members *[]string `json:"members,omitempty"` - MetaTypeId *int `json:"metaTypeId,omitempty"` - Properties interface{} `json:"properties,omitempty"` - // The display name for the identity as specified by the source identity provider. - ProviderDisplayName *string `json:"providerDisplayName,omitempty"` - ResourceVersion *int `json:"resourceVersion,omitempty"` - SocialDescriptor *string `json:"socialDescriptor,omitempty"` - SubjectDescriptor *string `json:"subjectDescriptor,omitempty"` - UniqueUserId *int `json:"uniqueUserId,omitempty"` -} - -// Base Identity class to allow "trimmed" identity class in the GetConnectionData API Makes sure that on-the-wire representations of the derived classes are compatible with each other (e.g. Server responds with PublicIdentity object while client deserializes it as Identity object) Derived classes should not have additional [DataMember] properties -type IdentityBase struct { - // The custom display name for the identity (if any). Setting this property to an empty string will clear the existing custom display name. Setting this property to null will not affect the existing persisted value (since null values do not get sent over the wire or to the database) - CustomDisplayName *string `json:"customDisplayName,omitempty"` - Descriptor *string `json:"descriptor,omitempty"` - Id *uuid.UUID `json:"id,omitempty"` - IsActive *bool `json:"isActive,omitempty"` - IsContainer *bool `json:"isContainer,omitempty"` - MasterId *uuid.UUID `json:"masterId,omitempty"` - MemberIds *[]uuid.UUID `json:"memberIds,omitempty"` - MemberOf *[]string `json:"memberOf,omitempty"` - Members *[]string `json:"members,omitempty"` - MetaTypeId *int `json:"metaTypeId,omitempty"` - Properties interface{} `json:"properties,omitempty"` - // The display name for the identity as specified by the source identity provider. - ProviderDisplayName *string `json:"providerDisplayName,omitempty"` - ResourceVersion *int `json:"resourceVersion,omitempty"` - SocialDescriptor *string `json:"socialDescriptor,omitempty"` - SubjectDescriptor *string `json:"subjectDescriptor,omitempty"` - UniqueUserId *int `json:"uniqueUserId,omitempty"` -} - -type IdentityBatchInfo struct { - Descriptors *[]string `json:"descriptors,omitempty"` - IdentityIds *[]uuid.UUID `json:"identityIds,omitempty"` - IncludeRestrictedVisibility *bool `json:"includeRestrictedVisibility,omitempty"` - PropertyNames *[]string `json:"propertyNames,omitempty"` - QueryMembership *QueryMembership `json:"queryMembership,omitempty"` - SocialDescriptors *[]string `json:"socialDescriptors,omitempty"` - SubjectDescriptors *[]string `json:"subjectDescriptors,omitempty"` -} - -type IdentityScope struct { - Administrators *string `json:"administrators,omitempty"` - Id *uuid.UUID `json:"id,omitempty"` - IsActive *bool `json:"isActive,omitempty"` - IsGlobal *bool `json:"isGlobal,omitempty"` - LocalScopeId *uuid.UUID `json:"localScopeId,omitempty"` - Name *string `json:"name,omitempty"` - ParentId *uuid.UUID `json:"parentId,omitempty"` - ScopeType *GroupScopeType `json:"scopeType,omitempty"` - SecuringHostId *uuid.UUID `json:"securingHostId,omitempty"` - SubjectDescriptor *string `json:"subjectDescriptor,omitempty"` -} - -// Identity information. -type IdentitySelf struct { - // The UserPrincipalName (UPN) of the account. This value comes from the source provider. - AccountName *string `json:"accountName,omitempty"` - // The display name. For AAD accounts with multiple tenants this is the display name of the profile in the home tenant. - DisplayName *string `json:"displayName,omitempty"` - // This represents the name of the container of origin. For AAD accounts this is the tenantID of the home tenant. For MSA accounts this is the string "Windows Live ID". - Domain *string `json:"domain,omitempty"` - // This is the VSID of the home tenant profile. If the profile is signed into the home tenant or if the profile has no tenants then this Id is the same as the Id returned by the profile/profiles/me endpoint. Going forward it is recommended that you use the combined values of Origin, OriginId and Domain to uniquely identify a user rather than this Id. - Id *uuid.UUID `json:"id,omitempty"` - // The type of source provider for the origin identifier. For MSA accounts this is "msa". For AAD accounts this is "aad". - Origin *string `json:"origin,omitempty"` - // The unique identifier from the system of origin. If there are multiple tenants this is the unique identifier of the account in the home tenant. (For MSA this is the PUID in hex notation, for AAD this is the object id.) - OriginId *string `json:"originId,omitempty"` - // For AAD accounts this is all of the tenants that this account is a member of. - Tenants *[]TenantInfo `json:"tenants,omitempty"` -} - -type IdentitySnapshot struct { - Groups *[]Identity `json:"groups,omitempty"` - IdentityIds *[]uuid.UUID `json:"identityIds,omitempty"` - Memberships *[]GroupMembership `json:"memberships,omitempty"` - ScopeId *uuid.UUID `json:"scopeId,omitempty"` - Scopes *[]IdentityScope `json:"scopes,omitempty"` -} - -type IdentityUpdateData struct { - Id *uuid.UUID `json:"id,omitempty"` - Index *int `json:"index,omitempty"` - Updated *bool `json:"updated,omitempty"` -} - -type QueryMembership string - -type queryMembershipValuesType struct { - None QueryMembership - Direct QueryMembership - Expanded QueryMembership - ExpandedUp QueryMembership - ExpandedDown QueryMembership -} - -var QueryMembershipValues = queryMembershipValuesType{ - // Query will not return any membership data - None: "none", - // Query will return only direct membership data - Direct: "direct", - // Query will return expanded membership data - Expanded: "expanded", - // Query will return expanded up membership data (parents only) - ExpandedUp: "expandedUp", - // Query will return expanded down membership data (children only) - ExpandedDown: "expandedDown", -} - -// [Flags] -type ReadIdentitiesOptions string - -type readIdentitiesOptionsValuesType struct { - None ReadIdentitiesOptions - FilterIllegalMemberships ReadIdentitiesOptions -} - -var ReadIdentitiesOptionsValues = readIdentitiesOptionsValuesType{ - None: "none", - FilterIllegalMemberships: "filterIllegalMemberships", -} - -type SwapIdentityInfo struct { - Id1 *uuid.UUID `json:"id1,omitempty"` - Id2 *uuid.UUID `json:"id2,omitempty"` -} - -type TenantInfo struct { - HomeTenant *bool `json:"homeTenant,omitempty"` - TenantId *uuid.UUID `json:"tenantId,omitempty"` - TenantName *string `json:"tenantName,omitempty"` - VerifiedDomains *[]string `json:"verifiedDomains,omitempty"` -} diff --git a/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/models.go b/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/models.go deleted file mode 100644 index 3fe2ba7b7..000000000 --- a/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/models.go +++ /dev/null @@ -1,144 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package azuredevops - -import ( - "encoding/json" - "strconv" - "strings" - "time" - - "github.com/google/uuid" -) - -// ApiResourceLocation Information about the location of a REST API resource -type ApiResourceLocation struct { - // Area name for this resource - Area *string `json:"area,omitempty"` - // Unique Identifier for this location - Id *uuid.UUID `json:"id,omitempty"` - // Maximum api version that this resource supports (current server version for this resource) - MaxVersion *string `json:"maxVersion,omitempty"` - // Minimum api version that this resource supports - MinVersion *string `json:"minVersion,omitempty"` - // The latest version of this resource location that is in "Release" (non-preview) mode - ReleasedVersion *string `json:"releasedVersion,omitempty"` - // Resource name - ResourceName *string `json:"resourceName,omitempty"` - // The current resource version supported by this resource location - ResourceVersion *int `json:"resourceVersion,omitempty"` - // This location's route template (templated relative path) - RouteTemplate *string `json:"routeTemplate,omitempty"` -} - -// WrappedImproperError -type WrappedImproperError struct { - Count *int `json:"count,omitempty"` - Value *ImproperError `json:"value,omitempty"` -} - -// ImproperError -type ImproperError struct { - Message *string `json:"Message,omitempty"` -} - -// KeyValuePair -type KeyValuePair struct { - Key *interface{} `json:"key,omitempty"` - Value *interface{} `json:"value,omitempty"` -} - -// ResourceAreaInfo -type ResourceAreaInfo struct { - Id *uuid.UUID `json:"id,omitempty"` - LocationUrl *string `json:"locationUrl,omitempty"` - Name *string `json:"name,omitempty"` -} - -type Time struct { - Time time.Time -} - -func (t *Time) UnmarshalJSON(b []byte) error { - t2 := time.Time{} - err := json.Unmarshal(b, &t2) - - if err != nil { - parseError, ok := err.(*time.ParseError) - if ok { - if parseError.Value == "\"0001-01-01T00:00:00\"" { - // ignore errors for 0001-01-01T00:00:00 dates. The Azure DevOps service - // returns default dates in a format that is invalid for a time.Time. The - // correct value would have a 'z' at the end to represent utc. We are going - // to ignore this error, and set the value to the default time.Time value. - // https://github.com/microsoft/azure-devops-go-api/issues/17 - err = nil - } else { - // workaround for bug https://github.com/microsoft/azure-devops-go-api/issues/59 - // policy.CreatePolicyConfiguration returns an invalid date format of form - // "2006-01-02T15:04:05.999999999" - var innerError error - t2, innerError = time.Parse("2006-01-02T15:04:05.999999999", strings.Trim(parseError.Value, "\"")) - if innerError == nil { - err = nil - } - } - } - } - - t.Time = t2 - return err -} - -func (t *Time) MarshalJSON() ([]byte, error) { - return json.Marshal(t.Time) -} - -func (t Time) String() string { - return t.Time.String() -} - -func (t Time) Equal(u Time) bool { - return t.Time.Equal(u.Time) -} - -// ServerSystemError -type ServerSystemError struct { - ClassName *string `json:"className,omitempty"` - InnerException *ServerSystemError `json:"innerException,omitempty"` - Message *string `json:"message,omitempty"` -} - -func (e ServerSystemError) Error() string { - return *e.Message -} - -// VssJsonCollectionWrapper - -type VssJsonCollectionWrapper struct { - Count *int `json:"count"` - Value *[]interface{} `json:"value"` -} - -// WrappedError -type WrappedError struct { - ExceptionId *string `json:"$id,omitempty"` - InnerError *WrappedError `json:"innerException,omitempty"` - Message *string `json:"message,omitempty"` - TypeName *string `json:"typeName,omitempty"` - TypeKey *string `json:"typeKey,omitempty"` - ErrorCode *int `json:"errorCode,omitempty"` - EventId *int `json:"eventId,omitempty"` - CustomProperties *map[string]interface{} `json:"customProperties,omitempty"` - StatusCode *int -} - -func (e WrappedError) Error() string { - if e.Message == nil { - if e.StatusCode != nil { - return "REST call returned status code " + strconv.Itoa(*e.StatusCode) - } - return "" - } - return *e.Message -} diff --git a/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/security/client.go b/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/security/client.go deleted file mode 100644 index 16af49d4e..000000000 --- a/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/security/client.go +++ /dev/null @@ -1,380 +0,0 @@ -// -------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// -------------------------------------------------------------------------------------------- -// Generated file, DO NOT EDIT -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// -------------------------------------------------------------------------------------------- - -package security - -import ( - "bytes" - "context" - "encoding/json" - "github.com/google/uuid" - "github.com/microsoft/azure-devops-go-api/azuredevops" - "net/http" - "net/url" - "strconv" -) - -type Client interface { - // Evaluates whether the caller has the specified permissions on the specified set of security tokens. - HasPermissions(context.Context, HasPermissionsArgs) (*[]bool, error) - // Evaluates multiple permissions for the calling user. Note: This method does not aggregate the results, nor does it short-circuit if one of the permissions evaluates to false. - HasPermissionsBatch(context.Context, HasPermissionsBatchArgs) (*PermissionEvaluationBatch, error) - // Return a list of access control lists for the specified security namespace and token. All ACLs in the security namespace will be retrieved if no optional parameters are provided. - QueryAccessControlLists(context.Context, QueryAccessControlListsArgs) (*[]AccessControlList, error) - // List all security namespaces or just the specified namespace. - QuerySecurityNamespaces(context.Context, QuerySecurityNamespacesArgs) (*[]SecurityNamespaceDescription, error) - // Remove the specified ACEs from the ACL belonging to the specified token. - RemoveAccessControlEntries(context.Context, RemoveAccessControlEntriesArgs) (*bool, error) - // Remove access control lists under the specfied security namespace. - RemoveAccessControlLists(context.Context, RemoveAccessControlListsArgs) (*bool, error) - // Removes the specified permissions on a security token for a user or group. - RemovePermission(context.Context, RemovePermissionArgs) (*AccessControlEntry, error) - // Add or update ACEs in the ACL for the provided token. The request body contains the target token, a list of [ACEs](https://docs.microsoft.com/en-us/rest/api/azure/devops/security/access%20control%20entries/set%20access%20control%20entries?#accesscontrolentry) and a optional merge parameter. In the case of a collision (by identity descriptor) with an existing ACE in the ACL, the "merge" parameter determines the behavior. If set, the existing ACE has its allow and deny merged with the incoming ACE's allow and deny. If unset, the existing ACE is displaced. - SetAccessControlEntries(context.Context, SetAccessControlEntriesArgs) (*[]AccessControlEntry, error) - // Create or update one or more access control lists. All data that currently exists for the ACLs supplied will be overwritten. - SetAccessControlLists(context.Context, SetAccessControlListsArgs) error -} - -type ClientImpl struct { - Client azuredevops.Client -} - -func NewClient(ctx context.Context, connection *azuredevops.Connection) Client { - client := connection.GetClientByUrl(connection.BaseUrl) - return &ClientImpl{ - Client: *client, - } -} - -// Evaluates whether the caller has the specified permissions on the specified set of security tokens. -func (client *ClientImpl) HasPermissions(ctx context.Context, args HasPermissionsArgs) (*[]bool, error) { - routeValues := make(map[string]string) - if args.SecurityNamespaceId == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.SecurityNamespaceId"} - } - routeValues["securityNamespaceId"] = (*args.SecurityNamespaceId).String() - if args.Permissions != nil { - routeValues["permissions"] = strconv.Itoa(*args.Permissions) - } - - queryParams := url.Values{} - if args.Tokens != nil { - queryParams.Add("tokens", *args.Tokens) - } - if args.AlwaysAllowAdministrators != nil { - queryParams.Add("alwaysAllowAdministrators", strconv.FormatBool(*args.AlwaysAllowAdministrators)) - } - if args.Delimiter != nil { - queryParams.Add("delimiter", *args.Delimiter) - } - locationId, _ := uuid.Parse("dd3b8bd6-c7fc-4cbd-929a-933d9c011c9d") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1", routeValues, queryParams, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue []bool - err = client.Client.UnmarshalCollectionBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the HasPermissions function -type HasPermissionsArgs struct { - // (required) Security namespace identifier. - SecurityNamespaceId *uuid.UUID - // (optional) Permissions to evaluate. - Permissions *int - // (optional) One or more security tokens to evaluate. - Tokens *string - // (optional) If true and if the caller is an administrator, always return true. - AlwaysAllowAdministrators *bool - // (optional) Optional security token separator. Defaults to ",". - Delimiter *string -} - -// Evaluates multiple permissions for the calling user. Note: This method does not aggregate the results, nor does it short-circuit if one of the permissions evaluates to false. -func (client *ClientImpl) HasPermissionsBatch(ctx context.Context, args HasPermissionsBatchArgs) (*PermissionEvaluationBatch, error) { - if args.EvalBatch == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.EvalBatch"} - } - body, marshalErr := json.Marshal(*args.EvalBatch) - if marshalErr != nil { - return nil, marshalErr - } - locationId, _ := uuid.Parse("cf1faa59-1b63-4448-bf04-13d981a46f5d") - resp, err := client.Client.Send(ctx, http.MethodPost, locationId, "5.1", nil, nil, bytes.NewReader(body), "application/json", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue PermissionEvaluationBatch - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the HasPermissionsBatch function -type HasPermissionsBatchArgs struct { - // (required) The set of evaluation requests. - EvalBatch *PermissionEvaluationBatch -} - -// Return a list of access control lists for the specified security namespace and token. All ACLs in the security namespace will be retrieved if no optional parameters are provided. -func (client *ClientImpl) QueryAccessControlLists(ctx context.Context, args QueryAccessControlListsArgs) (*[]AccessControlList, error) { - routeValues := make(map[string]string) - if args.SecurityNamespaceId == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.SecurityNamespaceId"} - } - routeValues["securityNamespaceId"] = (*args.SecurityNamespaceId).String() - - queryParams := url.Values{} - if args.Token != nil { - queryParams.Add("token", *args.Token) - } - if args.Descriptors != nil { - queryParams.Add("descriptors", *args.Descriptors) - } - if args.IncludeExtendedInfo != nil { - queryParams.Add("includeExtendedInfo", strconv.FormatBool(*args.IncludeExtendedInfo)) - } - if args.Recurse != nil { - queryParams.Add("recurse", strconv.FormatBool(*args.Recurse)) - } - locationId, _ := uuid.Parse("18a2ad18-7571-46ae-bec7-0c7da1495885") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1", routeValues, queryParams, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue []AccessControlList - err = client.Client.UnmarshalCollectionBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the QueryAccessControlLists function -type QueryAccessControlListsArgs struct { - // (required) Security namespace identifier. - SecurityNamespaceId *uuid.UUID - // (optional) Security token - Token *string - // (optional) An optional filter string containing a list of identity descriptors separated by ',' whose ACEs should be retrieved. If this is left null, entire ACLs will be returned. - Descriptors *string - // (optional) If true, populate the extended information properties for the access control entries contained in the returned lists. - IncludeExtendedInfo *bool - // (optional) If true and this is a hierarchical namespace, return child ACLs of the specified token. - Recurse *bool -} - -// List all security namespaces or just the specified namespace. -func (client *ClientImpl) QuerySecurityNamespaces(ctx context.Context, args QuerySecurityNamespacesArgs) (*[]SecurityNamespaceDescription, error) { - routeValues := make(map[string]string) - if args.SecurityNamespaceId != nil { - routeValues["securityNamespaceId"] = (*args.SecurityNamespaceId).String() - } - - queryParams := url.Values{} - if args.LocalOnly != nil { - queryParams.Add("localOnly", strconv.FormatBool(*args.LocalOnly)) - } - locationId, _ := uuid.Parse("ce7b9f95-fde9-4be8-a86d-83b366f0b87a") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1", routeValues, queryParams, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue []SecurityNamespaceDescription - err = client.Client.UnmarshalCollectionBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the QuerySecurityNamespaces function -type QuerySecurityNamespacesArgs struct { - // (optional) Security namespace identifier. - SecurityNamespaceId *uuid.UUID - // (optional) If true, retrieve only local security namespaces. - LocalOnly *bool -} - -// Remove the specified ACEs from the ACL belonging to the specified token. -func (client *ClientImpl) RemoveAccessControlEntries(ctx context.Context, args RemoveAccessControlEntriesArgs) (*bool, error) { - routeValues := make(map[string]string) - if args.SecurityNamespaceId == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.SecurityNamespaceId"} - } - routeValues["securityNamespaceId"] = (*args.SecurityNamespaceId).String() - - queryParams := url.Values{} - if args.Token != nil { - queryParams.Add("token", *args.Token) - } - if args.Descriptors != nil { - queryParams.Add("descriptors", *args.Descriptors) - } - locationId, _ := uuid.Parse("ac08c8ff-4323-4b08-af90-bcd018d380ce") - resp, err := client.Client.Send(ctx, http.MethodDelete, locationId, "5.1", routeValues, queryParams, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue bool - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the RemoveAccessControlEntries function -type RemoveAccessControlEntriesArgs struct { - // (required) Security namespace identifier. - SecurityNamespaceId *uuid.UUID - // (optional) The token whose ACL should be modified. - Token *string - // (optional) String containing a list of identity descriptors separated by ',' whose entries should be removed. - Descriptors *string -} - -// Remove access control lists under the specfied security namespace. -func (client *ClientImpl) RemoveAccessControlLists(ctx context.Context, args RemoveAccessControlListsArgs) (*bool, error) { - routeValues := make(map[string]string) - if args.SecurityNamespaceId == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.SecurityNamespaceId"} - } - routeValues["securityNamespaceId"] = (*args.SecurityNamespaceId).String() - - queryParams := url.Values{} - if args.Tokens != nil { - queryParams.Add("tokens", *args.Tokens) - } - if args.Recurse != nil { - queryParams.Add("recurse", strconv.FormatBool(*args.Recurse)) - } - locationId, _ := uuid.Parse("18a2ad18-7571-46ae-bec7-0c7da1495885") - resp, err := client.Client.Send(ctx, http.MethodDelete, locationId, "5.1", routeValues, queryParams, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue bool - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the RemoveAccessControlLists function -type RemoveAccessControlListsArgs struct { - // (required) Security namespace identifier. - SecurityNamespaceId *uuid.UUID - // (optional) One or more comma-separated security tokens - Tokens *string - // (optional) If true and this is a hierarchical namespace, also remove child ACLs of the specified tokens. - Recurse *bool -} - -// Removes the specified permissions on a security token for a user or group. -func (client *ClientImpl) RemovePermission(ctx context.Context, args RemovePermissionArgs) (*AccessControlEntry, error) { - routeValues := make(map[string]string) - if args.SecurityNamespaceId == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.SecurityNamespaceId"} - } - routeValues["securityNamespaceId"] = (*args.SecurityNamespaceId).String() - if args.Permissions != nil { - routeValues["permissions"] = strconv.Itoa(*args.Permissions) - } - - queryParams := url.Values{} - if args.Descriptor == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "descriptor"} - } - queryParams.Add("descriptor", *args.Descriptor) - if args.Token != nil { - queryParams.Add("token", *args.Token) - } - locationId, _ := uuid.Parse("dd3b8bd6-c7fc-4cbd-929a-933d9c011c9d") - resp, err := client.Client.Send(ctx, http.MethodDelete, locationId, "5.1", routeValues, queryParams, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue AccessControlEntry - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the RemovePermission function -type RemovePermissionArgs struct { - // (required) Security namespace identifier. - SecurityNamespaceId *uuid.UUID - // (required) Identity descriptor of the user to remove permissions for. - Descriptor *string - // (optional) Permissions to remove. - Permissions *int - // (optional) Security token to remove permissions for. - Token *string -} - -// Add or update ACEs in the ACL for the provided token. The request body contains the target token, a list of [ACEs](https://docs.microsoft.com/en-us/rest/api/azure/devops/security/access%20control%20entries/set%20access%20control%20entries?#accesscontrolentry) and a optional merge parameter. In the case of a collision (by identity descriptor) with an existing ACE in the ACL, the "merge" parameter determines the behavior. If set, the existing ACE has its allow and deny merged with the incoming ACE's allow and deny. If unset, the existing ACE is displaced. -func (client *ClientImpl) SetAccessControlEntries(ctx context.Context, args SetAccessControlEntriesArgs) (*[]AccessControlEntry, error) { - if args.Container == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.Container"} - } - routeValues := make(map[string]string) - if args.SecurityNamespaceId == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.SecurityNamespaceId"} - } - routeValues["securityNamespaceId"] = (*args.SecurityNamespaceId).String() - - body, marshalErr := json.Marshal(args.Container) - if marshalErr != nil { - return nil, marshalErr - } - locationId, _ := uuid.Parse("ac08c8ff-4323-4b08-af90-bcd018d380ce") - resp, err := client.Client.Send(ctx, http.MethodPost, locationId, "5.1", routeValues, nil, bytes.NewReader(body), "application/json", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue []AccessControlEntry - err = client.Client.UnmarshalCollectionBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the SetAccessControlEntries function -type SetAccessControlEntriesArgs struct { - // (required) - Container interface{} - // (required) Security namespace identifier. - SecurityNamespaceId *uuid.UUID -} - -// Create or update one or more access control lists. All data that currently exists for the ACLs supplied will be overwritten. -func (client *ClientImpl) SetAccessControlLists(ctx context.Context, args SetAccessControlListsArgs) error { - if args.AccessControlLists == nil { - return &azuredevops.ArgumentNilError{ArgumentName: "args.AccessControlLists"} - } - routeValues := make(map[string]string) - if args.SecurityNamespaceId == nil { - return &azuredevops.ArgumentNilError{ArgumentName: "args.SecurityNamespaceId"} - } - routeValues["securityNamespaceId"] = (*args.SecurityNamespaceId).String() - - body, marshalErr := json.Marshal(*args.AccessControlLists) - if marshalErr != nil { - return marshalErr - } - locationId, _ := uuid.Parse("18a2ad18-7571-46ae-bec7-0c7da1495885") - _, err := client.Client.Send(ctx, http.MethodPost, locationId, "5.1", routeValues, nil, bytes.NewReader(body), "application/json", "application/json", nil) - if err != nil { - return err - } - - return nil -} - -// Arguments for the SetAccessControlLists function -type SetAccessControlListsArgs struct { - // (required) A list of ACLs to create or update. - AccessControlLists *azuredevops.VssJsonCollectionWrapper - // (required) Security namespace identifier. - SecurityNamespaceId *uuid.UUID -} diff --git a/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/security/models.go b/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/security/models.go deleted file mode 100644 index 7341ebcc1..000000000 --- a/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/security/models.go +++ /dev/null @@ -1,116 +0,0 @@ -// -------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// -------------------------------------------------------------------------------------------- -// Generated file, DO NOT EDIT -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// -------------------------------------------------------------------------------------------- - -package security - -import ( - "github.com/google/uuid" -) - -// Class for encapsulating the allowed and denied permissions for a given IdentityDescriptor. -type AccessControlEntry struct { - // The set of permission bits that represent the actions that the associated descriptor is allowed to perform. - Allow *int `json:"allow,omitempty"` - // The set of permission bits that represent the actions that the associated descriptor is not allowed to perform. - Deny *int `json:"deny,omitempty"` - // The descriptor for the user this AccessControlEntry applies to. - Descriptor *string `json:"descriptor,omitempty"` - // This value, when set, reports the inherited and effective information for the associated descriptor. This value is only set on AccessControlEntries returned by the QueryAccessControlList(s) call when its includeExtendedInfo parameter is set to true. - ExtendedInfo *AceExtendedInformation `json:"extendedInfo,omitempty"` -} - -// The AccessControlList class is meant to associate a set of AccessControlEntries with a security token and its inheritance settings. -type AccessControlList struct { - // Storage of permissions keyed on the identity the permission is for. - AcesDictionary *map[string]AccessControlEntry `json:"acesDictionary,omitempty"` - // True if this ACL holds ACEs that have extended information. - IncludeExtendedInfo *bool `json:"includeExtendedInfo,omitempty"` - // True if the given token inherits permissions from parents. - InheritPermissions *bool `json:"inheritPermissions,omitempty"` - // The token that this AccessControlList is for. - Token *string `json:"token,omitempty"` -} - -// A list of AccessControlList. An AccessControlList is meant to associate a set of AccessControlEntries with a security token and its inheritance settings. -type AccessControlListsCollection struct { -} - -// Holds the inherited and effective permission information for a given AccessControlEntry. -type AceExtendedInformation struct { - // This is the combination of all of the explicit and inherited permissions for this identity on this token. These are the permissions used when determining if a given user has permission to perform an action. - EffectiveAllow *int `json:"effectiveAllow,omitempty"` - // This is the combination of all of the explicit and inherited permissions for this identity on this token. These are the permissions used when determining if a given user has permission to perform an action. - EffectiveDeny *int `json:"effectiveDeny,omitempty"` - // These are the permissions that are inherited for this identity on this token. If the token does not inherit permissions this will be 0. Note that any permissions that have been explicitly set on this token for this identity, or any groups that this identity is a part of, are not included here. - InheritedAllow *int `json:"inheritedAllow,omitempty"` - // These are the permissions that are inherited for this identity on this token. If the token does not inherit permissions this will be 0. Note that any permissions that have been explicitly set on this token for this identity, or any groups that this identity is a part of, are not included here. - InheritedDeny *int `json:"inheritedDeny,omitempty"` -} - -type ActionDefinition struct { - // The bit mask integer for this action. Must be a power of 2. - Bit *int `json:"bit,omitempty"` - // The localized display name for this action. - DisplayName *string `json:"displayName,omitempty"` - // The non-localized name for this action. - Name *string `json:"name,omitempty"` - // The namespace that this action belongs to. This will only be used for reading from the database. - NamespaceId *uuid.UUID `json:"namespaceId,omitempty"` -} - -// Represents an evaluated permission. -type PermissionEvaluation struct { - // Permission bit for this evaluated permission. - Permissions *int `json:"permissions,omitempty"` - // Security namespace identifier for this evaluated permission. - SecurityNamespaceId *uuid.UUID `json:"securityNamespaceId,omitempty"` - // Security namespace-specific token for this evaluated permission. - Token *string `json:"token,omitempty"` - // Permission evaluation value. - Value *bool `json:"value,omitempty"` -} - -// Represents a set of evaluated permissions. -type PermissionEvaluationBatch struct { - // True if members of the Administrators group should always pass the security check. - AlwaysAllowAdministrators *bool `json:"alwaysAllowAdministrators,omitempty"` - // Array of permission evaluations to evaluate. - Evaluations *[]PermissionEvaluation `json:"evaluations,omitempty"` -} - -// Class for describing the details of a TeamFoundationSecurityNamespace. -type SecurityNamespaceDescription struct { - // The list of actions that this Security Namespace is responsible for securing. - Actions *[]ActionDefinition `json:"actions,omitempty"` - // This is the dataspace category that describes where the security information for this SecurityNamespace should be stored. - DataspaceCategory *string `json:"dataspaceCategory,omitempty"` - // This localized name for this namespace. - DisplayName *string `json:"displayName,omitempty"` - // If the security tokens this namespace will be operating on need to be split on certain character lengths to determine its elements, that length should be specified here. If not, this value will be -1. - ElementLength *int `json:"elementLength,omitempty"` - // This is the type of the extension that should be loaded from the plugins directory for extending this security namespace. - ExtensionType *string `json:"extensionType,omitempty"` - // If true, the security namespace is remotable, allowing another service to proxy the namespace. - IsRemotable *bool `json:"isRemotable,omitempty"` - // This non-localized for this namespace. - Name *string `json:"name,omitempty"` - // The unique identifier for this namespace. - NamespaceId *uuid.UUID `json:"namespaceId,omitempty"` - // The permission bits needed by a user in order to read security data on the Security Namespace. - ReadPermission *int `json:"readPermission,omitempty"` - // If the security tokens this namespace will be operating on need to be split on certain characters to determine its elements that character should be specified here. If not, this value will be the null character. - SeparatorValue *string `json:"separatorValue,omitempty"` - // Used to send information about the structure of the security namespace over the web service. - StructureValue *int `json:"structureValue,omitempty"` - // The bits reserved by system store - SystemBitMask *int `json:"systemBitMask,omitempty"` - // If true, the security service will expect an ISecurityDataspaceTokenTranslator plugin to exist for this namespace - UseTokenTranslator *bool `json:"useTokenTranslator,omitempty"` - // The permission bits needed by a user in order to modify security data on the Security Namespace. - WritePermission *int `json:"writePermission,omitempty"` -} diff --git a/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/system/models.go b/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/system/models.go deleted file mode 100644 index 245ca996a..000000000 --- a/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/system/models.go +++ /dev/null @@ -1,97 +0,0 @@ -// -------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// -------------------------------------------------------------------------------------------- -// Generated file, DO NOT EDIT -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// -------------------------------------------------------------------------------------------- - -package system - -type SqlDbType string - -type sqlDbTypeValuesType struct { - BigInt SqlDbType - Binary SqlDbType - Bit SqlDbType - Char SqlDbType - DateTime SqlDbType - Decimal SqlDbType - Float SqlDbType - Image SqlDbType - Int SqlDbType - Money SqlDbType - NChar SqlDbType - NText SqlDbType - NVarChar SqlDbType - Real SqlDbType - UniqueIdentifier SqlDbType - SmallDateTime SqlDbType - SmallInt SqlDbType - SmallMoney SqlDbType - Text SqlDbType - Timestamp SqlDbType - TinyInt SqlDbType - VarBinary SqlDbType - VarChar SqlDbType - Variant SqlDbType - Xml SqlDbType - Udt SqlDbType - Structured SqlDbType - Date SqlDbType - Time SqlDbType - DateTime2 SqlDbType - DateTimeOffset SqlDbType -} - -var SqlDbTypeValues = sqlDbTypeValuesType{ - BigInt: "bigInt", - Binary: "binary", - Bit: "bit", - Char: "char", - DateTime: "dateTime", - Decimal: "decimal", - Float: "float", - Image: "image", - Int: "int", - Money: "money", - NChar: "nChar", - NText: "nText", - NVarChar: "nVarChar", - Real: "real", - UniqueIdentifier: "uniqueIdentifier", - SmallDateTime: "smallDateTime", - SmallInt: "smallInt", - SmallMoney: "smallMoney", - Text: "text", - Timestamp: "timestamp", - TinyInt: "tinyInt", - VarBinary: "varBinary", - VarChar: "varChar", - Variant: "variant", - Xml: "xml", - Udt: "udt", - Structured: "structured", - Date: "date", - Time: "time", - DateTime2: "dateTime2", - DateTimeOffset: "dateTimeOffset", -} - -type TraceLevel string - -type traceLevelValuesType struct { - Off TraceLevel - Error TraceLevel - Warning TraceLevel - Info TraceLevel - Verbose TraceLevel -} - -var TraceLevelValues = traceLevelValuesType{ - Off: "off", - Error: "error", - Warning: "warning", - Info: "info", - Verbose: "verbose", -} diff --git a/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/version.go b/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/version.go deleted file mode 100644 index 443147c51..000000000 --- a/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/version.go +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package azuredevops - -import ( - "strconv" - "strings" -) - -type Version struct { - Major int - Minor int -} - -func NewVersion(version string) (*Version, error) { - split := strings.Split(version, ".") - if len(split) > 1 { - major, err := strconv.Atoi(split[0]) - if err != nil { - return nil, err - } - minor, err := strconv.Atoi(split[1]) - if err != nil { - return nil, err - } - return &Version{ - Major: major, - Minor: minor, - }, nil - } - return nil, &InvalidVersionStringError{version: version} -} - -func (version Version) CompareTo(compareToVersion Version) int { - if version.Major > compareToVersion.Major { - return 1 - } else if version.Major < compareToVersion.Major { - return -1 - } else if version.Minor > compareToVersion.Minor { - return 1 - } else if version.Minor < compareToVersion.Minor { - return -1 - } - return 0 -} - -func (version Version) String() string { - return strconv.Itoa(version.Major) + "." + strconv.Itoa(version.Minor) -} - -type InvalidVersionStringError struct { - version string -} - -func (e *InvalidVersionStringError) Error() string { - return "The version string was invalid: " + e.version -} diff --git a/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/versionnegotiation.go b/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/versionnegotiation.go deleted file mode 100644 index f1a2a2f33..000000000 --- a/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/versionnegotiation.go +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package azuredevops - -import "strconv" - -func negotiateRequestVersion(location *ApiResourceLocation, apiVersion string) (string, error) { - if apiVersion == "" { - // if no api-version is sent to the server, the server will decide the version. The server uses the latest - // released version if the endpoint has been released, otherwise it will use the latest preview version. - return apiVersion, nil - } - - matches := apiVersionRegEx.FindStringSubmatch(apiVersion) - if len(matches) == 0 && matches[0] != "" { - return apiVersion, &InvalidApiVersion{apiVersion} - } - - requestedApiVersion, err := NewVersion(matches[1]) - if err != nil { - return apiVersion, err - } - locationMinVersion, err := NewVersion(*location.MinVersion) - if err != nil { - return apiVersion, err - } - if locationMinVersion.CompareTo(*requestedApiVersion) > 0 { - // Client is older than the server. The server no longer supports this - // resource (deprecated). - return apiVersion, nil - } else { - locationMaxVersion, err := NewVersion(*location.MaxVersion) - if err != nil { - return apiVersion, err - } - if locationMaxVersion.CompareTo(*requestedApiVersion) < 0 { - // Client is newer than the server. Negotiate down to the latest version - // on the server - negotiatedVersion := string(*location.MaxVersion) - if *location.ReleasedVersion < *location.MaxVersion { - negotiatedVersion += "-preview" - } - return negotiatedVersion, nil - } else { - // We can send at the requested api version. Make sure the resource version - // is not bigger than what the server supports - negotiatedVersion := matches[1] - if len(matches) > 3 && matches[3] != "" { // matches '-preview' - negotiatedVersion += "-preview" - if len(matches) > 5 && matches[5] != "" { // has a resource version - requestedResourceVersion, _ := strconv.Atoi(matches[5]) - if *location.ResourceVersion < requestedResourceVersion { - negotiatedVersion += "." + strconv.Itoa(*location.ResourceVersion) - } else { - negotiatedVersion += "." + matches[5] - } - } - } else { - // requesting released version, ensure server supports a released version, and if not append '-preview' - locationReleasedVersion, err := NewVersion(*location.ReleasedVersion) - if err != nil { - return apiVersion, err - } - if (locationReleasedVersion.Major == 0 && locationReleasedVersion.Minor == 0) || locationReleasedVersion.CompareTo(*requestedApiVersion) < 0 { - negotiatedVersion += "-preview" - } - } - return negotiatedVersion, nil - } - } -} diff --git a/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/webapi/models.go b/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/webapi/models.go deleted file mode 100644 index b653f7d92..000000000 --- a/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/webapi/models.go +++ /dev/null @@ -1,335 +0,0 @@ -// -------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// -------------------------------------------------------------------------------------------- -// Generated file, DO NOT EDIT -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// -------------------------------------------------------------------------------------------- - -package webapi - -import ( - "github.com/google/uuid" - "github.com/microsoft/azure-devops-go-api/azuredevops" - "github.com/microsoft/azure-devops-go-api/azuredevops/system" -) - -// Information about the location of a REST API resource -type ApiResourceLocation struct { - // Area name for this resource - Area *string `json:"area,omitempty"` - // Unique Identifier for this location - Id *uuid.UUID `json:"id,omitempty"` - // Maximum api version that this resource supports (current server version for this resource) - MaxVersion *string `json:"maxVersion,omitempty"` - // Minimum api version that this resource supports - MinVersion *string `json:"minVersion,omitempty"` - // The latest version of this resource location that is in "Release" (non-preview) mode - ReleasedVersion *string `json:"releasedVersion,omitempty"` - // Resource name - ResourceName *string `json:"resourceName,omitempty"` - // The current resource version supported by this resource location - ResourceVersion *int `json:"resourceVersion,omitempty"` - // This location's route template (templated relative path) - RouteTemplate *string `json:"routeTemplate,omitempty"` -} - -// [Flags] Enumeration of the options that can be passed in on Connect. -type ConnectOptions string - -type connectOptionsValuesType struct { - None ConnectOptions - IncludeServices ConnectOptions - IncludeLastUserAccess ConnectOptions - IncludeInheritedDefinitionsOnly ConnectOptions - IncludeNonInheritedDefinitionsOnly ConnectOptions -} - -var ConnectOptionsValues = connectOptionsValuesType{ - // Retrieve no optional data. - None: "none", - // Includes information about AccessMappings and ServiceDefinitions. - IncludeServices: "includeServices", - // Includes the last user access for this host. - IncludeLastUserAccess: "includeLastUserAccess", - // This is only valid on the deployment host and when true. Will only return inherited definitions. - IncludeInheritedDefinitionsOnly: "includeInheritedDefinitionsOnly", - // When true will only return non inherited definitions. Only valid at non-deployment host. - IncludeNonInheritedDefinitionsOnly: "includeNonInheritedDefinitionsOnly", -} - -// [Flags] -type DeploymentFlags string - -type deploymentFlagsValuesType struct { - None DeploymentFlags - Hosted DeploymentFlags - OnPremises DeploymentFlags -} - -var DeploymentFlagsValues = deploymentFlagsValuesType{ - None: "none", - Hosted: "hosted", - OnPremises: "onPremises", -} - -// Defines an "actor" for an event. -type EventActor struct { - // Required: This is the identity of the user for the specified role. - Id *uuid.UUID `json:"id,omitempty"` - // Required: The event specific name of a role. - Role *string `json:"role,omitempty"` -} - -// Defines a scope for an event. -type EventScope struct { - // Required: This is the identity of the scope for the type. - Id *uuid.UUID `json:"id,omitempty"` - // Optional: The display name of the scope - Name *string `json:"name,omitempty"` - // Required: The event specific type of a scope. - Type *string `json:"type,omitempty"` -} - -type IdentityRef struct { - // This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - Links interface{} `json:"_links,omitempty"` - // The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - Descriptor *string `json:"descriptor,omitempty"` - // This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - DisplayName *string `json:"displayName,omitempty"` - // This url is the full route to the source resource of this graph subject. - Url *string `json:"url,omitempty"` - // Deprecated - Can be retrieved by querying the Graph user referenced in the "self" entry of the IdentityRef "_links" dictionary - DirectoryAlias *string `json:"directoryAlias,omitempty"` - Id *string `json:"id,omitempty"` - // Deprecated - Available in the "avatar" entry of the IdentityRef "_links" dictionary - ImageUrl *string `json:"imageUrl,omitempty"` - // Deprecated - Can be retrieved by querying the Graph membership state referenced in the "membershipState" entry of the GraphUser "_links" dictionary - Inactive *bool `json:"inactive,omitempty"` - // Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsAadUserType/Descriptor.IsAadGroupType) - IsAadIdentity *bool `json:"isAadIdentity,omitempty"` - // Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsGroupType) - IsContainer *bool `json:"isContainer,omitempty"` - IsDeletedInOrigin *bool `json:"isDeletedInOrigin,omitempty"` - // Deprecated - not in use in most preexisting implementations of ToIdentityRef - ProfileUrl *string `json:"profileUrl,omitempty"` - // Deprecated - use Domain+PrincipalName instead - UniqueName *string `json:"uniqueName,omitempty"` -} - -type IdentityRefWithEmail struct { - // This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - Links interface{} `json:"_links,omitempty"` - // The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - Descriptor *string `json:"descriptor,omitempty"` - // This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - DisplayName *string `json:"displayName,omitempty"` - // This url is the full route to the source resource of this graph subject. - Url *string `json:"url,omitempty"` - // Deprecated - Can be retrieved by querying the Graph user referenced in the "self" entry of the IdentityRef "_links" dictionary - DirectoryAlias *string `json:"directoryAlias,omitempty"` - Id *string `json:"id,omitempty"` - // Deprecated - Available in the "avatar" entry of the IdentityRef "_links" dictionary - ImageUrl *string `json:"imageUrl,omitempty"` - // Deprecated - Can be retrieved by querying the Graph membership state referenced in the "membershipState" entry of the GraphUser "_links" dictionary - Inactive *bool `json:"inactive,omitempty"` - // Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsAadUserType/Descriptor.IsAadGroupType) - IsAadIdentity *bool `json:"isAadIdentity,omitempty"` - // Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsGroupType) - IsContainer *bool `json:"isContainer,omitempty"` - IsDeletedInOrigin *bool `json:"isDeletedInOrigin,omitempty"` - // Deprecated - not in use in most preexisting implementations of ToIdentityRef - ProfileUrl *string `json:"profileUrl,omitempty"` - // Deprecated - use Domain+PrincipalName instead - UniqueName *string `json:"uniqueName,omitempty"` - PreferredEmailAddress *string `json:"preferredEmailAddress,omitempty"` -} - -// The JSON model for a JSON Patch operation -type JsonPatchOperation struct { - // The path to copy from for the Move/Copy operation. - From *string `json:"from,omitempty"` - // The patch operation - Op *Operation `json:"op,omitempty"` - // The path for the operation. In the case of an array, a zero based index can be used to specify the position in the array (e.g. /biscuits/0/name). The "-" character can be used instead of an index to insert at the end of the array (e.g. /biscuits/-). - Path *string `json:"path,omitempty"` - // The value for the operation. This is either a primitive or a JToken. - Value interface{} `json:"value,omitempty"` -} - -type JsonWebToken struct { - // Gets a value indicating whether or not this token has been successfully authenticated with the remote server. - IsAuthenticated *bool `json:"isAuthenticated,omitempty"` - // Metadata about the token in a collection of properties. - Properties *map[string]string `json:"properties,omitempty"` -} - -type JWTAlgorithm string - -type jwtAlgorithmValuesType struct { - None JWTAlgorithm - HS256 JWTAlgorithm - RS256 JWTAlgorithm -} - -var JWTAlgorithmValues = jwtAlgorithmValuesType{ - None: "none", - HS256: "hS256", - RS256: "rS256", -} - -type Operation string - -type operationValuesType struct { - Add Operation - Remove Operation - Replace Operation - Move Operation - Copy Operation - Test Operation -} - -var OperationValues = operationValuesType{ - Add: "add", - Remove: "remove", - Replace: "replace", - Move: "move", - Copy: "copy", - Test: "test", -} - -// Represents the public key portion of an RSA asymmetric key. -type PublicKey struct { - // Gets or sets the exponent for the public key. - Exponent *[]byte `json:"exponent,omitempty"` - // Gets or sets the modulus for the public key. - Modulus *[]byte `json:"modulus,omitempty"` -} - -type Publisher struct { - // Name of the publishing service. - Name *string `json:"name,omitempty"` - // Service Owner Guid Eg. Tfs : 00025394-6065-48CA-87D9-7F5672854EF7 - ServiceOwnerId *uuid.UUID `json:"serviceOwnerId,omitempty"` -} - -// The class to represent a REST reference link. RFC: http://tools.ietf.org/html/draft-kelly-json-hal-06 The RFC is not fully implemented, additional properties are allowed on the reference link but as of yet we don't have a need for them. -type ReferenceLink struct { - Href *string `json:"href,omitempty"` -} - -type ResourceRef struct { - Id *string `json:"id,omitempty"` - Url *string `json:"url,omitempty"` -} - -type ServiceEvent struct { - // This is the id of the type. Constants that will be used by subscribers to identify/filter events being published on a topic. - EventType *string `json:"eventType,omitempty"` - // This is the service that published this event. - Publisher *Publisher `json:"publisher,omitempty"` - // The resource object that carries specific information about the event. The object must have the ServiceEventObject applied for serialization/deserialization to work. - Resource interface{} `json:"resource,omitempty"` - // This dictionary carries the context descriptors along with their ids. - ResourceContainers *map[string]interface{} `json:"resourceContainers,omitempty"` - // This is the version of the resource. - ResourceVersion *string `json:"resourceVersion,omitempty"` -} - -// A signed url allowing limited-time anonymous access to private resources. -type SignedUrl struct { - SignatureExpires *azuredevops.Time `json:"signatureExpires,omitempty"` - Url *string `json:"url,omitempty"` -} - -type TeamMember struct { - Identity *IdentityRef `json:"identity,omitempty"` - IsTeamAdmin *bool `json:"isTeamAdmin,omitempty"` -} - -// A single secured timing consisting of a duration and start time -type TimingEntry struct { - // Duration of the entry in ticks - ElapsedTicks *uint64 `json:"elapsedTicks,omitempty"` - // Properties to distinguish timings within the same group or to provide data to send with telemetry - Properties *map[string]interface{} `json:"properties,omitempty"` - // Offset from Server Request Context start time in microseconds - StartOffset *uint64 `json:"startOffset,omitempty"` -} - -// A set of secured performance timings all keyed off of the same string -type TimingGroup struct { - // The total number of timing entries associated with this group - Count *int `json:"count,omitempty"` - // Overall duration of all entries in this group in ticks - ElapsedTicks *uint64 `json:"elapsedTicks,omitempty"` - // A list of timing entries in this group. Only the first few entries in each group are collected. - Timings *[]TimingEntry `json:"timings,omitempty"` -} - -// This class describes a trace filter, i.e. a set of criteria on whether or not a trace event should be emitted -type TraceFilter struct { - Area *string `json:"area,omitempty"` - ExceptionType *string `json:"exceptionType,omitempty"` - IsEnabled *bool `json:"isEnabled,omitempty"` - Layer *string `json:"layer,omitempty"` - Level *system.TraceLevel `json:"level,omitempty"` - Method *string `json:"method,omitempty"` - // Used to serialize additional identity information (display name, etc) to clients. Not set by default. Server-side callers should use OwnerId. - Owner *IdentityRef `json:"owner,omitempty"` - OwnerId *uuid.UUID `json:"ownerId,omitempty"` - Path *string `json:"path,omitempty"` - ProcessName *string `json:"processName,omitempty"` - Service *string `json:"service,omitempty"` - ServiceHost *uuid.UUID `json:"serviceHost,omitempty"` - TimeCreated *azuredevops.Time `json:"timeCreated,omitempty"` - TraceId *uuid.UUID `json:"traceId,omitempty"` - Tracepoint *int `json:"tracepoint,omitempty"` - Uri *string `json:"uri,omitempty"` - UserAgent *string `json:"userAgent,omitempty"` - UserLogin *string `json:"userLogin,omitempty"` -} - -type VssJsonCollectionWrapper struct { - Count *int `json:"count,omitempty"` - Value *[]interface{} `json:"value,omitempty"` -} - -type VssJsonCollectionWrapperBase struct { - Count *int `json:"count,omitempty"` -} - -// This is the type used for firing notifications intended for the subsystem in the Notifications SDK. For components that can't take a dependency on the Notifications SDK directly, they can use ITeamFoundationEventService.PublishNotification and the Notifications SDK ISubscriber implementation will get it. -type VssNotificationEvent struct { - // Optional: A list of actors which are additional identities with corresponding roles that are relevant to the event. - Actors *[]EventActor `json:"actors,omitempty"` - // Optional: A list of artifacts referenced or impacted by this event. - ArtifactUris *[]string `json:"artifactUris,omitempty"` - // Required: The event payload. If Data is a string, it must be in Json or XML format. Otherwise it must have a serialization format attribute. - Data interface{} `json:"data,omitempty"` - // Required: The name of the event. This event must be registered in the context it is being fired. - EventType *string `json:"eventType,omitempty"` - // How long before the event expires and will be cleaned up. The default is to use the system default. - ExpiresIn interface{} `json:"expiresIn,omitempty"` - // The id of the item, artifact, extension, project, etc. - ItemId *string `json:"itemId,omitempty"` - // How long to wait before processing this event. The default is to process immediately. - ProcessDelay interface{} `json:"processDelay,omitempty"` - // Optional: A list of scopes which are are relevant to the event. - Scopes *[]EventScope `json:"scopes,omitempty"` - // This is the time the original source event for this VssNotificationEvent was created. For example, for something like a build completion notification SourceEventCreatedTime should be the time the build finished not the time this event was raised. - SourceEventCreatedTime *azuredevops.Time `json:"sourceEventCreatedTime,omitempty"` -} - -type WrappedException struct { - CustomProperties *map[string]interface{} `json:"customProperties,omitempty"` - ErrorCode *int `json:"errorCode,omitempty"` - EventId *int `json:"eventId,omitempty"` - HelpLink *string `json:"helpLink,omitempty"` - InnerException *WrappedException `json:"innerException,omitempty"` - Message *string `json:"message,omitempty"` - StackTrace *string `json:"stackTrace,omitempty"` - TypeKey *string `json:"typeKey,omitempty"` - TypeName *string `json:"typeName,omitempty"` -} diff --git a/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/workitemtracking/client.go b/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/workitemtracking/client.go deleted file mode 100644 index f15b0e03d..000000000 --- a/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/workitemtracking/client.go +++ /dev/null @@ -1,3215 +0,0 @@ -// -------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// -------------------------------------------------------------------------------------------- -// Generated file, DO NOT EDIT -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// -------------------------------------------------------------------------------------------- - -package workitemtracking - -import ( - "bytes" - "context" - "encoding/json" - "github.com/google/uuid" - "github.com/microsoft/azure-devops-go-api/azuredevops" - "github.com/microsoft/azure-devops-go-api/azuredevops/webapi" - "io" - "net/http" - "net/url" - "strconv" - "strings" -) - -var ResourceAreaId, _ = uuid.Parse("5264459e-e5e0-4bd8-b118-0985e68a4ec5") - -type Client interface { - // [Preview API] Add a comment on a work item. - AddComment(context.Context, AddCommentArgs) (*Comment, error) - // Uploads an attachment. - CreateAttachment(context.Context, CreateAttachmentArgs) (*AttachmentReference, error) - // [Preview API] Adds a new reaction to a comment. - CreateCommentReaction(context.Context, CreateCommentReactionArgs) (*CommentReaction, error) - // Create a new field. - CreateField(context.Context, CreateFieldArgs) (*WorkItemField, error) - // Create new or update an existing classification node. - CreateOrUpdateClassificationNode(context.Context, CreateOrUpdateClassificationNodeArgs) (*WorkItemClassificationNode, error) - // Creates a query, or moves a query. - CreateQuery(context.Context, CreateQueryArgs) (*QueryHierarchyItem, error) - // [Preview API] Creates a template - CreateTemplate(context.Context, CreateTemplateArgs) (*WorkItemTemplate, error) - // Creates a single work item. - CreateWorkItem(context.Context, CreateWorkItemArgs) (*WorkItem, error) - // Delete an existing classification node. - DeleteClassificationNode(context.Context, DeleteClassificationNodeArgs) error - // [Preview API] Delete a comment on a work item. - DeleteComment(context.Context, DeleteCommentArgs) error - // [Preview API] Deletes an existing reaction on a comment. - DeleteCommentReaction(context.Context, DeleteCommentReactionArgs) (*CommentReaction, error) - // Deletes the field. - DeleteField(context.Context, DeleteFieldArgs) error - // Delete a query or a folder. This deletes any permission change on the deleted query or folder and any of its descendants if it is a folder. It is important to note that the deleted permission changes cannot be recovered upon undeleting the query or folder. - DeleteQuery(context.Context, DeleteQueryArgs) error - // [Preview API] Deletes the template with given id - DeleteTemplate(context.Context, DeleteTemplateArgs) error - // Deletes the specified work item and sends it to the Recycle Bin, so that it can be restored back, if required. Optionally, if the destroy parameter has been set to true, it destroys the work item permanently. WARNING: If the destroy parameter is set to true, work items deleted by this command will NOT go to recycle-bin and there is no way to restore/recover them after deletion. It is recommended NOT to use this parameter. If you do, please use this parameter with extreme caution. - DeleteWorkItem(context.Context, DeleteWorkItemArgs) (*WorkItemDelete, error) - // Destroys the specified work item permanently from the Recycle Bin. This action can not be undone. - DestroyWorkItem(context.Context, DestroyWorkItemArgs) error - // Downloads an attachment. - GetAttachmentContent(context.Context, GetAttachmentContentArgs) (io.ReadCloser, error) - // Downloads an attachment. - GetAttachmentZip(context.Context, GetAttachmentZipArgs) (io.ReadCloser, error) - // Gets the classification node for a given node path. - GetClassificationNode(context.Context, GetClassificationNodeArgs) (*WorkItemClassificationNode, error) - // Gets root classification nodes or list of classification nodes for a given list of nodes ids, for a given project. In case ids parameter is supplied you will get list of classification nodes for those ids. Otherwise you will get root classification nodes for this project. - GetClassificationNodes(context.Context, GetClassificationNodesArgs) (*[]WorkItemClassificationNode, error) - // [Preview API] Returns a work item comment. - GetComment(context.Context, GetCommentArgs) (*Comment, error) - // [Preview API] Gets reactions of a comment. - GetCommentReactions(context.Context, GetCommentReactionsArgs) (*[]CommentReaction, error) - // [Preview API] Returns a list of work item comments, pageable. - GetComments(context.Context, GetCommentsArgs) (*CommentList, error) - // [Preview API] Returns a list of work item comments by ids. - GetCommentsBatch(context.Context, GetCommentsBatchArgs) (*CommentList, error) - // [Preview API] - GetCommentVersion(context.Context, GetCommentVersionArgs) (*CommentVersion, error) - // [Preview API] - GetCommentVersions(context.Context, GetCommentVersionsArgs) (*[]CommentVersion, error) - // Gets a deleted work item from Recycle Bin. - GetDeletedWorkItem(context.Context, GetDeletedWorkItemArgs) (*WorkItemDelete, error) - // Gets the work items from the recycle bin, whose IDs have been specified in the parameters - GetDeletedWorkItems(context.Context, GetDeletedWorkItemsArgs) (*[]WorkItemDeleteReference, error) - // Gets a list of the IDs and the URLs of the deleted the work items in the Recycle Bin. - GetDeletedWorkItemShallowReferences(context.Context, GetDeletedWorkItemShallowReferencesArgs) (*[]WorkItemDeleteShallowReference, error) - // [Preview API] Get users who reacted on the comment. - GetEngagedUsers(context.Context, GetEngagedUsersArgs) (*[]webapi.IdentityRef, error) - // Gets information on a specific field. - GetField(context.Context, GetFieldArgs) (*WorkItemField, error) - // Returns information for all fields. - GetFields(context.Context, GetFieldsArgs) (*[]WorkItemField, error) - // Gets the root queries and their children - GetQueries(context.Context, GetQueriesArgs) (*[]QueryHierarchyItem, error) - // Gets a list of queries by ids (Maximum 1000) - GetQueriesBatch(context.Context, GetQueriesBatchArgs) (*[]QueryHierarchyItem, error) - // Retrieves an individual query and its children - GetQuery(context.Context, GetQueryArgs) (*QueryHierarchyItem, error) - // Gets the results of the query given the query ID. - GetQueryResultCount(context.Context, GetQueryResultCountArgs) (*int, error) - // [Preview API] Gets recent work item activities - GetRecentActivityData(context.Context, GetRecentActivityDataArgs) (*[]AccountRecentActivityWorkItemModel2, error) - // Gets the work item relation type definition. - GetRelationType(context.Context, GetRelationTypeArgs) (*WorkItemRelationType, error) - // Gets the work item relation types. - GetRelationTypes(context.Context, GetRelationTypesArgs) (*[]WorkItemRelationType, error) - // Get a batch of work item links - GetReportingLinksByLinkType(context.Context, GetReportingLinksByLinkTypeArgs) (*ReportingWorkItemLinksBatch, error) - // Returns a fully hydrated work item for the requested revision - GetRevision(context.Context, GetRevisionArgs) (*WorkItem, error) - // Returns the list of fully hydrated work item revisions, paged. - GetRevisions(context.Context, GetRevisionsArgs) (*[]WorkItem, error) - // Gets root classification nodes under the project. - GetRootNodes(context.Context, GetRootNodesArgs) (*[]WorkItemClassificationNode, error) - // [Preview API] Gets the template with specified id - GetTemplate(context.Context, GetTemplateArgs) (*WorkItemTemplate, error) - // [Preview API] Gets template - GetTemplates(context.Context, GetTemplatesArgs) (*[]WorkItemTemplateReference, error) - // Returns a single update for a work item - GetUpdate(context.Context, GetUpdateArgs) (*WorkItemUpdate, error) - // Returns a the deltas between work item revisions - GetUpdates(context.Context, GetUpdatesArgs) (*[]WorkItemUpdate, error) - // [Preview API] Get the list of work item tracking outbound artifact link types. - GetWorkArtifactLinkTypes(context.Context, GetWorkArtifactLinkTypesArgs) (*[]WorkArtifactLink, error) - // Returns a single work item. - GetWorkItem(context.Context, GetWorkItemArgs) (*WorkItem, error) - // Get a work item icon given the friendly name and icon color. - GetWorkItemIconJson(context.Context, GetWorkItemIconJsonArgs) (*WorkItemIcon, error) - // Get a list of all work item icons. - GetWorkItemIcons(context.Context, GetWorkItemIconsArgs) (*[]WorkItemIcon, error) - // Get a work item icon given the friendly name and icon color. - GetWorkItemIconSvg(context.Context, GetWorkItemIconSvgArgs) (io.ReadCloser, error) - // Get a work item icon given the friendly name and icon color. - GetWorkItemIconXaml(context.Context, GetWorkItemIconXamlArgs) (io.ReadCloser, error) - // [Preview API] Returns the next state on the given work item IDs. - GetWorkItemNextStatesOnCheckinAction(context.Context, GetWorkItemNextStatesOnCheckinActionArgs) (*[]WorkItemNextStateOnTransition, error) - // Returns a list of work items (Maximum 200) - GetWorkItems(context.Context, GetWorkItemsArgs) (*[]WorkItem, error) - // Gets work items for a list of work item ids (Maximum 200) - GetWorkItemsBatch(context.Context, GetWorkItemsBatchArgs) (*[]WorkItem, error) - // Returns a single work item from a template. - GetWorkItemTemplate(context.Context, GetWorkItemTemplateArgs) (*WorkItem, error) - // Returns a work item type definition. - GetWorkItemType(context.Context, GetWorkItemTypeArgs) (*WorkItemType, error) - // Get all work item type categories. - GetWorkItemTypeCategories(context.Context, GetWorkItemTypeCategoriesArgs) (*[]WorkItemTypeCategory, error) - // Get specific work item type category by name. - GetWorkItemTypeCategory(context.Context, GetWorkItemTypeCategoryArgs) (*WorkItemTypeCategory, error) - // Get a list of fields for a work item type with detailed references. - GetWorkItemTypeFieldsWithReferences(context.Context, GetWorkItemTypeFieldsWithReferencesArgs) (*[]WorkItemTypeFieldWithReferences, error) - // Get a field for a work item type with detailed references. - GetWorkItemTypeFieldWithReferences(context.Context, GetWorkItemTypeFieldWithReferencesArgs) (*WorkItemTypeFieldWithReferences, error) - // Returns the list of work item types - GetWorkItemTypes(context.Context, GetWorkItemTypesArgs) (*[]WorkItemType, error) - // [Preview API] Returns the state names and colors for a work item type. - GetWorkItemTypeStates(context.Context, GetWorkItemTypeStatesArgs) (*[]WorkItemStateColor, error) - // Gets the results of the query given the query ID. - QueryById(context.Context, QueryByIdArgs) (*WorkItemQueryResult, error) - // Gets the results of the query given its WIQL. - QueryByWiql(context.Context, QueryByWiqlArgs) (*WorkItemQueryResult, error) - // [Preview API] Queries work items linked to a given list of artifact URI. - QueryWorkItemsForArtifactUris(context.Context, QueryWorkItemsForArtifactUrisArgs) (*ArtifactUriQueryResult, error) - // [Preview API] - ReadReportingDiscussions(context.Context, ReadReportingDiscussionsArgs) (*ReportingWorkItemRevisionsBatch, error) - // Get a batch of work item revisions with the option of including deleted items - ReadReportingRevisionsGet(context.Context, ReadReportingRevisionsGetArgs) (*ReportingWorkItemRevisionsBatch, error) - // Get a batch of work item revisions. This request may be used if your list of fields is large enough that it may run the URL over the length limit. - ReadReportingRevisionsPost(context.Context, ReadReportingRevisionsPostArgs) (*ReportingWorkItemRevisionsBatch, error) - // [Preview API] Replace template contents - ReplaceTemplate(context.Context, ReplaceTemplateArgs) (*WorkItemTemplate, error) - // Restores the deleted work item from Recycle Bin. - RestoreWorkItem(context.Context, RestoreWorkItemArgs) (*WorkItemDelete, error) - // Searches all queries the user has access to in the current project - SearchQueries(context.Context, SearchQueriesArgs) (*QueryHierarchyItemsResult, error) - // Update an existing classification node. - UpdateClassificationNode(context.Context, UpdateClassificationNodeArgs) (*WorkItemClassificationNode, error) - // [Preview API] Update a comment on a work item. - UpdateComment(context.Context, UpdateCommentArgs) (*Comment, error) - // Update a query or a folder. This allows you to update, rename and move queries and folders. - UpdateQuery(context.Context, UpdateQueryArgs) (*QueryHierarchyItem, error) - // Updates a single work item. - UpdateWorkItem(context.Context, UpdateWorkItemArgs) (*WorkItem, error) -} - -type ClientImpl struct { - Client azuredevops.Client -} - -func NewClient(ctx context.Context, connection *azuredevops.Connection) (Client, error) { - client, err := connection.GetClientByResourceAreaId(ctx, ResourceAreaId) - if err != nil { - return nil, err - } - return &ClientImpl{ - Client: *client, - }, nil -} - -// [Preview API] Add a comment on a work item. -func (client *ClientImpl) AddComment(ctx context.Context, args AddCommentArgs) (*Comment, error) { - if args.Request == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.Request"} - } - routeValues := make(map[string]string) - if args.Project == nil || *args.Project == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Project"} - } - routeValues["project"] = *args.Project - if args.WorkItemId == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.WorkItemId"} - } - routeValues["workItemId"] = strconv.Itoa(*args.WorkItemId) - - body, marshalErr := json.Marshal(*args.Request) - if marshalErr != nil { - return nil, marshalErr - } - locationId, _ := uuid.Parse("608aac0a-32e1-4493-a863-b9cf4566d257") - resp, err := client.Client.Send(ctx, http.MethodPost, locationId, "5.1-preview.3", routeValues, nil, bytes.NewReader(body), "application/json", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue Comment - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the AddComment function -type AddCommentArgs struct { - // (required) Comment create request. - Request *CommentCreate - // (required) Project ID or project name - Project *string - // (required) Id of a work item. - WorkItemId *int -} - -// Uploads an attachment. -func (client *ClientImpl) CreateAttachment(ctx context.Context, args CreateAttachmentArgs) (*AttachmentReference, error) { - if args.UploadStream == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.UploadStream"} - } - routeValues := make(map[string]string) - if args.Project != nil && *args.Project != "" { - routeValues["project"] = *args.Project - } - - queryParams := url.Values{} - if args.FileName != nil { - queryParams.Add("fileName", *args.FileName) - } - if args.UploadType != nil { - queryParams.Add("uploadType", *args.UploadType) - } - if args.AreaPath != nil { - queryParams.Add("areaPath", *args.AreaPath) - } - locationId, _ := uuid.Parse("e07b5fa4-1499-494d-a496-64b860fd64ff") - resp, err := client.Client.Send(ctx, http.MethodPost, locationId, "5.1", routeValues, queryParams, args.UploadStream, "application/octet-stream", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue AttachmentReference - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the CreateAttachment function -type CreateAttachmentArgs struct { - // (required) Stream to upload - UploadStream io.Reader - // (optional) Project ID or project name - Project *string - // (optional) The name of the file - FileName *string - // (optional) Attachment upload type: Simple or Chunked - UploadType *string - // (optional) Target project Area Path - AreaPath *string -} - -// [Preview API] Adds a new reaction to a comment. -func (client *ClientImpl) CreateCommentReaction(ctx context.Context, args CreateCommentReactionArgs) (*CommentReaction, error) { - routeValues := make(map[string]string) - if args.Project == nil || *args.Project == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Project"} - } - routeValues["project"] = *args.Project - if args.WorkItemId == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.WorkItemId"} - } - routeValues["workItemId"] = strconv.Itoa(*args.WorkItemId) - if args.CommentId == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.CommentId"} - } - routeValues["commentId"] = strconv.Itoa(*args.CommentId) - if args.ReactionType == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.ReactionType"} - } - routeValues["reactionType"] = string(*args.ReactionType) - - locationId, _ := uuid.Parse("f6cb3f27-1028-4851-af96-887e570dc21f") - resp, err := client.Client.Send(ctx, http.MethodPut, locationId, "5.1-preview.1", routeValues, nil, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue CommentReaction - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the CreateCommentReaction function -type CreateCommentReactionArgs struct { - // (required) Project ID or project name - Project *string - // (required) WorkItem ID - WorkItemId *int - // (required) Comment ID - CommentId *int - // (required) Type of the reaction - ReactionType *CommentReactionType -} - -// Create a new field. -func (client *ClientImpl) CreateField(ctx context.Context, args CreateFieldArgs) (*WorkItemField, error) { - if args.WorkItemField == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.WorkItemField"} - } - routeValues := make(map[string]string) - if args.Project != nil && *args.Project != "" { - routeValues["project"] = *args.Project - } - - body, marshalErr := json.Marshal(*args.WorkItemField) - if marshalErr != nil { - return nil, marshalErr - } - locationId, _ := uuid.Parse("b51fd764-e5c2-4b9b-aaf7-3395cf4bdd94") - resp, err := client.Client.Send(ctx, http.MethodPost, locationId, "5.1", routeValues, nil, bytes.NewReader(body), "application/json", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue WorkItemField - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the CreateField function -type CreateFieldArgs struct { - // (required) New field definition - WorkItemField *WorkItemField - // (optional) Project ID or project name - Project *string -} - -// Create new or update an existing classification node. -func (client *ClientImpl) CreateOrUpdateClassificationNode(ctx context.Context, args CreateOrUpdateClassificationNodeArgs) (*WorkItemClassificationNode, error) { - if args.PostedNode == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.PostedNode"} - } - routeValues := make(map[string]string) - if args.Project == nil || *args.Project == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Project"} - } - routeValues["project"] = *args.Project - if args.StructureGroup == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.StructureGroup"} - } - routeValues["structureGroup"] = string(*args.StructureGroup) - if args.Path != nil && *args.Path != "" { - routeValues["path"] = *args.Path - } - - body, marshalErr := json.Marshal(*args.PostedNode) - if marshalErr != nil { - return nil, marshalErr - } - locationId, _ := uuid.Parse("5a172953-1b41-49d3-840a-33f79c3ce89f") - resp, err := client.Client.Send(ctx, http.MethodPost, locationId, "5.1", routeValues, nil, bytes.NewReader(body), "application/json", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue WorkItemClassificationNode - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the CreateOrUpdateClassificationNode function -type CreateOrUpdateClassificationNodeArgs struct { - // (required) Node to create or update. - PostedNode *WorkItemClassificationNode - // (required) Project ID or project name - Project *string - // (required) Structure group of the classification node, area or iteration. - StructureGroup *TreeStructureGroup - // (optional) Path of the classification node. - Path *string -} - -// Creates a query, or moves a query. -func (client *ClientImpl) CreateQuery(ctx context.Context, args CreateQueryArgs) (*QueryHierarchyItem, error) { - if args.PostedQuery == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.PostedQuery"} - } - routeValues := make(map[string]string) - if args.Project == nil || *args.Project == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Project"} - } - routeValues["project"] = *args.Project - if args.Query == nil || *args.Query == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Query"} - } - routeValues["query"] = *args.Query - - queryParams := url.Values{} - if args.ValidateWiqlOnly != nil { - queryParams.Add("validateWiqlOnly", strconv.FormatBool(*args.ValidateWiqlOnly)) - } - body, marshalErr := json.Marshal(*args.PostedQuery) - if marshalErr != nil { - return nil, marshalErr - } - locationId, _ := uuid.Parse("a67d190c-c41f-424b-814d-0e906f659301") - resp, err := client.Client.Send(ctx, http.MethodPost, locationId, "5.1", routeValues, queryParams, bytes.NewReader(body), "application/json", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue QueryHierarchyItem - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the CreateQuery function -type CreateQueryArgs struct { - // (required) The query to create. - PostedQuery *QueryHierarchyItem - // (required) Project ID or project name - Project *string - // (required) The parent id or path under which the query is to be created. - Query *string - // (optional) If you only want to validate your WIQL query without actually creating one, set it to true. Default is false. - ValidateWiqlOnly *bool -} - -// [Preview API] Creates a template -func (client *ClientImpl) CreateTemplate(ctx context.Context, args CreateTemplateArgs) (*WorkItemTemplate, error) { - if args.Template == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.Template"} - } - routeValues := make(map[string]string) - if args.Project == nil || *args.Project == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Project"} - } - routeValues["project"] = *args.Project - if args.Team == nil || *args.Team == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Team"} - } - routeValues["team"] = *args.Team - - body, marshalErr := json.Marshal(*args.Template) - if marshalErr != nil { - return nil, marshalErr - } - locationId, _ := uuid.Parse("6a90345f-a676-4969-afce-8e163e1d5642") - resp, err := client.Client.Send(ctx, http.MethodPost, locationId, "5.1-preview.1", routeValues, nil, bytes.NewReader(body), "application/json", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue WorkItemTemplate - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the CreateTemplate function -type CreateTemplateArgs struct { - // (required) Template contents - Template *WorkItemTemplate - // (required) Project ID or project name - Project *string - // (required) Team ID or team name - Team *string -} - -// Creates a single work item. -func (client *ClientImpl) CreateWorkItem(ctx context.Context, args CreateWorkItemArgs) (*WorkItem, error) { - if args.Document == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.Document"} - } - routeValues := make(map[string]string) - if args.Project == nil || *args.Project == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Project"} - } - routeValues["project"] = *args.Project - if args.Type == nil || *args.Type == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Type"} - } - routeValues["type"] = *args.Type - - queryParams := url.Values{} - if args.ValidateOnly != nil { - queryParams.Add("validateOnly", strconv.FormatBool(*args.ValidateOnly)) - } - if args.BypassRules != nil { - queryParams.Add("bypassRules", strconv.FormatBool(*args.BypassRules)) - } - if args.SuppressNotifications != nil { - queryParams.Add("suppressNotifications", strconv.FormatBool(*args.SuppressNotifications)) - } - if args.Expand != nil { - queryParams.Add("$expand", string(*args.Expand)) - } - body, marshalErr := json.Marshal(*args.Document) - if marshalErr != nil { - return nil, marshalErr - } - locationId, _ := uuid.Parse("62d3d110-0047-428c-ad3c-4fe872c91c74") - resp, err := client.Client.Send(ctx, http.MethodPost, locationId, "5.1", routeValues, queryParams, bytes.NewReader(body), "application/json-patch+json", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue WorkItem - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the CreateWorkItem function -type CreateWorkItemArgs struct { - // (required) The JSON Patch document representing the work item - Document *[]webapi.JsonPatchOperation - // (required) Project ID or project name - Project *string - // (required) The work item type of the work item to create - Type *string - // (optional) Indicate if you only want to validate the changes without saving the work item - ValidateOnly *bool - // (optional) Do not enforce the work item type rules on this update - BypassRules *bool - // (optional) Do not fire any notifications for this change - SuppressNotifications *bool - // (optional) The expand parameters for work item attributes. Possible options are { None, Relations, Fields, Links, All }. - Expand *WorkItemExpand -} - -// Delete an existing classification node. -func (client *ClientImpl) DeleteClassificationNode(ctx context.Context, args DeleteClassificationNodeArgs) error { - routeValues := make(map[string]string) - if args.Project == nil || *args.Project == "" { - return &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Project"} - } - routeValues["project"] = *args.Project - if args.StructureGroup == nil { - return &azuredevops.ArgumentNilError{ArgumentName: "args.StructureGroup"} - } - routeValues["structureGroup"] = string(*args.StructureGroup) - if args.Path != nil && *args.Path != "" { - routeValues["path"] = *args.Path - } - - queryParams := url.Values{} - if args.ReclassifyId != nil { - queryParams.Add("$reclassifyId", strconv.Itoa(*args.ReclassifyId)) - } - locationId, _ := uuid.Parse("5a172953-1b41-49d3-840a-33f79c3ce89f") - _, err := client.Client.Send(ctx, http.MethodDelete, locationId, "5.1", routeValues, queryParams, nil, "", "application/json", nil) - if err != nil { - return err - } - - return nil -} - -// Arguments for the DeleteClassificationNode function -type DeleteClassificationNodeArgs struct { - // (required) Project ID or project name - Project *string - // (required) Structure group of the classification node, area or iteration. - StructureGroup *TreeStructureGroup - // (optional) Path of the classification node. - Path *string - // (optional) Id of the target classification node for reclassification. - ReclassifyId *int -} - -// [Preview API] Delete a comment on a work item. -func (client *ClientImpl) DeleteComment(ctx context.Context, args DeleteCommentArgs) error { - routeValues := make(map[string]string) - if args.Project == nil || *args.Project == "" { - return &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Project"} - } - routeValues["project"] = *args.Project - if args.WorkItemId == nil { - return &azuredevops.ArgumentNilError{ArgumentName: "args.WorkItemId"} - } - routeValues["workItemId"] = strconv.Itoa(*args.WorkItemId) - if args.CommentId == nil { - return &azuredevops.ArgumentNilError{ArgumentName: "args.CommentId"} - } - routeValues["commentId"] = strconv.Itoa(*args.CommentId) - - locationId, _ := uuid.Parse("608aac0a-32e1-4493-a863-b9cf4566d257") - _, err := client.Client.Send(ctx, http.MethodDelete, locationId, "5.1-preview.3", routeValues, nil, nil, "", "application/json", nil) - if err != nil { - return err - } - - return nil -} - -// Arguments for the DeleteComment function -type DeleteCommentArgs struct { - // (required) Project ID or project name - Project *string - // (required) Id of a work item. - WorkItemId *int - // (required) - CommentId *int -} - -// [Preview API] Deletes an existing reaction on a comment. -func (client *ClientImpl) DeleteCommentReaction(ctx context.Context, args DeleteCommentReactionArgs) (*CommentReaction, error) { - routeValues := make(map[string]string) - if args.Project == nil || *args.Project == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Project"} - } - routeValues["project"] = *args.Project - if args.WorkItemId == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.WorkItemId"} - } - routeValues["workItemId"] = strconv.Itoa(*args.WorkItemId) - if args.CommentId == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.CommentId"} - } - routeValues["commentId"] = strconv.Itoa(*args.CommentId) - if args.ReactionType == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.ReactionType"} - } - routeValues["reactionType"] = string(*args.ReactionType) - - locationId, _ := uuid.Parse("f6cb3f27-1028-4851-af96-887e570dc21f") - resp, err := client.Client.Send(ctx, http.MethodDelete, locationId, "5.1-preview.1", routeValues, nil, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue CommentReaction - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the DeleteCommentReaction function -type DeleteCommentReactionArgs struct { - // (required) Project ID or project name - Project *string - // (required) WorkItem ID - WorkItemId *int - // (required) Comment ID - CommentId *int - // (required) Type of the reaction - ReactionType *CommentReactionType -} - -// Deletes the field. -func (client *ClientImpl) DeleteField(ctx context.Context, args DeleteFieldArgs) error { - routeValues := make(map[string]string) - if args.Project != nil && *args.Project != "" { - routeValues["project"] = *args.Project - } - if args.FieldNameOrRefName == nil || *args.FieldNameOrRefName == "" { - return &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.FieldNameOrRefName"} - } - routeValues["fieldNameOrRefName"] = *args.FieldNameOrRefName - - locationId, _ := uuid.Parse("b51fd764-e5c2-4b9b-aaf7-3395cf4bdd94") - _, err := client.Client.Send(ctx, http.MethodDelete, locationId, "5.1", routeValues, nil, nil, "", "application/json", nil) - if err != nil { - return err - } - - return nil -} - -// Arguments for the DeleteField function -type DeleteFieldArgs struct { - // (required) Field simple name or reference name - FieldNameOrRefName *string - // (optional) Project ID or project name - Project *string -} - -// Delete a query or a folder. This deletes any permission change on the deleted query or folder and any of its descendants if it is a folder. It is important to note that the deleted permission changes cannot be recovered upon undeleting the query or folder. -func (client *ClientImpl) DeleteQuery(ctx context.Context, args DeleteQueryArgs) error { - routeValues := make(map[string]string) - if args.Project == nil || *args.Project == "" { - return &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Project"} - } - routeValues["project"] = *args.Project - if args.Query == nil || *args.Query == "" { - return &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Query"} - } - routeValues["query"] = *args.Query - - locationId, _ := uuid.Parse("a67d190c-c41f-424b-814d-0e906f659301") - _, err := client.Client.Send(ctx, http.MethodDelete, locationId, "5.1", routeValues, nil, nil, "", "application/json", nil) - if err != nil { - return err - } - - return nil -} - -// Arguments for the DeleteQuery function -type DeleteQueryArgs struct { - // (required) Project ID or project name - Project *string - // (required) ID or path of the query or folder to delete. - Query *string -} - -// [Preview API] Deletes the template with given id -func (client *ClientImpl) DeleteTemplate(ctx context.Context, args DeleteTemplateArgs) error { - routeValues := make(map[string]string) - if args.Project == nil || *args.Project == "" { - return &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Project"} - } - routeValues["project"] = *args.Project - if args.Team == nil || *args.Team == "" { - return &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Team"} - } - routeValues["team"] = *args.Team - if args.TemplateId == nil { - return &azuredevops.ArgumentNilError{ArgumentName: "args.TemplateId"} - } - routeValues["templateId"] = (*args.TemplateId).String() - - locationId, _ := uuid.Parse("fb10264a-8836-48a0-8033-1b0ccd2748d5") - _, err := client.Client.Send(ctx, http.MethodDelete, locationId, "5.1-preview.1", routeValues, nil, nil, "", "application/json", nil) - if err != nil { - return err - } - - return nil -} - -// Arguments for the DeleteTemplate function -type DeleteTemplateArgs struct { - // (required) Project ID or project name - Project *string - // (required) Team ID or team name - Team *string - // (required) Template id - TemplateId *uuid.UUID -} - -// Deletes the specified work item and sends it to the Recycle Bin, so that it can be restored back, if required. Optionally, if the destroy parameter has been set to true, it destroys the work item permanently. WARNING: If the destroy parameter is set to true, work items deleted by this command will NOT go to recycle-bin and there is no way to restore/recover them after deletion. It is recommended NOT to use this parameter. If you do, please use this parameter with extreme caution. -func (client *ClientImpl) DeleteWorkItem(ctx context.Context, args DeleteWorkItemArgs) (*WorkItemDelete, error) { - routeValues := make(map[string]string) - if args.Project != nil && *args.Project != "" { - routeValues["project"] = *args.Project - } - if args.Id == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.Id"} - } - routeValues["id"] = strconv.Itoa(*args.Id) - - queryParams := url.Values{} - if args.Destroy != nil { - queryParams.Add("destroy", strconv.FormatBool(*args.Destroy)) - } - locationId, _ := uuid.Parse("72c7ddf8-2cdc-4f60-90cd-ab71c14a399b") - resp, err := client.Client.Send(ctx, http.MethodDelete, locationId, "5.1", routeValues, queryParams, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue WorkItemDelete - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the DeleteWorkItem function -type DeleteWorkItemArgs struct { - // (required) ID of the work item to be deleted - Id *int - // (optional) Project ID or project name - Project *string - // (optional) Optional parameter, if set to true, the work item is deleted permanently. Please note: the destroy action is PERMANENT and cannot be undone. - Destroy *bool -} - -// Destroys the specified work item permanently from the Recycle Bin. This action can not be undone. -func (client *ClientImpl) DestroyWorkItem(ctx context.Context, args DestroyWorkItemArgs) error { - routeValues := make(map[string]string) - if args.Project != nil && *args.Project != "" { - routeValues["project"] = *args.Project - } - if args.Id == nil { - return &azuredevops.ArgumentNilError{ArgumentName: "args.Id"} - } - routeValues["id"] = strconv.Itoa(*args.Id) - - locationId, _ := uuid.Parse("b70d8d39-926c-465e-b927-b1bf0e5ca0e0") - _, err := client.Client.Send(ctx, http.MethodDelete, locationId, "5.1", routeValues, nil, nil, "", "application/json", nil) - if err != nil { - return err - } - - return nil -} - -// Arguments for the DestroyWorkItem function -type DestroyWorkItemArgs struct { - // (required) ID of the work item to be destroyed permanently - Id *int - // (optional) Project ID or project name - Project *string -} - -// Downloads an attachment. -func (client *ClientImpl) GetAttachmentContent(ctx context.Context, args GetAttachmentContentArgs) (io.ReadCloser, error) { - routeValues := make(map[string]string) - if args.Project != nil && *args.Project != "" { - routeValues["project"] = *args.Project - } - if args.Id == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.Id"} - } - routeValues["id"] = (*args.Id).String() - - queryParams := url.Values{} - if args.FileName != nil { - queryParams.Add("fileName", *args.FileName) - } - if args.Download != nil { - queryParams.Add("download", strconv.FormatBool(*args.Download)) - } - locationId, _ := uuid.Parse("e07b5fa4-1499-494d-a496-64b860fd64ff") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1", routeValues, queryParams, nil, "", "application/octet-stream", nil) - if err != nil { - return nil, err - } - - return resp.Body, err -} - -// Arguments for the GetAttachmentContent function -type GetAttachmentContentArgs struct { - // (required) Attachment ID - Id *uuid.UUID - // (optional) Project ID or project name - Project *string - // (optional) Name of the file - FileName *string - // (optional) If set to true always download attachment - Download *bool -} - -// Downloads an attachment. -func (client *ClientImpl) GetAttachmentZip(ctx context.Context, args GetAttachmentZipArgs) (io.ReadCloser, error) { - routeValues := make(map[string]string) - if args.Project != nil && *args.Project != "" { - routeValues["project"] = *args.Project - } - if args.Id == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.Id"} - } - routeValues["id"] = (*args.Id).String() - - queryParams := url.Values{} - if args.FileName != nil { - queryParams.Add("fileName", *args.FileName) - } - if args.Download != nil { - queryParams.Add("download", strconv.FormatBool(*args.Download)) - } - locationId, _ := uuid.Parse("e07b5fa4-1499-494d-a496-64b860fd64ff") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1", routeValues, queryParams, nil, "", "application/zip", nil) - if err != nil { - return nil, err - } - - return resp.Body, err -} - -// Arguments for the GetAttachmentZip function -type GetAttachmentZipArgs struct { - // (required) Attachment ID - Id *uuid.UUID - // (optional) Project ID or project name - Project *string - // (optional) Name of the file - FileName *string - // (optional) If set to true always download attachment - Download *bool -} - -// Gets the classification node for a given node path. -func (client *ClientImpl) GetClassificationNode(ctx context.Context, args GetClassificationNodeArgs) (*WorkItemClassificationNode, error) { - routeValues := make(map[string]string) - if args.Project == nil || *args.Project == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Project"} - } - routeValues["project"] = *args.Project - if args.StructureGroup == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.StructureGroup"} - } - routeValues["structureGroup"] = string(*args.StructureGroup) - if args.Path != nil && *args.Path != "" { - routeValues["path"] = *args.Path - } - - queryParams := url.Values{} - if args.Depth != nil { - queryParams.Add("$depth", strconv.Itoa(*args.Depth)) - } - locationId, _ := uuid.Parse("5a172953-1b41-49d3-840a-33f79c3ce89f") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1", routeValues, queryParams, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue WorkItemClassificationNode - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetClassificationNode function -type GetClassificationNodeArgs struct { - // (required) Project ID or project name - Project *string - // (required) Structure group of the classification node, area or iteration. - StructureGroup *TreeStructureGroup - // (optional) Path of the classification node. - Path *string - // (optional) Depth of children to fetch. - Depth *int -} - -// Gets root classification nodes or list of classification nodes for a given list of nodes ids, for a given project. In case ids parameter is supplied you will get list of classification nodes for those ids. Otherwise you will get root classification nodes for this project. -func (client *ClientImpl) GetClassificationNodes(ctx context.Context, args GetClassificationNodesArgs) (*[]WorkItemClassificationNode, error) { - routeValues := make(map[string]string) - if args.Project == nil || *args.Project == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Project"} - } - routeValues["project"] = *args.Project - - queryParams := url.Values{} - if args.Ids == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "ids"} - } - var stringList []string - for _, item := range *args.Ids { - stringList = append(stringList, strconv.Itoa(item)) - } - listAsString := strings.Join((stringList)[:], ",") - queryParams.Add("ids", listAsString) - if args.Depth != nil { - queryParams.Add("$depth", strconv.Itoa(*args.Depth)) - } - if args.ErrorPolicy != nil { - queryParams.Add("errorPolicy", string(*args.ErrorPolicy)) - } - locationId, _ := uuid.Parse("a70579d1-f53a-48ee-a5be-7be8659023b9") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1", routeValues, queryParams, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue []WorkItemClassificationNode - err = client.Client.UnmarshalCollectionBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetClassificationNodes function -type GetClassificationNodesArgs struct { - // (required) Project ID or project name - Project *string - // (required) Comma separated integer classification nodes ids. It's not required, if you want root nodes. - Ids *[]int - // (optional) Depth of children to fetch. - Depth *int - // (optional) Flag to handle errors in getting some nodes. Possible options are Fail and Omit. - ErrorPolicy *ClassificationNodesErrorPolicy -} - -// [Preview API] Returns a work item comment. -func (client *ClientImpl) GetComment(ctx context.Context, args GetCommentArgs) (*Comment, error) { - routeValues := make(map[string]string) - if args.Project == nil || *args.Project == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Project"} - } - routeValues["project"] = *args.Project - if args.WorkItemId == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.WorkItemId"} - } - routeValues["workItemId"] = strconv.Itoa(*args.WorkItemId) - if args.CommentId == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.CommentId"} - } - routeValues["commentId"] = strconv.Itoa(*args.CommentId) - - queryParams := url.Values{} - if args.IncludeDeleted != nil { - queryParams.Add("includeDeleted", strconv.FormatBool(*args.IncludeDeleted)) - } - if args.Expand != nil { - queryParams.Add("$expand", string(*args.Expand)) - } - locationId, _ := uuid.Parse("608aac0a-32e1-4493-a863-b9cf4566d257") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1-preview.3", routeValues, queryParams, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue Comment - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetComment function -type GetCommentArgs struct { - // (required) Project ID or project name - Project *string - // (required) Id of a work item to get the comment. - WorkItemId *int - // (required) Id of the comment to return. - CommentId *int - // (optional) Specify if the deleted comment should be retrieved. - IncludeDeleted *bool - // (optional) Specifies the additional data retrieval options for work item comments. - Expand *CommentExpandOptions -} - -// [Preview API] Gets reactions of a comment. -func (client *ClientImpl) GetCommentReactions(ctx context.Context, args GetCommentReactionsArgs) (*[]CommentReaction, error) { - routeValues := make(map[string]string) - if args.Project == nil || *args.Project == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Project"} - } - routeValues["project"] = *args.Project - if args.WorkItemId == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.WorkItemId"} - } - routeValues["workItemId"] = strconv.Itoa(*args.WorkItemId) - if args.CommentId == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.CommentId"} - } - routeValues["commentId"] = strconv.Itoa(*args.CommentId) - - locationId, _ := uuid.Parse("f6cb3f27-1028-4851-af96-887e570dc21f") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1-preview.1", routeValues, nil, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue []CommentReaction - err = client.Client.UnmarshalCollectionBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetCommentReactions function -type GetCommentReactionsArgs struct { - // (required) Project ID or project name - Project *string - // (required) WorkItem ID - WorkItemId *int - // (required) Comment ID - CommentId *int -} - -// [Preview API] Returns a list of work item comments, pageable. -func (client *ClientImpl) GetComments(ctx context.Context, args GetCommentsArgs) (*CommentList, error) { - routeValues := make(map[string]string) - if args.Project == nil || *args.Project == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Project"} - } - routeValues["project"] = *args.Project - if args.WorkItemId == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.WorkItemId"} - } - routeValues["workItemId"] = strconv.Itoa(*args.WorkItemId) - - queryParams := url.Values{} - if args.Top != nil { - queryParams.Add("$top", strconv.Itoa(*args.Top)) - } - if args.ContinuationToken != nil { - queryParams.Add("continuationToken", *args.ContinuationToken) - } - if args.IncludeDeleted != nil { - queryParams.Add("includeDeleted", strconv.FormatBool(*args.IncludeDeleted)) - } - if args.Expand != nil { - queryParams.Add("$expand", string(*args.Expand)) - } - if args.Order != nil { - queryParams.Add("order", string(*args.Order)) - } - locationId, _ := uuid.Parse("608aac0a-32e1-4493-a863-b9cf4566d257") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1-preview.3", routeValues, queryParams, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue CommentList - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetComments function -type GetCommentsArgs struct { - // (required) Project ID or project name - Project *string - // (required) Id of a work item to get comments for. - WorkItemId *int - // (optional) Max number of comments to return. - Top *int - // (optional) Used to query for the next page of comments. - ContinuationToken *string - // (optional) Specify if the deleted comments should be retrieved. - IncludeDeleted *bool - // (optional) Specifies the additional data retrieval options for work item comments. - Expand *CommentExpandOptions - // (optional) Order in which the comments should be returned. - Order *CommentSortOrder -} - -// [Preview API] Returns a list of work item comments by ids. -func (client *ClientImpl) GetCommentsBatch(ctx context.Context, args GetCommentsBatchArgs) (*CommentList, error) { - routeValues := make(map[string]string) - if args.Project == nil || *args.Project == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Project"} - } - routeValues["project"] = *args.Project - if args.WorkItemId == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.WorkItemId"} - } - routeValues["workItemId"] = strconv.Itoa(*args.WorkItemId) - - queryParams := url.Values{} - if args.Ids == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "ids"} - } - var stringList []string - for _, item := range *args.Ids { - stringList = append(stringList, strconv.Itoa(item)) - } - listAsString := strings.Join((stringList)[:], ",") - queryParams.Add("ids", listAsString) - if args.IncludeDeleted != nil { - queryParams.Add("includeDeleted", strconv.FormatBool(*args.IncludeDeleted)) - } - if args.Expand != nil { - queryParams.Add("$expand", string(*args.Expand)) - } - locationId, _ := uuid.Parse("608aac0a-32e1-4493-a863-b9cf4566d257") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1-preview.3", routeValues, queryParams, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue CommentList - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetCommentsBatch function -type GetCommentsBatchArgs struct { - // (required) Project ID or project name - Project *string - // (required) Id of a work item to get comments for. - WorkItemId *int - // (required) Comma-separated list of comment ids to return. - Ids *[]int - // (optional) Specify if the deleted comments should be retrieved. - IncludeDeleted *bool - // (optional) Specifies the additional data retrieval options for work item comments. - Expand *CommentExpandOptions -} - -// [Preview API] -func (client *ClientImpl) GetCommentVersion(ctx context.Context, args GetCommentVersionArgs) (*CommentVersion, error) { - routeValues := make(map[string]string) - if args.Project == nil || *args.Project == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Project"} - } - routeValues["project"] = *args.Project - if args.WorkItemId == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.WorkItemId"} - } - routeValues["workItemId"] = strconv.Itoa(*args.WorkItemId) - if args.CommentId == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.CommentId"} - } - routeValues["commentId"] = strconv.Itoa(*args.CommentId) - if args.Version == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.Version"} - } - routeValues["version"] = strconv.Itoa(*args.Version) - - locationId, _ := uuid.Parse("49e03b34-3be0-42e3-8a5d-e8dfb88ac954") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1-preview.1", routeValues, nil, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue CommentVersion - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetCommentVersion function -type GetCommentVersionArgs struct { - // (required) Project ID or project name - Project *string - // (required) - WorkItemId *int - // (required) - CommentId *int - // (required) - Version *int -} - -// [Preview API] -func (client *ClientImpl) GetCommentVersions(ctx context.Context, args GetCommentVersionsArgs) (*[]CommentVersion, error) { - routeValues := make(map[string]string) - if args.Project == nil || *args.Project == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Project"} - } - routeValues["project"] = *args.Project - if args.WorkItemId == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.WorkItemId"} - } - routeValues["workItemId"] = strconv.Itoa(*args.WorkItemId) - if args.CommentId == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.CommentId"} - } - routeValues["commentId"] = strconv.Itoa(*args.CommentId) - - locationId, _ := uuid.Parse("49e03b34-3be0-42e3-8a5d-e8dfb88ac954") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1-preview.1", routeValues, nil, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue []CommentVersion - err = client.Client.UnmarshalCollectionBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetCommentVersions function -type GetCommentVersionsArgs struct { - // (required) Project ID or project name - Project *string - // (required) - WorkItemId *int - // (required) - CommentId *int -} - -// Gets a deleted work item from Recycle Bin. -func (client *ClientImpl) GetDeletedWorkItem(ctx context.Context, args GetDeletedWorkItemArgs) (*WorkItemDelete, error) { - routeValues := make(map[string]string) - if args.Project != nil && *args.Project != "" { - routeValues["project"] = *args.Project - } - if args.Id == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.Id"} - } - routeValues["id"] = strconv.Itoa(*args.Id) - - locationId, _ := uuid.Parse("b70d8d39-926c-465e-b927-b1bf0e5ca0e0") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1", routeValues, nil, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue WorkItemDelete - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetDeletedWorkItem function -type GetDeletedWorkItemArgs struct { - // (required) ID of the work item to be returned - Id *int - // (optional) Project ID or project name - Project *string -} - -// Gets the work items from the recycle bin, whose IDs have been specified in the parameters -func (client *ClientImpl) GetDeletedWorkItems(ctx context.Context, args GetDeletedWorkItemsArgs) (*[]WorkItemDeleteReference, error) { - routeValues := make(map[string]string) - if args.Project != nil && *args.Project != "" { - routeValues["project"] = *args.Project - } - - queryParams := url.Values{} - if args.Ids == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "ids"} - } - var stringList []string - for _, item := range *args.Ids { - stringList = append(stringList, strconv.Itoa(item)) - } - listAsString := strings.Join((stringList)[:], ",") - queryParams.Add("ids", listAsString) - locationId, _ := uuid.Parse("b70d8d39-926c-465e-b927-b1bf0e5ca0e0") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1", routeValues, queryParams, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue []WorkItemDeleteReference - err = client.Client.UnmarshalCollectionBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetDeletedWorkItems function -type GetDeletedWorkItemsArgs struct { - // (required) Comma separated list of IDs of the deleted work items to be returned - Ids *[]int - // (optional) Project ID or project name - Project *string -} - -// Gets a list of the IDs and the URLs of the deleted the work items in the Recycle Bin. -func (client *ClientImpl) GetDeletedWorkItemShallowReferences(ctx context.Context, args GetDeletedWorkItemShallowReferencesArgs) (*[]WorkItemDeleteShallowReference, error) { - routeValues := make(map[string]string) - if args.Project != nil && *args.Project != "" { - routeValues["project"] = *args.Project - } - - locationId, _ := uuid.Parse("b70d8d39-926c-465e-b927-b1bf0e5ca0e0") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1", routeValues, nil, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue []WorkItemDeleteShallowReference - err = client.Client.UnmarshalCollectionBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetDeletedWorkItemShallowReferences function -type GetDeletedWorkItemShallowReferencesArgs struct { - // (optional) Project ID or project name - Project *string -} - -// [Preview API] Get users who reacted on the comment. -func (client *ClientImpl) GetEngagedUsers(ctx context.Context, args GetEngagedUsersArgs) (*[]webapi.IdentityRef, error) { - routeValues := make(map[string]string) - if args.Project == nil || *args.Project == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Project"} - } - routeValues["project"] = *args.Project - if args.WorkItemId == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.WorkItemId"} - } - routeValues["workItemId"] = strconv.Itoa(*args.WorkItemId) - if args.CommentId == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.CommentId"} - } - routeValues["commentId"] = strconv.Itoa(*args.CommentId) - if args.ReactionType == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.ReactionType"} - } - routeValues["reactionType"] = string(*args.ReactionType) - - queryParams := url.Values{} - if args.Top != nil { - queryParams.Add("$top", strconv.Itoa(*args.Top)) - } - if args.Skip != nil { - queryParams.Add("$skip", strconv.Itoa(*args.Skip)) - } - locationId, _ := uuid.Parse("e33ca5e0-2349-4285-af3d-d72d86781c35") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1-preview.1", routeValues, queryParams, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue []webapi.IdentityRef - err = client.Client.UnmarshalCollectionBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetEngagedUsers function -type GetEngagedUsersArgs struct { - // (required) Project ID or project name - Project *string - // (required) WorkItem ID. - WorkItemId *int - // (required) Comment ID. - CommentId *int - // (required) Type of the reaction. - ReactionType *CommentReactionType - // (optional) - Top *int - // (optional) - Skip *int -} - -// Gets information on a specific field. -func (client *ClientImpl) GetField(ctx context.Context, args GetFieldArgs) (*WorkItemField, error) { - routeValues := make(map[string]string) - if args.Project != nil && *args.Project != "" { - routeValues["project"] = *args.Project - } - if args.FieldNameOrRefName == nil || *args.FieldNameOrRefName == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.FieldNameOrRefName"} - } - routeValues["fieldNameOrRefName"] = *args.FieldNameOrRefName - - locationId, _ := uuid.Parse("b51fd764-e5c2-4b9b-aaf7-3395cf4bdd94") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1", routeValues, nil, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue WorkItemField - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetField function -type GetFieldArgs struct { - // (required) Field simple name or reference name - FieldNameOrRefName *string - // (optional) Project ID or project name - Project *string -} - -// Returns information for all fields. -func (client *ClientImpl) GetFields(ctx context.Context, args GetFieldsArgs) (*[]WorkItemField, error) { - routeValues := make(map[string]string) - if args.Project != nil && *args.Project != "" { - routeValues["project"] = *args.Project - } - - queryParams := url.Values{} - if args.Expand != nil { - queryParams.Add("$expand", string(*args.Expand)) - } - locationId, _ := uuid.Parse("b51fd764-e5c2-4b9b-aaf7-3395cf4bdd94") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1", routeValues, queryParams, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue []WorkItemField - err = client.Client.UnmarshalCollectionBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetFields function -type GetFieldsArgs struct { - // (optional) Project ID or project name - Project *string - // (optional) Use ExtensionFields to include extension fields, otherwise exclude them. Unless the feature flag for this parameter is enabled, extension fields are always included. - Expand *GetFieldsExpand -} - -// Gets the root queries and their children -func (client *ClientImpl) GetQueries(ctx context.Context, args GetQueriesArgs) (*[]QueryHierarchyItem, error) { - routeValues := make(map[string]string) - if args.Project == nil || *args.Project == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Project"} - } - routeValues["project"] = *args.Project - - queryParams := url.Values{} - if args.Expand != nil { - queryParams.Add("$expand", string(*args.Expand)) - } - if args.Depth != nil { - queryParams.Add("$depth", strconv.Itoa(*args.Depth)) - } - if args.IncludeDeleted != nil { - queryParams.Add("$includeDeleted", strconv.FormatBool(*args.IncludeDeleted)) - } - locationId, _ := uuid.Parse("a67d190c-c41f-424b-814d-0e906f659301") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1", routeValues, queryParams, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue []QueryHierarchyItem - err = client.Client.UnmarshalCollectionBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetQueries function -type GetQueriesArgs struct { - // (required) Project ID or project name - Project *string - // (optional) Include the query string (wiql), clauses, query result columns, and sort options in the results. - Expand *QueryExpand - // (optional) In the folder of queries, return child queries and folders to this depth. - Depth *int - // (optional) Include deleted queries and folders - IncludeDeleted *bool -} - -// Gets a list of queries by ids (Maximum 1000) -func (client *ClientImpl) GetQueriesBatch(ctx context.Context, args GetQueriesBatchArgs) (*[]QueryHierarchyItem, error) { - if args.QueryGetRequest == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.QueryGetRequest"} - } - routeValues := make(map[string]string) - if args.Project == nil || *args.Project == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Project"} - } - routeValues["project"] = *args.Project - - body, marshalErr := json.Marshal(*args.QueryGetRequest) - if marshalErr != nil { - return nil, marshalErr - } - locationId, _ := uuid.Parse("549816f9-09b0-4e75-9e81-01fbfcd07426") - resp, err := client.Client.Send(ctx, http.MethodPost, locationId, "5.1", routeValues, nil, bytes.NewReader(body), "application/json", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue []QueryHierarchyItem - err = client.Client.UnmarshalCollectionBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetQueriesBatch function -type GetQueriesBatchArgs struct { - // (required) - QueryGetRequest *QueryBatchGetRequest - // (required) Project ID or project name - Project *string -} - -// Retrieves an individual query and its children -func (client *ClientImpl) GetQuery(ctx context.Context, args GetQueryArgs) (*QueryHierarchyItem, error) { - routeValues := make(map[string]string) - if args.Project == nil || *args.Project == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Project"} - } - routeValues["project"] = *args.Project - if args.Query == nil || *args.Query == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Query"} - } - routeValues["query"] = *args.Query - - queryParams := url.Values{} - if args.Expand != nil { - queryParams.Add("$expand", string(*args.Expand)) - } - if args.Depth != nil { - queryParams.Add("$depth", strconv.Itoa(*args.Depth)) - } - if args.IncludeDeleted != nil { - queryParams.Add("$includeDeleted", strconv.FormatBool(*args.IncludeDeleted)) - } - locationId, _ := uuid.Parse("a67d190c-c41f-424b-814d-0e906f659301") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1", routeValues, queryParams, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue QueryHierarchyItem - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetQuery function -type GetQueryArgs struct { - // (required) Project ID or project name - Project *string - // (required) ID or path of the query. - Query *string - // (optional) Include the query string (wiql), clauses, query result columns, and sort options in the results. - Expand *QueryExpand - // (optional) In the folder of queries, return child queries and folders to this depth. - Depth *int - // (optional) Include deleted queries and folders - IncludeDeleted *bool -} - -// Gets the results of the query given the query ID. -func (client *ClientImpl) GetQueryResultCount(ctx context.Context, args GetQueryResultCountArgs) (*int, error) { - routeValues := make(map[string]string) - if args.Project != nil && *args.Project != "" { - routeValues["project"] = *args.Project - } - if args.Team != nil && *args.Team != "" { - routeValues["team"] = *args.Team - } - if args.Id == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.Id"} - } - routeValues["id"] = (*args.Id).String() - - queryParams := url.Values{} - if args.TimePrecision != nil { - queryParams.Add("timePrecision", strconv.FormatBool(*args.TimePrecision)) - } - if args.Top != nil { - queryParams.Add("$top", strconv.Itoa(*args.Top)) - } - locationId, _ := uuid.Parse("a02355f5-5f8a-4671-8e32-369d23aac83d") - resp, err := client.Client.Send(ctx, http.MethodHead, locationId, "5.1", routeValues, queryParams, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue int - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetQueryResultCount function -type GetQueryResultCountArgs struct { - // (required) The query ID. - Id *uuid.UUID - // (optional) Project ID or project name - Project *string - // (optional) Team ID or team name - Team *string - // (optional) Whether or not to use time precision. - TimePrecision *bool - // (optional) The max number of results to return. - Top *int -} - -// [Preview API] Gets recent work item activities -func (client *ClientImpl) GetRecentActivityData(ctx context.Context, args GetRecentActivityDataArgs) (*[]AccountRecentActivityWorkItemModel2, error) { - locationId, _ := uuid.Parse("1bc988f4-c15f-4072-ad35-497c87e3a909") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1-preview.2", nil, nil, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue []AccountRecentActivityWorkItemModel2 - err = client.Client.UnmarshalCollectionBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetRecentActivityData function -type GetRecentActivityDataArgs struct { -} - -// Gets the work item relation type definition. -func (client *ClientImpl) GetRelationType(ctx context.Context, args GetRelationTypeArgs) (*WorkItemRelationType, error) { - routeValues := make(map[string]string) - if args.Relation == nil || *args.Relation == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Relation"} - } - routeValues["relation"] = *args.Relation - - locationId, _ := uuid.Parse("f5d33bc9-5b49-4a3c-a9bd-f3cd46dd2165") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1", routeValues, nil, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue WorkItemRelationType - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetRelationType function -type GetRelationTypeArgs struct { - // (required) The relation name - Relation *string -} - -// Gets the work item relation types. -func (client *ClientImpl) GetRelationTypes(ctx context.Context, args GetRelationTypesArgs) (*[]WorkItemRelationType, error) { - locationId, _ := uuid.Parse("f5d33bc9-5b49-4a3c-a9bd-f3cd46dd2165") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1", nil, nil, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue []WorkItemRelationType - err = client.Client.UnmarshalCollectionBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetRelationTypes function -type GetRelationTypesArgs struct { -} - -// Get a batch of work item links -func (client *ClientImpl) GetReportingLinksByLinkType(ctx context.Context, args GetReportingLinksByLinkTypeArgs) (*ReportingWorkItemLinksBatch, error) { - routeValues := make(map[string]string) - if args.Project != nil && *args.Project != "" { - routeValues["project"] = *args.Project - } - - queryParams := url.Values{} - if args.LinkTypes != nil { - listAsString := strings.Join((*args.LinkTypes)[:], ",") - queryParams.Add("linkTypes", listAsString) - } - if args.Types != nil { - listAsString := strings.Join((*args.Types)[:], ",") - queryParams.Add("types", listAsString) - } - if args.ContinuationToken != nil { - queryParams.Add("continuationToken", *args.ContinuationToken) - } - if args.StartDateTime != nil { - queryParams.Add("startDateTime", (*args.StartDateTime).String()) - } - locationId, _ := uuid.Parse("b5b5b6d0-0308-40a1-b3f4-b9bb3c66878f") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1", routeValues, queryParams, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue ReportingWorkItemLinksBatch - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetReportingLinksByLinkType function -type GetReportingLinksByLinkTypeArgs struct { - // (optional) Project ID or project name - Project *string - // (optional) A list of types to filter the results to specific link types. Omit this parameter to get work item links of all link types. - LinkTypes *[]string - // (optional) A list of types to filter the results to specific work item types. Omit this parameter to get work item links of all work item types. - Types *[]string - // (optional) Specifies the continuationToken to start the batch from. Omit this parameter to get the first batch of links. - ContinuationToken *string - // (optional) Date/time to use as a starting point for link changes. Only link changes that occurred after that date/time will be returned. Cannot be used in conjunction with 'watermark' parameter. - StartDateTime *azuredevops.Time -} - -// Returns a fully hydrated work item for the requested revision -func (client *ClientImpl) GetRevision(ctx context.Context, args GetRevisionArgs) (*WorkItem, error) { - routeValues := make(map[string]string) - if args.Project != nil && *args.Project != "" { - routeValues["project"] = *args.Project - } - if args.Id == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.Id"} - } - routeValues["id"] = strconv.Itoa(*args.Id) - if args.RevisionNumber == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.RevisionNumber"} - } - routeValues["revisionNumber"] = strconv.Itoa(*args.RevisionNumber) - - queryParams := url.Values{} - if args.Expand != nil { - queryParams.Add("$expand", string(*args.Expand)) - } - locationId, _ := uuid.Parse("a00c85a5-80fa-4565-99c3-bcd2181434bb") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1", routeValues, queryParams, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue WorkItem - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetRevision function -type GetRevisionArgs struct { - // (required) - Id *int - // (required) - RevisionNumber *int - // (optional) Project ID or project name - Project *string - // (optional) - Expand *WorkItemExpand -} - -// Returns the list of fully hydrated work item revisions, paged. -func (client *ClientImpl) GetRevisions(ctx context.Context, args GetRevisionsArgs) (*[]WorkItem, error) { - routeValues := make(map[string]string) - if args.Project != nil && *args.Project != "" { - routeValues["project"] = *args.Project - } - if args.Id == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.Id"} - } - routeValues["id"] = strconv.Itoa(*args.Id) - - queryParams := url.Values{} - if args.Top != nil { - queryParams.Add("$top", strconv.Itoa(*args.Top)) - } - if args.Skip != nil { - queryParams.Add("$skip", strconv.Itoa(*args.Skip)) - } - if args.Expand != nil { - queryParams.Add("$expand", string(*args.Expand)) - } - locationId, _ := uuid.Parse("a00c85a5-80fa-4565-99c3-bcd2181434bb") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1", routeValues, queryParams, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue []WorkItem - err = client.Client.UnmarshalCollectionBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetRevisions function -type GetRevisionsArgs struct { - // (required) - Id *int - // (optional) Project ID or project name - Project *string - // (optional) - Top *int - // (optional) - Skip *int - // (optional) - Expand *WorkItemExpand -} - -// Gets root classification nodes under the project. -func (client *ClientImpl) GetRootNodes(ctx context.Context, args GetRootNodesArgs) (*[]WorkItemClassificationNode, error) { - routeValues := make(map[string]string) - if args.Project == nil || *args.Project == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Project"} - } - routeValues["project"] = *args.Project - - queryParams := url.Values{} - if args.Depth != nil { - queryParams.Add("$depth", strconv.Itoa(*args.Depth)) - } - locationId, _ := uuid.Parse("a70579d1-f53a-48ee-a5be-7be8659023b9") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1", routeValues, queryParams, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue []WorkItemClassificationNode - err = client.Client.UnmarshalCollectionBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetRootNodes function -type GetRootNodesArgs struct { - // (required) Project ID or project name - Project *string - // (optional) Depth of children to fetch. - Depth *int -} - -// [Preview API] Gets the template with specified id -func (client *ClientImpl) GetTemplate(ctx context.Context, args GetTemplateArgs) (*WorkItemTemplate, error) { - routeValues := make(map[string]string) - if args.Project == nil || *args.Project == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Project"} - } - routeValues["project"] = *args.Project - if args.Team == nil || *args.Team == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Team"} - } - routeValues["team"] = *args.Team - if args.TemplateId == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.TemplateId"} - } - routeValues["templateId"] = (*args.TemplateId).String() - - locationId, _ := uuid.Parse("fb10264a-8836-48a0-8033-1b0ccd2748d5") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1-preview.1", routeValues, nil, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue WorkItemTemplate - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetTemplate function -type GetTemplateArgs struct { - // (required) Project ID or project name - Project *string - // (required) Team ID or team name - Team *string - // (required) Template Id - TemplateId *uuid.UUID -} - -// [Preview API] Gets template -func (client *ClientImpl) GetTemplates(ctx context.Context, args GetTemplatesArgs) (*[]WorkItemTemplateReference, error) { - routeValues := make(map[string]string) - if args.Project == nil || *args.Project == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Project"} - } - routeValues["project"] = *args.Project - if args.Team == nil || *args.Team == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Team"} - } - routeValues["team"] = *args.Team - - queryParams := url.Values{} - if args.Workitemtypename != nil { - queryParams.Add("workitemtypename", *args.Workitemtypename) - } - locationId, _ := uuid.Parse("6a90345f-a676-4969-afce-8e163e1d5642") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1-preview.1", routeValues, queryParams, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue []WorkItemTemplateReference - err = client.Client.UnmarshalCollectionBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetTemplates function -type GetTemplatesArgs struct { - // (required) Project ID or project name - Project *string - // (required) Team ID or team name - Team *string - // (optional) Optional, When specified returns templates for given Work item type. - Workitemtypename *string -} - -// Returns a single update for a work item -func (client *ClientImpl) GetUpdate(ctx context.Context, args GetUpdateArgs) (*WorkItemUpdate, error) { - routeValues := make(map[string]string) - if args.Project != nil && *args.Project != "" { - routeValues["project"] = *args.Project - } - if args.Id == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.Id"} - } - routeValues["id"] = strconv.Itoa(*args.Id) - if args.UpdateNumber == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.UpdateNumber"} - } - routeValues["updateNumber"] = strconv.Itoa(*args.UpdateNumber) - - locationId, _ := uuid.Parse("6570bf97-d02c-4a91-8d93-3abe9895b1a9") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1", routeValues, nil, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue WorkItemUpdate - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetUpdate function -type GetUpdateArgs struct { - // (required) - Id *int - // (required) - UpdateNumber *int - // (optional) Project ID or project name - Project *string -} - -// Returns a the deltas between work item revisions -func (client *ClientImpl) GetUpdates(ctx context.Context, args GetUpdatesArgs) (*[]WorkItemUpdate, error) { - routeValues := make(map[string]string) - if args.Project != nil && *args.Project != "" { - routeValues["project"] = *args.Project - } - if args.Id == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.Id"} - } - routeValues["id"] = strconv.Itoa(*args.Id) - - queryParams := url.Values{} - if args.Top != nil { - queryParams.Add("$top", strconv.Itoa(*args.Top)) - } - if args.Skip != nil { - queryParams.Add("$skip", strconv.Itoa(*args.Skip)) - } - locationId, _ := uuid.Parse("6570bf97-d02c-4a91-8d93-3abe9895b1a9") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1", routeValues, queryParams, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue []WorkItemUpdate - err = client.Client.UnmarshalCollectionBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetUpdates function -type GetUpdatesArgs struct { - // (required) - Id *int - // (optional) Project ID or project name - Project *string - // (optional) - Top *int - // (optional) - Skip *int -} - -// [Preview API] Get the list of work item tracking outbound artifact link types. -func (client *ClientImpl) GetWorkArtifactLinkTypes(ctx context.Context, args GetWorkArtifactLinkTypesArgs) (*[]WorkArtifactLink, error) { - locationId, _ := uuid.Parse("1a31de40-e318-41cd-a6c6-881077df52e3") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1-preview.1", nil, nil, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue []WorkArtifactLink - err = client.Client.UnmarshalCollectionBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetWorkArtifactLinkTypes function -type GetWorkArtifactLinkTypesArgs struct { -} - -// Returns a single work item. -func (client *ClientImpl) GetWorkItem(ctx context.Context, args GetWorkItemArgs) (*WorkItem, error) { - routeValues := make(map[string]string) - if args.Project != nil && *args.Project != "" { - routeValues["project"] = *args.Project - } - if args.Id == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.Id"} - } - routeValues["id"] = strconv.Itoa(*args.Id) - - queryParams := url.Values{} - if args.Fields != nil { - listAsString := strings.Join((*args.Fields)[:], ",") - queryParams.Add("fields", listAsString) - } - if args.AsOf != nil { - queryParams.Add("asOf", (*args.AsOf).String()) - } - if args.Expand != nil { - queryParams.Add("$expand", string(*args.Expand)) - } - locationId, _ := uuid.Parse("72c7ddf8-2cdc-4f60-90cd-ab71c14a399b") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1", routeValues, queryParams, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue WorkItem - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetWorkItem function -type GetWorkItemArgs struct { - // (required) The work item id - Id *int - // (optional) Project ID or project name - Project *string - // (optional) Comma-separated list of requested fields - Fields *[]string - // (optional) AsOf UTC date time string - AsOf *azuredevops.Time - // (optional) The expand parameters for work item attributes. Possible options are { None, Relations, Fields, Links, All }. - Expand *WorkItemExpand -} - -// Get a work item icon given the friendly name and icon color. -func (client *ClientImpl) GetWorkItemIconJson(ctx context.Context, args GetWorkItemIconJsonArgs) (*WorkItemIcon, error) { - routeValues := make(map[string]string) - if args.Icon == nil || *args.Icon == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Icon"} - } - routeValues["icon"] = *args.Icon - - queryParams := url.Values{} - if args.Color != nil { - queryParams.Add("color", *args.Color) - } - if args.V != nil { - queryParams.Add("v", strconv.Itoa(*args.V)) - } - locationId, _ := uuid.Parse("4e1eb4a5-1970-4228-a682-ec48eb2dca30") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1", routeValues, queryParams, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue WorkItemIcon - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetWorkItemIconJson function -type GetWorkItemIconJsonArgs struct { - // (required) The name of the icon - Icon *string - // (optional) The 6-digit hex color for the icon - Color *string - // (optional) The version of the icon (used only for cache invalidation) - V *int -} - -// Get a list of all work item icons. -func (client *ClientImpl) GetWorkItemIcons(ctx context.Context, args GetWorkItemIconsArgs) (*[]WorkItemIcon, error) { - locationId, _ := uuid.Parse("4e1eb4a5-1970-4228-a682-ec48eb2dca30") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1", nil, nil, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue []WorkItemIcon - err = client.Client.UnmarshalCollectionBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetWorkItemIcons function -type GetWorkItemIconsArgs struct { -} - -// Get a work item icon given the friendly name and icon color. -func (client *ClientImpl) GetWorkItemIconSvg(ctx context.Context, args GetWorkItemIconSvgArgs) (io.ReadCloser, error) { - routeValues := make(map[string]string) - if args.Icon == nil || *args.Icon == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Icon"} - } - routeValues["icon"] = *args.Icon - - queryParams := url.Values{} - if args.Color != nil { - queryParams.Add("color", *args.Color) - } - if args.V != nil { - queryParams.Add("v", strconv.Itoa(*args.V)) - } - locationId, _ := uuid.Parse("4e1eb4a5-1970-4228-a682-ec48eb2dca30") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1", routeValues, queryParams, nil, "", "image/svg+xml", nil) - if err != nil { - return nil, err - } - - return resp.Body, err -} - -// Arguments for the GetWorkItemIconSvg function -type GetWorkItemIconSvgArgs struct { - // (required) The name of the icon - Icon *string - // (optional) The 6-digit hex color for the icon - Color *string - // (optional) The version of the icon (used only for cache invalidation) - V *int -} - -// Get a work item icon given the friendly name and icon color. -func (client *ClientImpl) GetWorkItemIconXaml(ctx context.Context, args GetWorkItemIconXamlArgs) (io.ReadCloser, error) { - routeValues := make(map[string]string) - if args.Icon == nil || *args.Icon == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Icon"} - } - routeValues["icon"] = *args.Icon - - queryParams := url.Values{} - if args.Color != nil { - queryParams.Add("color", *args.Color) - } - if args.V != nil { - queryParams.Add("v", strconv.Itoa(*args.V)) - } - locationId, _ := uuid.Parse("4e1eb4a5-1970-4228-a682-ec48eb2dca30") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1", routeValues, queryParams, nil, "", "image/xaml+xml", nil) - if err != nil { - return nil, err - } - - return resp.Body, err -} - -// Arguments for the GetWorkItemIconXaml function -type GetWorkItemIconXamlArgs struct { - // (required) The name of the icon - Icon *string - // (optional) The 6-digit hex color for the icon - Color *string - // (optional) The version of the icon (used only for cache invalidation) - V *int -} - -// [Preview API] Returns the next state on the given work item IDs. -func (client *ClientImpl) GetWorkItemNextStatesOnCheckinAction(ctx context.Context, args GetWorkItemNextStatesOnCheckinActionArgs) (*[]WorkItemNextStateOnTransition, error) { - queryParams := url.Values{} - if args.Ids == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "ids"} - } - var stringList []string - for _, item := range *args.Ids { - stringList = append(stringList, strconv.Itoa(item)) - } - listAsString := strings.Join((stringList)[:], ",") - queryParams.Add("ids", listAsString) - if args.Action != nil { - queryParams.Add("action", *args.Action) - } - locationId, _ := uuid.Parse("afae844b-e2f6-44c2-8053-17b3bb936a40") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1-preview.1", nil, queryParams, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue []WorkItemNextStateOnTransition - err = client.Client.UnmarshalCollectionBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetWorkItemNextStatesOnCheckinAction function -type GetWorkItemNextStatesOnCheckinActionArgs struct { - // (required) list of work item ids - Ids *[]int - // (optional) possible actions. Currently only supports checkin - Action *string -} - -// Returns a list of work items (Maximum 200) -func (client *ClientImpl) GetWorkItems(ctx context.Context, args GetWorkItemsArgs) (*[]WorkItem, error) { - routeValues := make(map[string]string) - if args.Project != nil && *args.Project != "" { - routeValues["project"] = *args.Project - } - - queryParams := url.Values{} - if args.Ids == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "ids"} - } - var stringList []string - for _, item := range *args.Ids { - stringList = append(stringList, strconv.Itoa(item)) - } - listAsString := strings.Join((stringList)[:], ",") - queryParams.Add("ids", listAsString) - if args.Fields != nil { - listAsString := strings.Join((*args.Fields)[:], ",") - queryParams.Add("fields", listAsString) - } - if args.AsOf != nil { - queryParams.Add("asOf", (*args.AsOf).String()) - } - if args.Expand != nil { - queryParams.Add("$expand", string(*args.Expand)) - } - if args.ErrorPolicy != nil { - queryParams.Add("errorPolicy", string(*args.ErrorPolicy)) - } - locationId, _ := uuid.Parse("72c7ddf8-2cdc-4f60-90cd-ab71c14a399b") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1", routeValues, queryParams, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue []WorkItem - err = client.Client.UnmarshalCollectionBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetWorkItems function -type GetWorkItemsArgs struct { - // (required) The comma-separated list of requested work item ids. (Maximum 200 ids allowed). - Ids *[]int - // (optional) Project ID or project name - Project *string - // (optional) Comma-separated list of requested fields - Fields *[]string - // (optional) AsOf UTC date time string - AsOf *azuredevops.Time - // (optional) The expand parameters for work item attributes. Possible options are { None, Relations, Fields, Links, All }. - Expand *WorkItemExpand - // (optional) The flag to control error policy in a bulk get work items request. Possible options are {Fail, Omit}. - ErrorPolicy *WorkItemErrorPolicy -} - -// Gets work items for a list of work item ids (Maximum 200) -func (client *ClientImpl) GetWorkItemsBatch(ctx context.Context, args GetWorkItemsBatchArgs) (*[]WorkItem, error) { - if args.WorkItemGetRequest == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.WorkItemGetRequest"} - } - routeValues := make(map[string]string) - if args.Project != nil && *args.Project != "" { - routeValues["project"] = *args.Project - } - - body, marshalErr := json.Marshal(*args.WorkItemGetRequest) - if marshalErr != nil { - return nil, marshalErr - } - locationId, _ := uuid.Parse("908509b6-4248-4475-a1cd-829139ba419f") - resp, err := client.Client.Send(ctx, http.MethodPost, locationId, "5.1", routeValues, nil, bytes.NewReader(body), "application/json", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue []WorkItem - err = client.Client.UnmarshalCollectionBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetWorkItemsBatch function -type GetWorkItemsBatchArgs struct { - // (required) - WorkItemGetRequest *WorkItemBatchGetRequest - // (optional) Project ID or project name - Project *string -} - -// Returns a single work item from a template. -func (client *ClientImpl) GetWorkItemTemplate(ctx context.Context, args GetWorkItemTemplateArgs) (*WorkItem, error) { - routeValues := make(map[string]string) - if args.Project == nil || *args.Project == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Project"} - } - routeValues["project"] = *args.Project - if args.Type == nil || *args.Type == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Type"} - } - routeValues["type"] = *args.Type - - queryParams := url.Values{} - if args.Fields != nil { - queryParams.Add("fields", *args.Fields) - } - if args.AsOf != nil { - queryParams.Add("asOf", (*args.AsOf).String()) - } - if args.Expand != nil { - queryParams.Add("$expand", string(*args.Expand)) - } - locationId, _ := uuid.Parse("62d3d110-0047-428c-ad3c-4fe872c91c74") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1", routeValues, queryParams, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue WorkItem - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetWorkItemTemplate function -type GetWorkItemTemplateArgs struct { - // (required) Project ID or project name - Project *string - // (required) The work item type name - Type *string - // (optional) Comma-separated list of requested fields - Fields *string - // (optional) AsOf UTC date time string - AsOf *azuredevops.Time - // (optional) The expand parameters for work item attributes. Possible options are { None, Relations, Fields, Links, All }. - Expand *WorkItemExpand -} - -// Returns a work item type definition. -func (client *ClientImpl) GetWorkItemType(ctx context.Context, args GetWorkItemTypeArgs) (*WorkItemType, error) { - routeValues := make(map[string]string) - if args.Project == nil || *args.Project == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Project"} - } - routeValues["project"] = *args.Project - if args.Type == nil || *args.Type == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Type"} - } - routeValues["type"] = *args.Type - - locationId, _ := uuid.Parse("7c8d7a76-4a09-43e8-b5df-bd792f4ac6aa") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1", routeValues, nil, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue WorkItemType - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetWorkItemType function -type GetWorkItemTypeArgs struct { - // (required) Project ID or project name - Project *string - // (required) Work item type name - Type *string -} - -// Get all work item type categories. -func (client *ClientImpl) GetWorkItemTypeCategories(ctx context.Context, args GetWorkItemTypeCategoriesArgs) (*[]WorkItemTypeCategory, error) { - routeValues := make(map[string]string) - if args.Project == nil || *args.Project == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Project"} - } - routeValues["project"] = *args.Project - - locationId, _ := uuid.Parse("9b9f5734-36c8-415e-ba67-f83b45c31408") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1", routeValues, nil, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue []WorkItemTypeCategory - err = client.Client.UnmarshalCollectionBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetWorkItemTypeCategories function -type GetWorkItemTypeCategoriesArgs struct { - // (required) Project ID or project name - Project *string -} - -// Get specific work item type category by name. -func (client *ClientImpl) GetWorkItemTypeCategory(ctx context.Context, args GetWorkItemTypeCategoryArgs) (*WorkItemTypeCategory, error) { - routeValues := make(map[string]string) - if args.Project == nil || *args.Project == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Project"} - } - routeValues["project"] = *args.Project - if args.Category == nil || *args.Category == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Category"} - } - routeValues["category"] = *args.Category - - locationId, _ := uuid.Parse("9b9f5734-36c8-415e-ba67-f83b45c31408") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1", routeValues, nil, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue WorkItemTypeCategory - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetWorkItemTypeCategory function -type GetWorkItemTypeCategoryArgs struct { - // (required) Project ID or project name - Project *string - // (required) The category name - Category *string -} - -// Get a list of fields for a work item type with detailed references. -func (client *ClientImpl) GetWorkItemTypeFieldsWithReferences(ctx context.Context, args GetWorkItemTypeFieldsWithReferencesArgs) (*[]WorkItemTypeFieldWithReferences, error) { - routeValues := make(map[string]string) - if args.Project == nil || *args.Project == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Project"} - } - routeValues["project"] = *args.Project - if args.Type == nil || *args.Type == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Type"} - } - routeValues["type"] = *args.Type - - queryParams := url.Values{} - if args.Expand != nil { - queryParams.Add("$expand", string(*args.Expand)) - } - locationId, _ := uuid.Parse("bd293ce5-3d25-4192-8e67-e8092e879efb") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1", routeValues, queryParams, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue []WorkItemTypeFieldWithReferences - err = client.Client.UnmarshalCollectionBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetWorkItemTypeFieldsWithReferences function -type GetWorkItemTypeFieldsWithReferencesArgs struct { - // (required) Project ID or project name - Project *string - // (required) Work item type. - Type *string - // (optional) Expand level for the API response. Properties: to include allowedvalues, default value, isRequired etc. as a part of response; None: to skip these properties. - Expand *WorkItemTypeFieldsExpandLevel -} - -// Get a field for a work item type with detailed references. -func (client *ClientImpl) GetWorkItemTypeFieldWithReferences(ctx context.Context, args GetWorkItemTypeFieldWithReferencesArgs) (*WorkItemTypeFieldWithReferences, error) { - routeValues := make(map[string]string) - if args.Project == nil || *args.Project == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Project"} - } - routeValues["project"] = *args.Project - if args.Type == nil || *args.Type == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Type"} - } - routeValues["type"] = *args.Type - if args.Field == nil || *args.Field == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Field"} - } - routeValues["field"] = *args.Field - - queryParams := url.Values{} - if args.Expand != nil { - queryParams.Add("$expand", string(*args.Expand)) - } - locationId, _ := uuid.Parse("bd293ce5-3d25-4192-8e67-e8092e879efb") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1", routeValues, queryParams, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue WorkItemTypeFieldWithReferences - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetWorkItemTypeFieldWithReferences function -type GetWorkItemTypeFieldWithReferencesArgs struct { - // (required) Project ID or project name - Project *string - // (required) Work item type. - Type *string - // (required) - Field *string - // (optional) Expand level for the API response. Properties: to include allowedvalues, default value, isRequired etc. as a part of response; None: to skip these properties. - Expand *WorkItemTypeFieldsExpandLevel -} - -// Returns the list of work item types -func (client *ClientImpl) GetWorkItemTypes(ctx context.Context, args GetWorkItemTypesArgs) (*[]WorkItemType, error) { - routeValues := make(map[string]string) - if args.Project == nil || *args.Project == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Project"} - } - routeValues["project"] = *args.Project - - locationId, _ := uuid.Parse("7c8d7a76-4a09-43e8-b5df-bd792f4ac6aa") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1", routeValues, nil, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue []WorkItemType - err = client.Client.UnmarshalCollectionBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetWorkItemTypes function -type GetWorkItemTypesArgs struct { - // (required) Project ID or project name - Project *string -} - -// [Preview API] Returns the state names and colors for a work item type. -func (client *ClientImpl) GetWorkItemTypeStates(ctx context.Context, args GetWorkItemTypeStatesArgs) (*[]WorkItemStateColor, error) { - routeValues := make(map[string]string) - if args.Project == nil || *args.Project == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Project"} - } - routeValues["project"] = *args.Project - if args.Type == nil || *args.Type == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Type"} - } - routeValues["type"] = *args.Type - - locationId, _ := uuid.Parse("7c9d7a76-4a09-43e8-b5df-bd792f4ac6aa") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1-preview.1", routeValues, nil, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue []WorkItemStateColor - err = client.Client.UnmarshalCollectionBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the GetWorkItemTypeStates function -type GetWorkItemTypeStatesArgs struct { - // (required) Project ID or project name - Project *string - // (required) The state name - Type *string -} - -// Gets the results of the query given the query ID. -func (client *ClientImpl) QueryById(ctx context.Context, args QueryByIdArgs) (*WorkItemQueryResult, error) { - routeValues := make(map[string]string) - if args.Project != nil && *args.Project != "" { - routeValues["project"] = *args.Project - } - if args.Team != nil && *args.Team != "" { - routeValues["team"] = *args.Team - } - if args.Id == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.Id"} - } - routeValues["id"] = (*args.Id).String() - - queryParams := url.Values{} - if args.TimePrecision != nil { - queryParams.Add("timePrecision", strconv.FormatBool(*args.TimePrecision)) - } - if args.Top != nil { - queryParams.Add("$top", strconv.Itoa(*args.Top)) - } - locationId, _ := uuid.Parse("a02355f5-5f8a-4671-8e32-369d23aac83d") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1", routeValues, queryParams, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue WorkItemQueryResult - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the QueryById function -type QueryByIdArgs struct { - // (required) The query ID. - Id *uuid.UUID - // (optional) Project ID or project name - Project *string - // (optional) Team ID or team name - Team *string - // (optional) Whether or not to use time precision. - TimePrecision *bool - // (optional) The max number of results to return. - Top *int -} - -// Gets the results of the query given its WIQL. -func (client *ClientImpl) QueryByWiql(ctx context.Context, args QueryByWiqlArgs) (*WorkItemQueryResult, error) { - if args.Wiql == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.Wiql"} - } - routeValues := make(map[string]string) - if args.Project != nil && *args.Project != "" { - routeValues["project"] = *args.Project - } - if args.Team != nil && *args.Team != "" { - routeValues["team"] = *args.Team - } - - queryParams := url.Values{} - if args.TimePrecision != nil { - queryParams.Add("timePrecision", strconv.FormatBool(*args.TimePrecision)) - } - if args.Top != nil { - queryParams.Add("$top", strconv.Itoa(*args.Top)) - } - body, marshalErr := json.Marshal(*args.Wiql) - if marshalErr != nil { - return nil, marshalErr - } - locationId, _ := uuid.Parse("1a9c53f7-f243-4447-b110-35ef023636e4") - resp, err := client.Client.Send(ctx, http.MethodPost, locationId, "5.1", routeValues, queryParams, bytes.NewReader(body), "application/json", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue WorkItemQueryResult - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the QueryByWiql function -type QueryByWiqlArgs struct { - // (required) The query containing the WIQL. - Wiql *Wiql - // (optional) Project ID or project name - Project *string - // (optional) Team ID or team name - Team *string - // (optional) Whether or not to use time precision. - TimePrecision *bool - // (optional) The max number of results to return. - Top *int -} - -// [Preview API] Queries work items linked to a given list of artifact URI. -func (client *ClientImpl) QueryWorkItemsForArtifactUris(ctx context.Context, args QueryWorkItemsForArtifactUrisArgs) (*ArtifactUriQueryResult, error) { - if args.ArtifactUriQuery == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.ArtifactUriQuery"} - } - routeValues := make(map[string]string) - if args.Project != nil && *args.Project != "" { - routeValues["project"] = *args.Project - } - - body, marshalErr := json.Marshal(*args.ArtifactUriQuery) - if marshalErr != nil { - return nil, marshalErr - } - locationId, _ := uuid.Parse("a9a9aa7a-8c09-44d3-ad1b-46e855c1e3d3") - resp, err := client.Client.Send(ctx, http.MethodPost, locationId, "5.1-preview.1", routeValues, nil, bytes.NewReader(body), "application/json", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue ArtifactUriQueryResult - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the QueryWorkItemsForArtifactUris function -type QueryWorkItemsForArtifactUrisArgs struct { - // (required) Defines a list of artifact URI for querying work items. - ArtifactUriQuery *ArtifactUriQuery - // (optional) Project ID or project name - Project *string -} - -// [Preview API] -func (client *ClientImpl) ReadReportingDiscussions(ctx context.Context, args ReadReportingDiscussionsArgs) (*ReportingWorkItemRevisionsBatch, error) { - routeValues := make(map[string]string) - if args.Project != nil && *args.Project != "" { - routeValues["project"] = *args.Project - } - - queryParams := url.Values{} - if args.ContinuationToken != nil { - queryParams.Add("continuationToken", *args.ContinuationToken) - } - if args.MaxPageSize != nil { - queryParams.Add("$maxPageSize", strconv.Itoa(*args.MaxPageSize)) - } - locationId, _ := uuid.Parse("4a644469-90c5-4fcc-9a9f-be0827d369ec") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1-preview.1", routeValues, queryParams, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue ReportingWorkItemRevisionsBatch - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the ReadReportingDiscussions function -type ReadReportingDiscussionsArgs struct { - // (optional) Project ID or project name - Project *string - // (optional) - ContinuationToken *string - // (optional) - MaxPageSize *int -} - -// Get a batch of work item revisions with the option of including deleted items -func (client *ClientImpl) ReadReportingRevisionsGet(ctx context.Context, args ReadReportingRevisionsGetArgs) (*ReportingWorkItemRevisionsBatch, error) { - routeValues := make(map[string]string) - if args.Project != nil && *args.Project != "" { - routeValues["project"] = *args.Project - } - - queryParams := url.Values{} - if args.Fields != nil { - listAsString := strings.Join((*args.Fields)[:], ",") - queryParams.Add("fields", listAsString) - } - if args.Types != nil { - listAsString := strings.Join((*args.Types)[:], ",") - queryParams.Add("types", listAsString) - } - if args.ContinuationToken != nil { - queryParams.Add("continuationToken", *args.ContinuationToken) - } - if args.StartDateTime != nil { - queryParams.Add("startDateTime", (*args.StartDateTime).String()) - } - if args.IncludeIdentityRef != nil { - queryParams.Add("includeIdentityRef", strconv.FormatBool(*args.IncludeIdentityRef)) - } - if args.IncludeDeleted != nil { - queryParams.Add("includeDeleted", strconv.FormatBool(*args.IncludeDeleted)) - } - if args.IncludeTagRef != nil { - queryParams.Add("includeTagRef", strconv.FormatBool(*args.IncludeTagRef)) - } - if args.IncludeLatestOnly != nil { - queryParams.Add("includeLatestOnly", strconv.FormatBool(*args.IncludeLatestOnly)) - } - if args.Expand != nil { - queryParams.Add("$expand", string(*args.Expand)) - } - if args.IncludeDiscussionChangesOnly != nil { - queryParams.Add("includeDiscussionChangesOnly", strconv.FormatBool(*args.IncludeDiscussionChangesOnly)) - } - if args.MaxPageSize != nil { - queryParams.Add("$maxPageSize", strconv.Itoa(*args.MaxPageSize)) - } - locationId, _ := uuid.Parse("f828fe59-dd87-495d-a17c-7a8d6211ca6c") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1", routeValues, queryParams, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue ReportingWorkItemRevisionsBatch - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the ReadReportingRevisionsGet function -type ReadReportingRevisionsGetArgs struct { - // (optional) Project ID or project name - Project *string - // (optional) A list of fields to return in work item revisions. Omit this parameter to get all reportable fields. - Fields *[]string - // (optional) A list of types to filter the results to specific work item types. Omit this parameter to get work item revisions of all work item types. - Types *[]string - // (optional) Specifies the watermark to start the batch from. Omit this parameter to get the first batch of revisions. - ContinuationToken *string - // (optional) Date/time to use as a starting point for revisions, all revisions will occur after this date/time. Cannot be used in conjunction with 'watermark' parameter. - StartDateTime *azuredevops.Time - // (optional) Return an identity reference instead of a string value for identity fields. - IncludeIdentityRef *bool - // (optional) Specify if the deleted item should be returned. - IncludeDeleted *bool - // (optional) Specify if the tag objects should be returned for System.Tags field. - IncludeTagRef *bool - // (optional) Return only the latest revisions of work items, skipping all historical revisions - IncludeLatestOnly *bool - // (optional) Return all the fields in work item revisions, including long text fields which are not returned by default - Expand *ReportingRevisionsExpand - // (optional) Return only the those revisions of work items, where only history field was changed - IncludeDiscussionChangesOnly *bool - // (optional) The maximum number of results to return in this batch - MaxPageSize *int -} - -// Get a batch of work item revisions. This request may be used if your list of fields is large enough that it may run the URL over the length limit. -func (client *ClientImpl) ReadReportingRevisionsPost(ctx context.Context, args ReadReportingRevisionsPostArgs) (*ReportingWorkItemRevisionsBatch, error) { - if args.Filter == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.Filter"} - } - routeValues := make(map[string]string) - if args.Project != nil && *args.Project != "" { - routeValues["project"] = *args.Project - } - - queryParams := url.Values{} - if args.ContinuationToken != nil { - queryParams.Add("continuationToken", *args.ContinuationToken) - } - if args.StartDateTime != nil { - queryParams.Add("startDateTime", (*args.StartDateTime).String()) - } - if args.Expand != nil { - queryParams.Add("$expand", string(*args.Expand)) - } - body, marshalErr := json.Marshal(*args.Filter) - if marshalErr != nil { - return nil, marshalErr - } - locationId, _ := uuid.Parse("f828fe59-dd87-495d-a17c-7a8d6211ca6c") - resp, err := client.Client.Send(ctx, http.MethodPost, locationId, "5.1", routeValues, queryParams, bytes.NewReader(body), "application/json", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue ReportingWorkItemRevisionsBatch - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the ReadReportingRevisionsPost function -type ReadReportingRevisionsPostArgs struct { - // (required) An object that contains request settings: field filter, type filter, identity format - Filter *ReportingWorkItemRevisionsFilter - // (optional) Project ID or project name - Project *string - // (optional) Specifies the watermark to start the batch from. Omit this parameter to get the first batch of revisions. - ContinuationToken *string - // (optional) Date/time to use as a starting point for revisions, all revisions will occur after this date/time. Cannot be used in conjunction with 'watermark' parameter. - StartDateTime *azuredevops.Time - // (optional) - Expand *ReportingRevisionsExpand -} - -// [Preview API] Replace template contents -func (client *ClientImpl) ReplaceTemplate(ctx context.Context, args ReplaceTemplateArgs) (*WorkItemTemplate, error) { - if args.TemplateContent == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.TemplateContent"} - } - routeValues := make(map[string]string) - if args.Project == nil || *args.Project == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Project"} - } - routeValues["project"] = *args.Project - if args.Team == nil || *args.Team == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Team"} - } - routeValues["team"] = *args.Team - if args.TemplateId == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.TemplateId"} - } - routeValues["templateId"] = (*args.TemplateId).String() - - body, marshalErr := json.Marshal(*args.TemplateContent) - if marshalErr != nil { - return nil, marshalErr - } - locationId, _ := uuid.Parse("fb10264a-8836-48a0-8033-1b0ccd2748d5") - resp, err := client.Client.Send(ctx, http.MethodPut, locationId, "5.1-preview.1", routeValues, nil, bytes.NewReader(body), "application/json", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue WorkItemTemplate - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the ReplaceTemplate function -type ReplaceTemplateArgs struct { - // (required) Template contents to replace with - TemplateContent *WorkItemTemplate - // (required) Project ID or project name - Project *string - // (required) Team ID or team name - Team *string - // (required) Template id - TemplateId *uuid.UUID -} - -// Restores the deleted work item from Recycle Bin. -func (client *ClientImpl) RestoreWorkItem(ctx context.Context, args RestoreWorkItemArgs) (*WorkItemDelete, error) { - if args.Payload == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.Payload"} - } - routeValues := make(map[string]string) - if args.Project != nil && *args.Project != "" { - routeValues["project"] = *args.Project - } - if args.Id == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.Id"} - } - routeValues["id"] = strconv.Itoa(*args.Id) - - body, marshalErr := json.Marshal(*args.Payload) - if marshalErr != nil { - return nil, marshalErr - } - locationId, _ := uuid.Parse("b70d8d39-926c-465e-b927-b1bf0e5ca0e0") - resp, err := client.Client.Send(ctx, http.MethodPatch, locationId, "5.1", routeValues, nil, bytes.NewReader(body), "application/json", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue WorkItemDelete - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the RestoreWorkItem function -type RestoreWorkItemArgs struct { - // (required) Paylod with instructions to update the IsDeleted flag to false - Payload *WorkItemDeleteUpdate - // (required) ID of the work item to be restored - Id *int - // (optional) Project ID or project name - Project *string -} - -// Searches all queries the user has access to in the current project -func (client *ClientImpl) SearchQueries(ctx context.Context, args SearchQueriesArgs) (*QueryHierarchyItemsResult, error) { - routeValues := make(map[string]string) - if args.Project == nil || *args.Project == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Project"} - } - routeValues["project"] = *args.Project - - queryParams := url.Values{} - if args.Filter == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "filter"} - } - queryParams.Add("$filter", *args.Filter) - if args.Top != nil { - queryParams.Add("$top", strconv.Itoa(*args.Top)) - } - if args.Expand != nil { - queryParams.Add("$expand", string(*args.Expand)) - } - if args.IncludeDeleted != nil { - queryParams.Add("$includeDeleted", strconv.FormatBool(*args.IncludeDeleted)) - } - locationId, _ := uuid.Parse("a67d190c-c41f-424b-814d-0e906f659301") - resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1", routeValues, queryParams, nil, "", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue QueryHierarchyItemsResult - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the SearchQueries function -type SearchQueriesArgs struct { - // (required) Project ID or project name - Project *string - // (required) The text to filter the queries with. - Filter *string - // (optional) The number of queries to return (Default is 50 and maximum is 200). - Top *int - // (optional) - Expand *QueryExpand - // (optional) Include deleted queries and folders - IncludeDeleted *bool -} - -// Update an existing classification node. -func (client *ClientImpl) UpdateClassificationNode(ctx context.Context, args UpdateClassificationNodeArgs) (*WorkItemClassificationNode, error) { - if args.PostedNode == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.PostedNode"} - } - routeValues := make(map[string]string) - if args.Project == nil || *args.Project == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Project"} - } - routeValues["project"] = *args.Project - if args.StructureGroup == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.StructureGroup"} - } - routeValues["structureGroup"] = string(*args.StructureGroup) - if args.Path != nil && *args.Path != "" { - routeValues["path"] = *args.Path - } - - body, marshalErr := json.Marshal(*args.PostedNode) - if marshalErr != nil { - return nil, marshalErr - } - locationId, _ := uuid.Parse("5a172953-1b41-49d3-840a-33f79c3ce89f") - resp, err := client.Client.Send(ctx, http.MethodPatch, locationId, "5.1", routeValues, nil, bytes.NewReader(body), "application/json", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue WorkItemClassificationNode - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the UpdateClassificationNode function -type UpdateClassificationNodeArgs struct { - // (required) Node to create or update. - PostedNode *WorkItemClassificationNode - // (required) Project ID or project name - Project *string - // (required) Structure group of the classification node, area or iteration. - StructureGroup *TreeStructureGroup - // (optional) Path of the classification node. - Path *string -} - -// [Preview API] Update a comment on a work item. -func (client *ClientImpl) UpdateComment(ctx context.Context, args UpdateCommentArgs) (*Comment, error) { - if args.Request == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.Request"} - } - routeValues := make(map[string]string) - if args.Project == nil || *args.Project == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Project"} - } - routeValues["project"] = *args.Project - if args.WorkItemId == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.WorkItemId"} - } - routeValues["workItemId"] = strconv.Itoa(*args.WorkItemId) - if args.CommentId == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.CommentId"} - } - routeValues["commentId"] = strconv.Itoa(*args.CommentId) - - body, marshalErr := json.Marshal(*args.Request) - if marshalErr != nil { - return nil, marshalErr - } - locationId, _ := uuid.Parse("608aac0a-32e1-4493-a863-b9cf4566d257") - resp, err := client.Client.Send(ctx, http.MethodPatch, locationId, "5.1-preview.3", routeValues, nil, bytes.NewReader(body), "application/json", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue Comment - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the UpdateComment function -type UpdateCommentArgs struct { - // (required) Comment update request. - Request *CommentUpdate - // (required) Project ID or project name - Project *string - // (required) Id of a work item. - WorkItemId *int - // (required) - CommentId *int -} - -// Update a query or a folder. This allows you to update, rename and move queries and folders. -func (client *ClientImpl) UpdateQuery(ctx context.Context, args UpdateQueryArgs) (*QueryHierarchyItem, error) { - if args.QueryUpdate == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.QueryUpdate"} - } - routeValues := make(map[string]string) - if args.Project == nil || *args.Project == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Project"} - } - routeValues["project"] = *args.Project - if args.Query == nil || *args.Query == "" { - return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Query"} - } - routeValues["query"] = *args.Query - - queryParams := url.Values{} - if args.UndeleteDescendants != nil { - queryParams.Add("$undeleteDescendants", strconv.FormatBool(*args.UndeleteDescendants)) - } - body, marshalErr := json.Marshal(*args.QueryUpdate) - if marshalErr != nil { - return nil, marshalErr - } - locationId, _ := uuid.Parse("a67d190c-c41f-424b-814d-0e906f659301") - resp, err := client.Client.Send(ctx, http.MethodPatch, locationId, "5.1", routeValues, queryParams, bytes.NewReader(body), "application/json", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue QueryHierarchyItem - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the UpdateQuery function -type UpdateQueryArgs struct { - // (required) The query to update. - QueryUpdate *QueryHierarchyItem - // (required) Project ID or project name - Project *string - // (required) The ID or path for the query to update. - Query *string - // (optional) Undelete the children of this folder. It is important to note that this will not bring back the permission changes that were previously applied to the descendants. - UndeleteDescendants *bool -} - -// Updates a single work item. -func (client *ClientImpl) UpdateWorkItem(ctx context.Context, args UpdateWorkItemArgs) (*WorkItem, error) { - if args.Document == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.Document"} - } - routeValues := make(map[string]string) - if args.Project != nil && *args.Project != "" { - routeValues["project"] = *args.Project - } - if args.Id == nil { - return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.Id"} - } - routeValues["id"] = strconv.Itoa(*args.Id) - - queryParams := url.Values{} - if args.ValidateOnly != nil { - queryParams.Add("validateOnly", strconv.FormatBool(*args.ValidateOnly)) - } - if args.BypassRules != nil { - queryParams.Add("bypassRules", strconv.FormatBool(*args.BypassRules)) - } - if args.SuppressNotifications != nil { - queryParams.Add("suppressNotifications", strconv.FormatBool(*args.SuppressNotifications)) - } - if args.Expand != nil { - queryParams.Add("$expand", string(*args.Expand)) - } - body, marshalErr := json.Marshal(*args.Document) - if marshalErr != nil { - return nil, marshalErr - } - locationId, _ := uuid.Parse("72c7ddf8-2cdc-4f60-90cd-ab71c14a399b") - resp, err := client.Client.Send(ctx, http.MethodPatch, locationId, "5.1", routeValues, queryParams, bytes.NewReader(body), "application/json-patch+json", "application/json", nil) - if err != nil { - return nil, err - } - - var responseValue WorkItem - err = client.Client.UnmarshalBody(resp, &responseValue) - return &responseValue, err -} - -// Arguments for the UpdateWorkItem function -type UpdateWorkItemArgs struct { - // (required) The JSON Patch document representing the update - Document *[]webapi.JsonPatchOperation - // (required) The id of the work item to update - Id *int - // (optional) Project ID or project name - Project *string - // (optional) Indicate if you only want to validate the changes without saving the work item - ValidateOnly *bool - // (optional) Do not enforce the work item type rules on this update - BypassRules *bool - // (optional) Do not fire any notifications for this change - SuppressNotifications *bool - // (optional) The expand parameters for work item attributes. Possible options are { None, Relations, Fields, Links, All }. - Expand *WorkItemExpand -} diff --git a/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/workitemtracking/models.go b/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/workitemtracking/models.go deleted file mode 100644 index e3f9db8f8..000000000 --- a/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/workitemtracking/models.go +++ /dev/null @@ -1,1512 +0,0 @@ -// -------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// -------------------------------------------------------------------------------------------- -// Generated file, DO NOT EDIT -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// -------------------------------------------------------------------------------------------- - -package workitemtracking - -import ( - "github.com/google/uuid" - "github.com/microsoft/azure-devops-go-api/azuredevops" - "github.com/microsoft/azure-devops-go-api/azuredevops/webapi" -) - -type AccountMyWorkResult struct { - // True, when length of WorkItemDetails is same as the limit - QuerySizeLimitExceeded *bool `json:"querySizeLimitExceeded,omitempty"` - // WorkItem Details - WorkItemDetails *[]AccountWorkWorkItemModel `json:"workItemDetails,omitempty"` -} - -// Represents Work Item Recent Activity -type AccountRecentActivityWorkItemModel struct { - // Date of the last Activity by the user - ActivityDate *azuredevops.Time `json:"activityDate,omitempty"` - // Type of the activity - ActivityType *WorkItemRecentActivityType `json:"activityType,omitempty"` - // Last changed date of the work item - ChangedDate *azuredevops.Time `json:"changedDate,omitempty"` - // Work Item Id - Id *int `json:"id,omitempty"` - // TeamFoundationId of the user this activity belongs to - IdentityId *uuid.UUID `json:"identityId,omitempty"` - // State of the work item - State *string `json:"state,omitempty"` - // Team project the work item belongs to - TeamProject *string `json:"teamProject,omitempty"` - // Title of the work item - Title *string `json:"title,omitempty"` - // Type of Work Item - WorkItemType *string `json:"workItemType,omitempty"` - // Assigned To - AssignedTo *string `json:"assignedTo,omitempty"` -} - -// Represents Work Item Recent Activity -type AccountRecentActivityWorkItemModel2 struct { - // Date of the last Activity by the user - ActivityDate *azuredevops.Time `json:"activityDate,omitempty"` - // Type of the activity - ActivityType *WorkItemRecentActivityType `json:"activityType,omitempty"` - // Last changed date of the work item - ChangedDate *azuredevops.Time `json:"changedDate,omitempty"` - // Work Item Id - Id *int `json:"id,omitempty"` - // TeamFoundationId of the user this activity belongs to - IdentityId *uuid.UUID `json:"identityId,omitempty"` - // State of the work item - State *string `json:"state,omitempty"` - // Team project the work item belongs to - TeamProject *string `json:"teamProject,omitempty"` - // Title of the work item - Title *string `json:"title,omitempty"` - // Type of Work Item - WorkItemType *string `json:"workItemType,omitempty"` - // Assigned To - AssignedTo *webapi.IdentityRef `json:"assignedTo,omitempty"` -} - -// Represents Work Item Recent Activity -type AccountRecentActivityWorkItemModelBase struct { - // Date of the last Activity by the user - ActivityDate *azuredevops.Time `json:"activityDate,omitempty"` - // Type of the activity - ActivityType *WorkItemRecentActivityType `json:"activityType,omitempty"` - // Last changed date of the work item - ChangedDate *azuredevops.Time `json:"changedDate,omitempty"` - // Work Item Id - Id *int `json:"id,omitempty"` - // TeamFoundationId of the user this activity belongs to - IdentityId *uuid.UUID `json:"identityId,omitempty"` - // State of the work item - State *string `json:"state,omitempty"` - // Team project the work item belongs to - TeamProject *string `json:"teamProject,omitempty"` - // Title of the work item - Title *string `json:"title,omitempty"` - // Type of Work Item - WorkItemType *string `json:"workItemType,omitempty"` -} - -// Represents Recent Mention Work Item -type AccountRecentMentionWorkItemModel struct { - // Assigned To - AssignedTo *string `json:"assignedTo,omitempty"` - // Work Item Id - Id *int `json:"id,omitempty"` - // Latest date that the user were mentioned - MentionedDateField *azuredevops.Time `json:"mentionedDateField,omitempty"` - // State of the work item - State *string `json:"state,omitempty"` - // Team project the work item belongs to - TeamProject *string `json:"teamProject,omitempty"` - // Title of the work item - Title *string `json:"title,omitempty"` - // Type of Work Item - WorkItemType *string `json:"workItemType,omitempty"` -} - -type AccountWorkWorkItemModel struct { - AssignedTo *string `json:"assignedTo,omitempty"` - ChangedDate *azuredevops.Time `json:"changedDate,omitempty"` - Id *int `json:"id,omitempty"` - State *string `json:"state,omitempty"` - TeamProject *string `json:"teamProject,omitempty"` - Title *string `json:"title,omitempty"` - WorkItemType *string `json:"workItemType,omitempty"` -} - -// Contains criteria for querying work items based on artifact URI. -type ArtifactUriQuery struct { - // List of artifact URIs to use for querying work items. - ArtifactUris *[]string `json:"artifactUris,omitempty"` -} - -// Defines result of artifact URI query on work items. Contains mapping of work item IDs to artifact URI. -type ArtifactUriQueryResult struct { - // A Dictionary that maps a list of work item references to the given list of artifact URI. - ArtifactUrisQueryResult *map[string][]WorkItemReference `json:"artifactUrisQueryResult,omitempty"` -} - -type AttachmentReference struct { - Id *uuid.UUID `json:"id,omitempty"` - Url *string `json:"url,omitempty"` -} - -// Flag to control error policy in a batch classification nodes get request. -type ClassificationNodesErrorPolicy string - -type classificationNodesErrorPolicyValuesType struct { - Fail ClassificationNodesErrorPolicy - Omit ClassificationNodesErrorPolicy -} - -var ClassificationNodesErrorPolicyValues = classificationNodesErrorPolicyValuesType{ - Fail: "fail", - Omit: "omit", -} - -// Comment on a Work Item. -type Comment struct { - Url *string `json:"url,omitempty"` - // Link references to related REST resources. - Links interface{} `json:"_links,omitempty"` - // IdentityRef of the creator of the comment. - CreatedBy *webapi.IdentityRef `json:"createdBy,omitempty"` - // The creation date of the comment. - CreatedDate *azuredevops.Time `json:"createdDate,omitempty"` - // Effective Date/time value for adding the comment. Can be optionally different from CreatedDate. - CreatedOnBehalfDate *azuredevops.Time `json:"createdOnBehalfDate,omitempty"` - // Identity on whose behalf this comment has been added. Can be optionally different from CreatedBy. - CreatedOnBehalfOf *webapi.IdentityRef `json:"createdOnBehalfOf,omitempty"` - // The id assigned to the comment. - Id *int `json:"id,omitempty"` - // Indicates if the comment has been deleted. - IsDeleted *bool `json:"isDeleted,omitempty"` - // The mentions of the comment. - Mentions *[]CommentMention `json:"mentions,omitempty"` - // IdentityRef of the user who last modified the comment. - ModifiedBy *webapi.IdentityRef `json:"modifiedBy,omitempty"` - // The last modification date of the comment. - ModifiedDate *azuredevops.Time `json:"modifiedDate,omitempty"` - // The reactions of the comment. - Reactions *[]CommentReaction `json:"reactions,omitempty"` - // The text of the comment. - Text *string `json:"text,omitempty"` - // The current version of the comment. - Version *int `json:"version,omitempty"` - // The id of the work item this comment belongs to. - WorkItemId *int `json:"workItemId,omitempty"` -} - -// Represents a request to create a work item comment. -type CommentCreate struct { - // The text of the comment. - Text *string `json:"text,omitempty"` -} - -// [Flags] Specifies the additional data retrieval options for work item comments. -type CommentExpandOptions string - -type commentExpandOptionsValuesType struct { - None CommentExpandOptions - Reactions CommentExpandOptions - Mentions CommentExpandOptions - RenderedText CommentExpandOptions - RenderedTextOnly CommentExpandOptions - All CommentExpandOptions -} - -var CommentExpandOptionsValues = commentExpandOptionsValuesType{ - None: "none", - // Include comment reactions. - Reactions: "reactions", - // Include comment mentions. - Mentions: "mentions", - // Include the rendered text (html) in addition to MD text. - RenderedText: "renderedText", - // If specified, then ONLY rendered text (html) will be returned, w/o markdown. Supposed to be used internally from data provides for optimization purposes. - RenderedTextOnly: "renderedTextOnly", - All: "all", -} - -// Represents a list of work item comments. -type CommentList struct { - Url *string `json:"url,omitempty"` - // Link references to related REST resources. - Links interface{} `json:"_links,omitempty"` - // List of comments in the current batch. - Comments *[]Comment `json:"comments,omitempty"` - // A string token that can be used to retrieving next page of comments if available. Otherwise null. - ContinuationToken *string `json:"continuationToken,omitempty"` - // The count of comments in the current batch. - Count *int `json:"count,omitempty"` - // Uri to the next page of comments if it is available. Otherwise null. - NextPage *string `json:"nextPage,omitempty"` - // Total count of comments on a work item. - TotalCount *int `json:"totalCount,omitempty"` -} - -type CommentMention struct { - Url *string `json:"url,omitempty"` - // Link references to related REST resources. - Links interface{} `json:"_links,omitempty"` - // The artifact portion of the parsed text. (i.e. the work item's id) - ArtifactId *string `json:"artifactId,omitempty"` - // The type the parser assigned to the mention. (i.e. person, work item, etc) - ArtifactType *string `json:"artifactType,omitempty"` - // The comment id of the mention. - CommentId *int `json:"commentId,omitempty"` - // The resolved target of the mention. An example of this could be a user's tfid - TargetId *string `json:"targetId,omitempty"` -} - -// Contains information about work item comment reaction for a particular reaction type. -type CommentReaction struct { - Url *string `json:"url,omitempty"` - // Link references to related REST resources. - Links interface{} `json:"_links,omitempty"` - // The id of the comment this reaction belongs to. - CommentId *int `json:"commentId,omitempty"` - // Total number of reactions for the CommentReactionType. - Count *int `json:"count,omitempty"` - // Flag to indicate if the current user has engaged on this particular EngagementType (e.g. if they liked the associated comment). - IsCurrentUserEngaged *bool `json:"isCurrentUserEngaged,omitempty"` - // Type of the reaction. - Type *CommentReactionType `json:"type,omitempty"` -} - -// Represents different reaction types for a work item comment. -type CommentReactionType string - -type commentReactionTypeValuesType struct { - Like CommentReactionType - Dislike CommentReactionType - Heart CommentReactionType - Hooray CommentReactionType - Smile CommentReactionType - Confused CommentReactionType -} - -var CommentReactionTypeValues = commentReactionTypeValuesType{ - Like: "like", - Dislike: "dislike", - Heart: "heart", - Hooray: "hooray", - Smile: "smile", - Confused: "confused", -} - -type CommentSortOrder string - -type commentSortOrderValuesType struct { - Asc CommentSortOrder - Desc CommentSortOrder -} - -var CommentSortOrderValues = commentSortOrderValuesType{ - // The results will be sorted in Ascending order. - Asc: "asc", - // The results will be sorted in Descending order. - Desc: "desc", -} - -// Represents a request to update a work item comment. -type CommentUpdate struct { - // The updated text of the comment. - Text *string `json:"text,omitempty"` -} - -// Represents a specific version of a comment on a work item. -type CommentVersion struct { - Url *string `json:"url,omitempty"` - // Link references to related REST resources. - Links interface{} `json:"_links,omitempty"` - // IdentityRef of the creator of the comment. - CreatedBy *webapi.IdentityRef `json:"createdBy,omitempty"` - // The creation date of the comment. - CreatedDate *azuredevops.Time `json:"createdDate,omitempty"` - // Effective Date/time value for adding the comment. Can be optionally different from CreatedDate. - CreatedOnBehalfDate *azuredevops.Time `json:"createdOnBehalfDate,omitempty"` - // Identity on whose behalf this comment has been added. Can be optionally different from CreatedBy. - CreatedOnBehalfOf *webapi.IdentityRef `json:"createdOnBehalfOf,omitempty"` - // The id assigned to the comment. - Id *int `json:"id,omitempty"` - // Indicates if the comment has been deleted at this version. - IsDeleted *bool `json:"isDeleted,omitempty"` - // IdentityRef of the user who modified the comment at this version. - ModifiedBy *webapi.IdentityRef `json:"modifiedBy,omitempty"` - // The modification date of the comment for this version. - ModifiedDate *azuredevops.Time `json:"modifiedDate,omitempty"` - // The rendered content of the comment at this version. - RenderedText *string `json:"renderedText,omitempty"` - // The text of the comment at this version. - Text *string `json:"text,omitempty"` - // The version number. - Version *int `json:"version,omitempty"` -} - -// Describes a list of dependent fields for a rule. -type FieldDependentRule struct { - Url *string `json:"url,omitempty"` - // Link references to related REST resources. - Links interface{} `json:"_links,omitempty"` - // The dependent fields. - DependentFields *[]WorkItemFieldReference `json:"dependentFields,omitempty"` -} - -// Describes a set fields for rule evaluation. -type FieldsToEvaluate struct { - // List of fields to evaluate. - Fields *[]string `json:"fields,omitempty"` - // Updated field values to evaluate. - FieldUpdates *map[string]interface{} `json:"fieldUpdates,omitempty"` - // Initial field values. - FieldValues *map[string]interface{} `json:"fieldValues,omitempty"` - // URL of the work item type for which the rules need to be executed. - RulesFrom *[]string `json:"rulesFrom,omitempty"` -} - -// Enum for field types. -type FieldType string - -type fieldTypeValuesType struct { - String FieldType - Integer FieldType - DateTime FieldType - PlainText FieldType - Html FieldType - TreePath FieldType - History FieldType - Double FieldType - Guid FieldType - Boolean FieldType - Identity FieldType - PicklistString FieldType - PicklistInteger FieldType - PicklistDouble FieldType -} - -var FieldTypeValues = fieldTypeValuesType{ - // String field type. - String: "string", - // Integer field type. - Integer: "integer", - // Datetime field type. - DateTime: "dateTime", - // Plain text field type. - PlainText: "plainText", - // HTML (Multiline) field type. - Html: "html", - // Treepath field type. - TreePath: "treePath", - // History field type. - History: "history", - // Double field type. - Double: "double", - // Guid field type. - Guid: "guid", - // Boolean field type. - Boolean: "boolean", - // Identity field type. - Identity: "identity", - // String picklist field type. When creating a string picklist field from REST API, use "String" FieldType. - PicklistString: "picklistString", - // Integer picklist field type. When creating a integer picklist field from REST API, use "Integer" FieldType. - PicklistInteger: "picklistInteger", - // Double picklist field type. When creating a double picklist field from REST API, use "Double" FieldType. - PicklistDouble: "picklistDouble", -} - -// Enum for field usages. -type FieldUsage string - -type fieldUsageValuesType struct { - None FieldUsage - WorkItem FieldUsage - WorkItemLink FieldUsage - Tree FieldUsage - WorkItemTypeExtension FieldUsage -} - -var FieldUsageValues = fieldUsageValuesType{ - // Empty usage. - None: "none", - // Work item field usage. - WorkItem: "workItem", - // Work item link field usage. - WorkItemLink: "workItemLink", - // Treenode field usage. - Tree: "tree", - // Work Item Type Extension usage. - WorkItemTypeExtension: "workItemTypeExtension", -} - -// Flag to expand types of fields. -type GetFieldsExpand string - -type getFieldsExpandValuesType struct { - None GetFieldsExpand - ExtensionFields GetFieldsExpand -} - -var GetFieldsExpandValues = getFieldsExpandValuesType{ - // Default behavior. - None: "none", - // Adds extension fields to the response. - ExtensionFields: "extensionFields", -} - -// Describes a reference to an identity. -type IdentityReference struct { - // This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. - Links interface{} `json:"_links,omitempty"` - // The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. - Descriptor *string `json:"descriptor,omitempty"` - // This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. - DisplayName *string `json:"displayName,omitempty"` - // This url is the full route to the source resource of this graph subject. - Url *string `json:"url,omitempty"` - // Deprecated - Can be retrieved by querying the Graph user referenced in the "self" entry of the IdentityRef "_links" dictionary - DirectoryAlias *string `json:"directoryAlias,omitempty"` - // Deprecated - Available in the "avatar" entry of the IdentityRef "_links" dictionary - ImageUrl *string `json:"imageUrl,omitempty"` - // Deprecated - Can be retrieved by querying the Graph membership state referenced in the "membershipState" entry of the GraphUser "_links" dictionary - Inactive *bool `json:"inactive,omitempty"` - // Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsAadUserType/Descriptor.IsAadGroupType) - IsAadIdentity *bool `json:"isAadIdentity,omitempty"` - // Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsGroupType) - IsContainer *bool `json:"isContainer,omitempty"` - IsDeletedInOrigin *bool `json:"isDeletedInOrigin,omitempty"` - // Deprecated - not in use in most preexisting implementations of ToIdentityRef - ProfileUrl *string `json:"profileUrl,omitempty"` - // Deprecated - use Domain+PrincipalName instead - UniqueName *string `json:"uniqueName,omitempty"` - Id *uuid.UUID `json:"id,omitempty"` - // Legacy back-compat property. This has been the WIT specific value from Constants. Will be hidden (but exists) on the client unless they are targeting the newest version - Name *string `json:"name,omitempty"` -} - -// Link description. -type Link struct { - // Collection of link attributes. - Attributes *map[string]interface{} `json:"attributes,omitempty"` - // Relation type. - Rel *string `json:"rel,omitempty"` - // Link url. - Url *string `json:"url,omitempty"` -} - -// The link query mode which determines the behavior of the query. -type LinkQueryMode string - -type linkQueryModeValuesType struct { - WorkItems LinkQueryMode - LinksOneHopMustContain LinkQueryMode - LinksOneHopMayContain LinkQueryMode - LinksOneHopDoesNotContain LinkQueryMode - LinksRecursiveMustContain LinkQueryMode - LinksRecursiveMayContain LinkQueryMode - LinksRecursiveDoesNotContain LinkQueryMode -} - -var LinkQueryModeValues = linkQueryModeValuesType{ - // Returns flat list of work items. - WorkItems: "workItems", - // Returns work items where the source, target, and link criteria are all satisfied. - LinksOneHopMustContain: "linksOneHopMustContain", - // Returns work items that satisfy the source and link criteria, even if no linked work item satisfies the target criteria. - LinksOneHopMayContain: "linksOneHopMayContain", - // Returns work items that satisfy the source, only if no linked work item satisfies the link and target criteria. - LinksOneHopDoesNotContain: "linksOneHopDoesNotContain", - LinksRecursiveMustContain: "linksRecursiveMustContain", - // Returns work items a hierarchy of work items that by default satisfy the source - LinksRecursiveMayContain: "linksRecursiveMayContain", - LinksRecursiveDoesNotContain: "linksRecursiveDoesNotContain", -} - -type LogicalOperation string - -type logicalOperationValuesType struct { - None LogicalOperation - And LogicalOperation - Or LogicalOperation -} - -var LogicalOperationValues = logicalOperationValuesType{ - None: "none", - And: "and", - Or: "or", -} - -// Project work item type state colors -type ProjectWorkItemStateColors struct { - // Project name - ProjectName *string `json:"projectName,omitempty"` - // State colors for all work item type in a project - WorkItemTypeStateColors *[]WorkItemTypeStateColors `json:"workItemTypeStateColors,omitempty"` -} - -// Enumerates the possible provisioning actions that can be triggered on process template update. -type ProvisioningActionType string - -type provisioningActionTypeValuesType struct { - Import ProvisioningActionType - Validate ProvisioningActionType -} - -var ProvisioningActionTypeValues = provisioningActionTypeValuesType{ - Import: "import", - Validate: "validate", -} - -// Result of an update work item type XML update operation. -type ProvisioningResult struct { - // Details about of the provisioning import events. - ProvisioningImportEvents *[]string `json:"provisioningImportEvents,omitempty"` -} - -// Describes a request to get a list of queries -type QueryBatchGetRequest struct { - // The expand parameters for queries. Possible options are { None, Wiql, Clauses, All, Minimal } - Expand *QueryExpand `json:"$expand,omitempty"` - // The flag to control error policy in a query batch request. Possible options are { Fail, Omit }. - ErrorPolicy *QueryErrorPolicy `json:"errorPolicy,omitempty"` - // The requested query ids - Ids *[]uuid.UUID `json:"ids,omitempty"` -} - -// Enum to control error policy in a query batch request. -type QueryErrorPolicy string - -type queryErrorPolicyValuesType struct { - Fail QueryErrorPolicy - Omit QueryErrorPolicy -} - -var QueryErrorPolicyValues = queryErrorPolicyValuesType{ - Fail: "fail", - Omit: "omit", -} - -// Determines which set of additional query properties to display -type QueryExpand string - -type queryExpandValuesType struct { - None QueryExpand - Wiql QueryExpand - Clauses QueryExpand - All QueryExpand - Minimal QueryExpand -} - -var QueryExpandValues = queryExpandValuesType{ - // Expands Columns, Links and ChangeInfo - None: "none", - // Expands Columns, Links, ChangeInfo and WIQL text - Wiql: "wiql", - // Expands Columns, Links, ChangeInfo, WIQL text and clauses - Clauses: "clauses", - // Expands all properties - All: "all", - // Displays minimal properties and the WIQL text - Minimal: "minimal", -} - -// Represents an item in the work item query hierarchy. This can be either a query or a folder. -type QueryHierarchyItem struct { - Url *string `json:"url,omitempty"` - // Link references to related REST resources. - Links interface{} `json:"_links,omitempty"` - // The child query items inside a query folder. - Children *[]QueryHierarchyItem `json:"children,omitempty"` - // The clauses for a flat query. - Clauses *WorkItemQueryClause `json:"clauses,omitempty"` - // The columns of the query. - Columns *[]WorkItemFieldReference `json:"columns,omitempty"` - // The identity who created the query item. - CreatedBy *IdentityReference `json:"createdBy,omitempty"` - // When the query item was created. - CreatedDate *azuredevops.Time `json:"createdDate,omitempty"` - // The link query mode. - FilterOptions *LinkQueryMode `json:"filterOptions,omitempty"` - // If this is a query folder, indicates if it contains any children. - HasChildren *bool `json:"hasChildren,omitempty"` - // The id of the query item. - Id *uuid.UUID `json:"id,omitempty"` - // Indicates if this query item is deleted. Setting this to false on a deleted query item will undelete it. Undeleting a query or folder will not bring back the permission changes that were previously applied to it. - IsDeleted *bool `json:"isDeleted,omitempty"` - // Indicates if this is a query folder or a query. - IsFolder *bool `json:"isFolder,omitempty"` - // Indicates if the WIQL of this query is invalid. This could be due to invalid syntax or a no longer valid area/iteration path. - IsInvalidSyntax *bool `json:"isInvalidSyntax,omitempty"` - // Indicates if this query item is public or private. - IsPublic *bool `json:"isPublic,omitempty"` - // The identity who last ran the query. - LastExecutedBy *IdentityReference `json:"lastExecutedBy,omitempty"` - // When the query was last run. - LastExecutedDate *azuredevops.Time `json:"lastExecutedDate,omitempty"` - // The identity who last modified the query item. - LastModifiedBy *IdentityReference `json:"lastModifiedBy,omitempty"` - // When the query item was last modified. - LastModifiedDate *azuredevops.Time `json:"lastModifiedDate,omitempty"` - // The link query clause. - LinkClauses *WorkItemQueryClause `json:"linkClauses,omitempty"` - // The name of the query item. - Name *string `json:"name,omitempty"` - // The path of the query item. - Path *string `json:"path,omitempty"` - // The recursion option for use in a tree query. - QueryRecursionOption *QueryRecursionOption `json:"queryRecursionOption,omitempty"` - // The type of query. - QueryType *QueryType `json:"queryType,omitempty"` - // The sort columns of the query. - SortColumns *[]WorkItemQuerySortColumn `json:"sortColumns,omitempty"` - // The source clauses in a tree or one-hop link query. - SourceClauses *WorkItemQueryClause `json:"sourceClauses,omitempty"` - // The target clauses in a tree or one-hop link query. - TargetClauses *WorkItemQueryClause `json:"targetClauses,omitempty"` - // The WIQL text of the query - Wiql *string `json:"wiql,omitempty"` -} - -type QueryHierarchyItemsResult struct { - // The count of items. - Count *int `json:"count,omitempty"` - // Indicates if the max return limit was hit but there are still more items - HasMore *bool `json:"hasMore,omitempty"` - // The list of items - Value *[]QueryHierarchyItem `json:"value,omitempty"` -} - -type QueryOption string - -type queryOptionValuesType struct { - Doing QueryOption - Done QueryOption - Followed QueryOption -} - -var QueryOptionValues = queryOptionValuesType{ - Doing: "doing", - Done: "done", - Followed: "followed", -} - -// Determines whether a tree query matches parents or children first. -type QueryRecursionOption string - -type queryRecursionOptionValuesType struct { - ParentFirst QueryRecursionOption - ChildFirst QueryRecursionOption -} - -var QueryRecursionOptionValues = queryRecursionOptionValuesType{ - // Returns work items that satisfy the source, even if no linked work item satisfies the target and link criteria. - ParentFirst: "parentFirst", - // Returns work items that satisfy the target criteria, even if no work item satisfies the source and link criteria. - ChildFirst: "childFirst", -} - -// The query result type -type QueryResultType string - -type queryResultTypeValuesType struct { - WorkItem QueryResultType - WorkItemLink QueryResultType -} - -var QueryResultTypeValues = queryResultTypeValuesType{ - // A list of work items (for flat queries). - WorkItem: "workItem", - // A list of work item links (for OneHop and Tree queries). - WorkItemLink: "workItemLink", -} - -// The type of query. -type QueryType string - -type queryTypeValuesType struct { - Flat QueryType - Tree QueryType - OneHop QueryType -} - -var QueryTypeValues = queryTypeValuesType{ - // Gets a flat list of work items. - Flat: "flat", - // Gets a tree of work items showing their link hierarchy. - Tree: "tree", - // Gets a list of work items and their direct links. - OneHop: "oneHop", -} - -// The reporting revision expand level. -type ReportingRevisionsExpand string - -type reportingRevisionsExpandValuesType struct { - None ReportingRevisionsExpand - Fields ReportingRevisionsExpand -} - -var ReportingRevisionsExpandValues = reportingRevisionsExpandValuesType{ - // Default behavior. - None: "none", - // Add fields to the response. - Fields: "fields", -} - -type ReportingWorkItemLinksBatch struct { - // ContinuationToken acts as a waterMark. Used while querying large results. - ContinuationToken *string `json:"continuationToken,omitempty"` - // Returns 'true' if it's last batch, 'false' otherwise. - IsLastBatch *bool `json:"isLastBatch,omitempty"` - // The next link for the work item. - NextLink *string `json:"nextLink,omitempty"` - // Values such as rel, sourceId, TargetId, ChangedDate, isActive. - Values *[]interface{} `json:"values,omitempty"` -} - -type ReportingWorkItemRevisionsBatch struct { - // ContinuationToken acts as a waterMark. Used while querying large results. - ContinuationToken *string `json:"continuationToken,omitempty"` - // Returns 'true' if it's last batch, 'false' otherwise. - IsLastBatch *bool `json:"isLastBatch,omitempty"` - // The next link for the work item. - NextLink *string `json:"nextLink,omitempty"` - // Values such as rel, sourceId, TargetId, ChangedDate, isActive. - Values *[]interface{} `json:"values,omitempty"` -} - -// The class represents the reporting work item revision filer. -type ReportingWorkItemRevisionsFilter struct { - // A list of fields to return in work item revisions. Omit this parameter to get all reportable fields. - Fields *[]string `json:"fields,omitempty"` - // Include deleted work item in the result. - IncludeDeleted *bool `json:"includeDeleted,omitempty"` - // Return an identity reference instead of a string value for identity fields. - IncludeIdentityRef *bool `json:"includeIdentityRef,omitempty"` - // Include only the latest version of a work item, skipping over all previous revisions of the work item. - IncludeLatestOnly *bool `json:"includeLatestOnly,omitempty"` - // Include tag reference instead of string value for System.Tags field - IncludeTagRef *bool `json:"includeTagRef,omitempty"` - // A list of types to filter the results to specific work item types. Omit this parameter to get work item revisions of all work item types. - Types *[]string `json:"types,omitempty"` -} - -// The class describes reporting work item revision batch. -type StreamedBatch struct { - // ContinuationToken acts as a waterMark. Used while querying large results. - ContinuationToken *string `json:"continuationToken,omitempty"` - // Returns 'true' if it's last batch, 'false' otherwise. - IsLastBatch *bool `json:"isLastBatch,omitempty"` - // The next link for the work item. - NextLink *string `json:"nextLink,omitempty"` - // Values such as rel, sourceId, TargetId, ChangedDate, isActive. - Values *[]interface{} `json:"values,omitempty"` -} - -// Enumerates types of supported xml templates used for customization. -type TemplateType string - -type templateTypeValuesType struct { - WorkItemType TemplateType - GlobalWorkflow TemplateType -} - -var TemplateTypeValues = templateTypeValuesType{ - WorkItemType: "workItemType", - GlobalWorkflow: "globalWorkflow", -} - -// Types of tree node structures. -type TreeNodeStructureType string - -type treeNodeStructureTypeValuesType struct { - Area TreeNodeStructureType - Iteration TreeNodeStructureType -} - -var TreeNodeStructureTypeValues = treeNodeStructureTypeValuesType{ - // Area type. - Area: "area", - // Iteration type. - Iteration: "iteration", -} - -// Types of tree structures groups. -type TreeStructureGroup string - -type treeStructureGroupValuesType struct { - Areas TreeStructureGroup - Iterations TreeStructureGroup -} - -var TreeStructureGroupValues = treeStructureGroupValuesType{ - Areas: "areas", - Iterations: "iterations", -} - -// A WIQL query -type Wiql struct { - // The text of the WIQL query - Query *string `json:"query,omitempty"` -} - -// A work artifact link describes an outbound artifact link type. -type WorkArtifactLink struct { - // Target artifact type. - ArtifactType *string `json:"artifactType,omitempty"` - // Outbound link type. - LinkType *string `json:"linkType,omitempty"` - // Target tool type. - ToolType *string `json:"toolType,omitempty"` -} - -// Describes a work item. -type WorkItem struct { - Url *string `json:"url,omitempty"` - // Link references to related REST resources. - Links interface{} `json:"_links,omitempty"` - // Reference to a specific version of the comment added/edited/deleted in this revision. - CommentVersionRef *WorkItemCommentVersionRef `json:"commentVersionRef,omitempty"` - // Map of field and values for the work item. - Fields *map[string]interface{} `json:"fields,omitempty"` - // The work item ID. - Id *int `json:"id,omitempty"` - // Relations of the work item. - Relations *[]WorkItemRelation `json:"relations,omitempty"` - // Revision number of the work item. - Rev *int `json:"rev,omitempty"` -} - -// Describes a request to get a set of work items -type WorkItemBatchGetRequest struct { - // The expand parameters for work item attributes. Possible options are { None, Relations, Fields, Links, All } - Expand *WorkItemExpand `json:"$expand,omitempty"` - // AsOf UTC date time string - AsOf *azuredevops.Time `json:"asOf,omitempty"` - // The flag to control error policy in a bulk get work items request. Possible options are {Fail, Omit}. - ErrorPolicy *WorkItemErrorPolicy `json:"errorPolicy,omitempty"` - // The requested fields - Fields *[]string `json:"fields,omitempty"` - // The requested work item ids - Ids *[]int `json:"ids,omitempty"` -} - -// Defines a classification node for work item tracking. -type WorkItemClassificationNode struct { - Url *string `json:"url,omitempty"` - // Link references to related REST resources. - Links interface{} `json:"_links,omitempty"` - // Dictionary that has node attributes like start/finish date for iteration nodes. - Attributes *map[string]interface{} `json:"attributes,omitempty"` - // List of child nodes fetched. - Children *[]WorkItemClassificationNode `json:"children,omitempty"` - // Flag that indicates if the classification node has any child nodes. - HasChildren *bool `json:"hasChildren,omitempty"` - // Integer ID of the classification node. - Id *int `json:"id,omitempty"` - // GUID ID of the classification node. - Identifier *uuid.UUID `json:"identifier,omitempty"` - // Name of the classification node. - Name *string `json:"name,omitempty"` - // Path of the classification node. - Path *string `json:"path,omitempty"` - // Node structure type. - StructureType *TreeNodeStructureType `json:"structureType,omitempty"` -} - -// Comment on Work Item -type WorkItemComment struct { - Url *string `json:"url,omitempty"` - // Link references to related REST resources. - Links interface{} `json:"_links,omitempty"` - // Identity of user who added the comment. - RevisedBy *IdentityReference `json:"revisedBy,omitempty"` - // The date of comment. - RevisedDate *azuredevops.Time `json:"revisedDate,omitempty"` - // The work item revision number. - Revision *int `json:"revision,omitempty"` - // The text of the comment. - Text *string `json:"text,omitempty"` -} - -// Collection of comments. -type WorkItemComments struct { - Url *string `json:"url,omitempty"` - // Link references to related REST resources. - Links interface{} `json:"_links,omitempty"` - // Comments collection. - Comments *[]WorkItemComment `json:"comments,omitempty"` - // The count of comments. - Count *int `json:"count,omitempty"` - // Count of comments from the revision. - FromRevisionCount *int `json:"fromRevisionCount,omitempty"` - // Total count of comments. - TotalCount *int `json:"totalCount,omitempty"` -} - -// Represents the reference to a specific version of a comment on a Work Item. -type WorkItemCommentVersionRef struct { - Url *string `json:"url,omitempty"` - // The id assigned to the comment. - CommentId *int `json:"commentId,omitempty"` - // [Internal] The work item revision where this comment was originally added. - CreatedInRevision *int `json:"createdInRevision,omitempty"` - // [Internal] Specifies whether comment was deleted. - IsDeleted *bool `json:"isDeleted,omitempty"` - // [Internal] The text of the comment. - Text *string `json:"text,omitempty"` - // The version number. - Version *int `json:"version,omitempty"` -} - -// Full deleted work item object. Includes the work item itself. -type WorkItemDelete struct { - // The HTTP status code for work item operation in a batch request. - Code *int `json:"code,omitempty"` - // The user who deleted the work item type. - DeletedBy *string `json:"deletedBy,omitempty"` - // The work item deletion date. - DeletedDate *string `json:"deletedDate,omitempty"` - // Work item ID. - Id *int `json:"id,omitempty"` - // The exception message for work item operation in a batch request. - Message *string `json:"message,omitempty"` - // Name or title of the work item. - Name *string `json:"name,omitempty"` - // Parent project of the deleted work item. - Project *string `json:"project,omitempty"` - // Type of work item. - Type *string `json:"type,omitempty"` - // REST API URL of the resource - Url *string `json:"url,omitempty"` - // The work item object that was deleted. - Resource *WorkItem `json:"resource,omitempty"` -} - -// Reference to a deleted work item. -type WorkItemDeleteReference struct { - // The HTTP status code for work item operation in a batch request. - Code *int `json:"code,omitempty"` - // The user who deleted the work item type. - DeletedBy *string `json:"deletedBy,omitempty"` - // The work item deletion date. - DeletedDate *string `json:"deletedDate,omitempty"` - // Work item ID. - Id *int `json:"id,omitempty"` - // The exception message for work item operation in a batch request. - Message *string `json:"message,omitempty"` - // Name or title of the work item. - Name *string `json:"name,omitempty"` - // Parent project of the deleted work item. - Project *string `json:"project,omitempty"` - // Type of work item. - Type *string `json:"type,omitempty"` - // REST API URL of the resource - Url *string `json:"url,omitempty"` -} - -// Shallow Reference to a deleted work item. -type WorkItemDeleteShallowReference struct { - // Work item ID. - Id *int `json:"id,omitempty"` - // REST API URL of the resource - Url *string `json:"url,omitempty"` -} - -// Describes an update request for a deleted work item. -type WorkItemDeleteUpdate struct { - // Sets a value indicating whether this work item is deleted. - IsDeleted *bool `json:"isDeleted,omitempty"` -} - -// Enum to control error policy in a bulk get work items request. -type WorkItemErrorPolicy string - -type workItemErrorPolicyValuesType struct { - Fail WorkItemErrorPolicy - Omit WorkItemErrorPolicy -} - -var WorkItemErrorPolicyValues = workItemErrorPolicyValuesType{ - // Fail work error policy. - Fail: "fail", - // Omit work error policy. - Omit: "omit", -} - -// Flag to control payload properties from get work item command. -type WorkItemExpand string - -type workItemExpandValuesType struct { - None WorkItemExpand - Relations WorkItemExpand - Fields WorkItemExpand - Links WorkItemExpand - All WorkItemExpand -} - -var WorkItemExpandValues = workItemExpandValuesType{ - // Default behavior. - None: "none", - // Relations work item expand. - Relations: "relations", - // Fields work item expand. - Fields: "fields", - // Links work item expand. - Links: "links", - // Expands all. - All: "all", -} - -// Describes a field on a work item and it's properties specific to that work item type. -type WorkItemField struct { - Url *string `json:"url,omitempty"` - // Link references to related REST resources. - Links interface{} `json:"_links,omitempty"` - // Indicates whether the field is sortable in server queries. - CanSortBy *bool `json:"canSortBy,omitempty"` - // The description of the field. - Description *string `json:"description,omitempty"` - // Indicates whether this field is an identity field. - IsIdentity *bool `json:"isIdentity,omitempty"` - // Indicates whether this instance is picklist. - IsPicklist *bool `json:"isPicklist,omitempty"` - // Indicates whether this instance is a suggested picklist . - IsPicklistSuggested *bool `json:"isPicklistSuggested,omitempty"` - // Indicates whether the field can be queried in the server. - IsQueryable *bool `json:"isQueryable,omitempty"` - // The name of the field. - Name *string `json:"name,omitempty"` - // If this field is picklist, the identifier of the picklist associated, otherwise null - PicklistId *uuid.UUID `json:"picklistId,omitempty"` - // Indicates whether the field is [read only]. - ReadOnly *bool `json:"readOnly,omitempty"` - // The reference name of the field. - ReferenceName *string `json:"referenceName,omitempty"` - // The supported operations on this field. - SupportedOperations *[]WorkItemFieldOperation `json:"supportedOperations,omitempty"` - // The type of the field. - Type *FieldType `json:"type,omitempty"` - // The usage of the field. - Usage *FieldUsage `json:"usage,omitempty"` -} - -// Describes a work item field operation. -type WorkItemFieldOperation struct { - // Friendly name of the operation. - Name *string `json:"name,omitempty"` - // Reference name of the operation. - ReferenceName *string `json:"referenceName,omitempty"` -} - -// Reference to a field in a work item -type WorkItemFieldReference struct { - // The friendly name of the field. - Name *string `json:"name,omitempty"` - // The reference name of the field. - ReferenceName *string `json:"referenceName,omitempty"` - // The REST URL of the resource. - Url *string `json:"url,omitempty"` -} - -// Describes an update to a work item field. -type WorkItemFieldUpdate struct { - // The new value of the field. - NewValue interface{} `json:"newValue,omitempty"` - // The old value of the field. - OldValue interface{} `json:"oldValue,omitempty"` -} - -type WorkItemHistory struct { - Url *string `json:"url,omitempty"` - // Link references to related REST resources. - Links interface{} `json:"_links,omitempty"` - Rev *int `json:"rev,omitempty"` - RevisedBy *IdentityReference `json:"revisedBy,omitempty"` - RevisedDate *azuredevops.Time `json:"revisedDate,omitempty"` - Value *string `json:"value,omitempty"` -} - -// Reference to a work item icon. -type WorkItemIcon struct { - // The identifier of the icon. - Id *string `json:"id,omitempty"` - // The REST URL of the resource. - Url *string `json:"url,omitempty"` -} - -// A link between two work items. -type WorkItemLink struct { - // The type of link. - Rel *string `json:"rel,omitempty"` - // The source work item. - Source *WorkItemReference `json:"source,omitempty"` - // The target work item. - Target *WorkItemReference `json:"target,omitempty"` -} - -// Describes the next state for a work item. -type WorkItemNextStateOnTransition struct { - // Error code if there is no next state transition possible. - ErrorCode *string `json:"errorCode,omitempty"` - // Work item ID. - Id *int `json:"id,omitempty"` - // Error message if there is no next state transition possible. - Message *string `json:"message,omitempty"` - // Name of the next state on transition. - StateOnTransition *string `json:"stateOnTransition,omitempty"` -} - -// Represents a clause in a work item query. This shows the structure of a work item query. -type WorkItemQueryClause struct { - // Child clauses if the current clause is a logical operator - Clauses *[]WorkItemQueryClause `json:"clauses,omitempty"` - // Field associated with condition - Field *WorkItemFieldReference `json:"field,omitempty"` - // Right side of the condition when a field to field comparison - FieldValue *WorkItemFieldReference `json:"fieldValue,omitempty"` - // Determines if this is a field to field comparison - IsFieldValue *bool `json:"isFieldValue,omitempty"` - // Logical operator separating the condition clause - LogicalOperator *LogicalOperation `json:"logicalOperator,omitempty"` - // The field operator - Operator *WorkItemFieldOperation `json:"operator,omitempty"` - // Right side of the condition when a field to value comparison - Value *string `json:"value,omitempty"` -} - -// The result of a work item query. -type WorkItemQueryResult struct { - // The date the query was run in the context of. - AsOf *azuredevops.Time `json:"asOf,omitempty"` - // The columns of the query. - Columns *[]WorkItemFieldReference `json:"columns,omitempty"` - // The result type - QueryResultType *QueryResultType `json:"queryResultType,omitempty"` - // The type of the query - QueryType *QueryType `json:"queryType,omitempty"` - // The sort columns of the query. - SortColumns *[]WorkItemQuerySortColumn `json:"sortColumns,omitempty"` - // The work item links returned by the query. - WorkItemRelations *[]WorkItemLink `json:"workItemRelations,omitempty"` - // The work items returned by the query. - WorkItems *[]WorkItemReference `json:"workItems,omitempty"` -} - -// A sort column. -type WorkItemQuerySortColumn struct { - // The direction to sort by. - Descending *bool `json:"descending,omitempty"` - // A work item field. - Field *WorkItemFieldReference `json:"field,omitempty"` -} - -// Type of the activity -type WorkItemRecentActivityType string - -type workItemRecentActivityTypeValuesType struct { - Visited WorkItemRecentActivityType - Edited WorkItemRecentActivityType - Deleted WorkItemRecentActivityType - Restored WorkItemRecentActivityType -} - -var WorkItemRecentActivityTypeValues = workItemRecentActivityTypeValuesType{ - Visited: "visited", - Edited: "edited", - Deleted: "deleted", - Restored: "restored", -} - -// Contains reference to a work item. -type WorkItemReference struct { - // Work item ID. - Id *int `json:"id,omitempty"` - // REST API URL of the resource - Url *string `json:"url,omitempty"` -} - -type WorkItemRelation struct { - // Collection of link attributes. - Attributes *map[string]interface{} `json:"attributes,omitempty"` - // Relation type. - Rel *string `json:"rel,omitempty"` - // Link url. - Url *string `json:"url,omitempty"` -} - -// Represents the work item type relation type. -type WorkItemRelationType struct { - Url *string `json:"url,omitempty"` - // Link references to related REST resources. - Links interface{} `json:"_links,omitempty"` - // The name. - Name *string `json:"name,omitempty"` - // The reference name. - ReferenceName *string `json:"referenceName,omitempty"` - // The collection of relation type attributes. - Attributes *map[string]interface{} `json:"attributes,omitempty"` -} - -// Describes updates to a work item's relations. -type WorkItemRelationUpdates struct { - // List of newly added relations. - Added *[]WorkItemRelation `json:"added,omitempty"` - // List of removed relations. - Removed *[]WorkItemRelation `json:"removed,omitempty"` - // List of updated relations. - Updated *[]WorkItemRelation `json:"updated,omitempty"` -} - -// Work item type state name, color and state category -type WorkItemStateColor struct { - // Category of state - Category *string `json:"category,omitempty"` - // Color value - Color *string `json:"color,omitempty"` - // Work item type state name - Name *string `json:"name,omitempty"` -} - -// Describes a state transition in a work item. -type WorkItemStateTransition struct { - // Gets a list of actions needed to transition to that state. - Actions *[]string `json:"actions,omitempty"` - // Name of the next state. - To *string `json:"to,omitempty"` -} - -// Describes a work item template. -type WorkItemTemplate struct { - Url *string `json:"url,omitempty"` - // Link references to related REST resources. - Links interface{} `json:"_links,omitempty"` - // The description of the work item template. - Description *string `json:"description,omitempty"` - // The identifier of the work item template. - Id *uuid.UUID `json:"id,omitempty"` - // The name of the work item template. - Name *string `json:"name,omitempty"` - // The name of the work item type. - WorkItemTypeName *string `json:"workItemTypeName,omitempty"` - // Mapping of field and its templated value. - Fields *map[string]string `json:"fields,omitempty"` -} - -// Describes a shallow reference to a work item template. -type WorkItemTemplateReference struct { - Url *string `json:"url,omitempty"` - // Link references to related REST resources. - Links interface{} `json:"_links,omitempty"` - // The description of the work item template. - Description *string `json:"description,omitempty"` - // The identifier of the work item template. - Id *uuid.UUID `json:"id,omitempty"` - // The name of the work item template. - Name *string `json:"name,omitempty"` - // The name of the work item type. - WorkItemTypeName *string `json:"workItemTypeName,omitempty"` -} - -type WorkItemTrackingReference struct { - Url *string `json:"url,omitempty"` - // Link references to related REST resources. - Links interface{} `json:"_links,omitempty"` - // The name. - Name *string `json:"name,omitempty"` - // The reference name. - ReferenceName *string `json:"referenceName,omitempty"` -} - -// Base class for WIT REST resources. -type WorkItemTrackingResource struct { - Url *string `json:"url,omitempty"` - // Link references to related REST resources. - Links interface{} `json:"_links,omitempty"` -} - -// Base class for work item tracking resource references. -type WorkItemTrackingResourceReference struct { - Url *string `json:"url,omitempty"` -} - -// Describes a work item type. -type WorkItemType struct { - Url *string `json:"url,omitempty"` - // Link references to related REST resources. - Links interface{} `json:"_links,omitempty"` - // The color. - Color *string `json:"color,omitempty"` - // The description of the work item type. - Description *string `json:"description,omitempty"` - // The fields that exist on the work item type. - FieldInstances *[]WorkItemTypeFieldInstance `json:"fieldInstances,omitempty"` - // The fields that exist on the work item type. - Fields *[]WorkItemTypeFieldInstance `json:"fields,omitempty"` - // The icon of the work item type. - Icon *WorkItemIcon `json:"icon,omitempty"` - // True if work item type is disabled - IsDisabled *bool `json:"isDisabled,omitempty"` - // Gets the name of the work item type. - Name *string `json:"name,omitempty"` - // The reference name of the work item type. - ReferenceName *string `json:"referenceName,omitempty"` - // Gets state information for the work item type. - States *[]WorkItemStateColor `json:"states,omitempty"` - // Gets the various state transition mappings in the work item type. - Transitions *map[string][]WorkItemStateTransition `json:"transitions,omitempty"` - // The XML form. - XmlForm *string `json:"xmlForm,omitempty"` -} - -// Describes a work item type category. -type WorkItemTypeCategory struct { - Url *string `json:"url,omitempty"` - // Link references to related REST resources. - Links interface{} `json:"_links,omitempty"` - // Gets or sets the default type of the work item. - DefaultWorkItemType *WorkItemTypeReference `json:"defaultWorkItemType,omitempty"` - // The name of the category. - Name *string `json:"name,omitempty"` - // The reference name of the category. - ReferenceName *string `json:"referenceName,omitempty"` - // The work item types that belong to the category. - WorkItemTypes *[]WorkItemTypeReference `json:"workItemTypes,omitempty"` -} - -// Describes a work item type's colors. -type WorkItemTypeColor struct { - // Gets or sets the color of the primary. - PrimaryColor *string `json:"primaryColor,omitempty"` - // Gets or sets the color of the secondary. - SecondaryColor *string `json:"secondaryColor,omitempty"` - // The name of the work item type. - WorkItemTypeName *string `json:"workItemTypeName,omitempty"` -} - -// Describes work item type nam, its icon and color. -type WorkItemTypeColorAndIcon struct { - // The color of the work item type in hex format. - Color *string `json:"color,omitempty"` - // The work item type icon. - Icon *string `json:"icon,omitempty"` - // The name of the work item type. - WorkItemTypeName *string `json:"workItemTypeName,omitempty"` -} - -// Field instance of a work item type. -type WorkItemTypeFieldInstance struct { - // The friendly name of the field. - Name *string `json:"name,omitempty"` - // The reference name of the field. - ReferenceName *string `json:"referenceName,omitempty"` - // The REST URL of the resource. - Url *string `json:"url,omitempty"` - // Indicates whether field value is always required. - AlwaysRequired *bool `json:"alwaysRequired,omitempty"` - // The list of dependent fields. - DependentFields *[]WorkItemFieldReference `json:"dependentFields,omitempty"` - // Gets the help text for the field. - HelpText *string `json:"helpText,omitempty"` - // The list of field allowed values. - AllowedValues *[]string `json:"allowedValues,omitempty"` - // Represents the default value of the field. - DefaultValue *string `json:"defaultValue,omitempty"` -} - -// Base field instance for workItemType fields. -type WorkItemTypeFieldInstanceBase struct { - // The friendly name of the field. - Name *string `json:"name,omitempty"` - // The reference name of the field. - ReferenceName *string `json:"referenceName,omitempty"` - // The REST URL of the resource. - Url *string `json:"url,omitempty"` - // Indicates whether field value is always required. - AlwaysRequired *bool `json:"alwaysRequired,omitempty"` - // The list of dependent fields. - DependentFields *[]WorkItemFieldReference `json:"dependentFields,omitempty"` - // Gets the help text for the field. - HelpText *string `json:"helpText,omitempty"` -} - -// Expand options for the work item field(s) request. -type WorkItemTypeFieldsExpandLevel string - -type workItemTypeFieldsExpandLevelValuesType struct { - None WorkItemTypeFieldsExpandLevel - AllowedValues WorkItemTypeFieldsExpandLevel - DependentFields WorkItemTypeFieldsExpandLevel - All WorkItemTypeFieldsExpandLevel -} - -var WorkItemTypeFieldsExpandLevelValues = workItemTypeFieldsExpandLevelValuesType{ - // Includes only basic properties of the field. - None: "none", - // Includes allowed values for the field. - AllowedValues: "allowedValues", - // Includes dependent fields of the field. - DependentFields: "dependentFields", - // Includes allowed values and dependent fields of the field. - All: "all", -} - -// Field Instance of a workItemype with detailed references. -type WorkItemTypeFieldWithReferences struct { - // The friendly name of the field. - Name *string `json:"name,omitempty"` - // The reference name of the field. - ReferenceName *string `json:"referenceName,omitempty"` - // The REST URL of the resource. - Url *string `json:"url,omitempty"` - // Indicates whether field value is always required. - AlwaysRequired *bool `json:"alwaysRequired,omitempty"` - // The list of dependent fields. - DependentFields *[]WorkItemFieldReference `json:"dependentFields,omitempty"` - // Gets the help text for the field. - HelpText *string `json:"helpText,omitempty"` - // The list of field allowed values. - AllowedValues *[]interface{} `json:"allowedValues,omitempty"` - // Represents the default value of the field. - DefaultValue interface{} `json:"defaultValue,omitempty"` -} - -// Reference to a work item type. -type WorkItemTypeReference struct { - Url *string `json:"url,omitempty"` - // Name of the work item type. - Name *string `json:"name,omitempty"` -} - -// State colors for a work item type -type WorkItemTypeStateColors struct { - // Work item type state colors - StateColors *[]WorkItemStateColor `json:"stateColors,omitempty"` - // Work item type name - WorkItemTypeName *string `json:"workItemTypeName,omitempty"` -} - -// Describes a work item type template. -type WorkItemTypeTemplate struct { - // XML template in string format. - Template *string `json:"template,omitempty"` -} - -// Describes a update work item type template request body. -type WorkItemTypeTemplateUpdateModel struct { - // Describes the type of the action for the update request. - ActionType *ProvisioningActionType `json:"actionType,omitempty"` - // Methodology to which the template belongs, eg. Agile, Scrum, CMMI. - Methodology *string `json:"methodology,omitempty"` - // String representation of the work item type template. - Template *string `json:"template,omitempty"` - // The type of the template described in the request body. - TemplateType *TemplateType `json:"templateType,omitempty"` -} - -// Describes an update to a work item. -type WorkItemUpdate struct { - Url *string `json:"url,omitempty"` - // Link references to related REST resources. - Links interface{} `json:"_links,omitempty"` - // List of updates to fields. - Fields *map[string]WorkItemFieldUpdate `json:"fields,omitempty"` - // ID of update. - Id *int `json:"id,omitempty"` - // List of updates to relations. - Relations *WorkItemRelationUpdates `json:"relations,omitempty"` - // The revision number of work item update. - Rev *int `json:"rev,omitempty"` - // Identity for the work item update. - RevisedBy *IdentityReference `json:"revisedBy,omitempty"` - // The work item updates revision date. - RevisedDate *azuredevops.Time `json:"revisedDate,omitempty"` - // The work item ID. - WorkItemId *int `json:"workItemId,omitempty"` -} diff --git a/vendor/modules.txt b/vendor/modules.txt index 34b109fa2..96e001cb7 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -202,13 +202,6 @@ github.com/mattn/go-colorable github.com/mattn/go-isatty # github.com/microsoft/azure-devops-go-api/azuredevops v1.0.0-b3 ## explicit; go 1.12 -github.com/microsoft/azure-devops-go-api/azuredevops -github.com/microsoft/azure-devops-go-api/azuredevops/delegatedauthorization -github.com/microsoft/azure-devops-go-api/azuredevops/identity -github.com/microsoft/azure-devops-go-api/azuredevops/security -github.com/microsoft/azure-devops-go-api/azuredevops/system -github.com/microsoft/azure-devops-go-api/azuredevops/webapi -github.com/microsoft/azure-devops-go-api/azuredevops/workitemtracking # github.com/microsoft/azure-devops-go-api/azuredevops/v6 v6.0.1 ## explicit; go 1.12 github.com/microsoft/azure-devops-go-api/azuredevops/v6