public CMSVSTSServiceHookReleaseCompletedApprovalCreateModel Build(CMSVSTSServiceHookParamsModel @params) { var @base = this.BuildBase(@params); var entity = new CMSVSTSServiceHookReleaseCompletedApprovalCreateModel(); entity.ConsumerActionId = @base.ConsumerActionId; entity.ConsumerId = @base.ConsumerId; entity.CustomerInput = @base.CustomerInput; entity.Scope = @base.Scope; entity.EventType = "ms.vss-release.deployment-approval-completed-event"; entity.PublisherId = "rm"; entity.ResourceVersion = "3.0-preview.1"; entity.PublisherInputs = new CMSVSTSServiceHookReleaseCompletedApprovalPublisherInputCreateModel() { ReleaseDefinitionId = @params.Definition, ReleaseEnvironmentId = "", ReleaseApprovalType = "", ReleaseApprovalStatus = "", ProjectId = @params.ProjectId }; return(entity); }
public CMSVSTSServiceHookCreateBaseModel BuildBase(CMSVSTSServiceHookParamsModel @params) { var entity = new CMSVSTSServiceHookCreateBaseModel() { ConsumerActionId = "httpRequest", ConsumerId = "webHooks", CustomerInput = new CMSVSTSServiceHookCustomerInputCreateModel() { Url = @params.Url }, Scope = 1 }; return(entity); }
public CMSVSTSServiceHookBuildCreateModel Build(CMSVSTSServiceHookParamsModel @params) { var @base = this.BuildBase(@params); var entity = new CMSVSTSServiceHookBuildCreateModel(); entity.ConsumerActionId = @base.ConsumerActionId; entity.ConsumerId = @base.ConsumerId; entity.CustomerInput = @base.CustomerInput; entity.Scope = @base.Scope; entity.EventType = "build.complete"; entity.PublisherId = "tfs"; entity.ResourceVersion = "1.0"; entity.PublisherInputs = new CMSVSTSServiceHookBuildPublisherInputCreateModel() { BuildStatus = "", DefinitionName = @params.Definition, ProjectId = @params.ProjectId }; return(entity); }
public CMSVSTSServiceHookCodeCreateModel Build(CMSVSTSServiceHookParamsModel @params) { var @base = this.BuildBase(@params); var entity = new CMSVSTSServiceHookCodeCreateModel(); entity.ConsumerActionId = @base.ConsumerActionId; entity.ConsumerId = @base.ConsumerId; entity.CustomerInput = @base.CustomerInput; entity.Scope = @base.Scope; entity.EventType = "git.push"; entity.PublisherId = "tfs"; entity.ResourceVersion = "1.0"; entity.PublisherInputs = new CMSVSTSServiceHookCodePublisherInputCreateModel() { Branch = @params.Branch, PushedBy = "", Repository = @params.Repository, ProjectId = @params.ProjectId }; return(entity); }