예제 #1
0
 public static TriggeredField WithFields(
     // Fields
     bool type        = false,
     bool date        = false,
     bool details     = false,
     bool displayText = false,
     bool rawValue    = false,
     // Group Fields
     BuildTypeField buildType   = null,
     UserField user             = null,
     BuildField build           = null,
     PropertiesField properties = null)
 {
     return(new TriggeredField
     {
         // Fields
         Type = type,
         Details = details,
         Date = date,
         DisplayText = displayText,
         RawValue = rawValue,
         // Group fields
         User = user,
         Build = build,
         BuildType = buildType,
         Properties = properties
     });
 }
예제 #2
0
 public static StatisticsField WithFields(PropertiesField propertiesField = null,
                                          bool count = true)
 {
     return(new StatisticsField
     {
         PropertiesField = propertiesField,
         Count = count,
     });
 }
예제 #3
0
 public static StatisticsField WithFields(PropertiesField propertiesField = null,
                                          bool count = true, bool href = false)
 {
     return(new StatisticsField
     {
         PropertiesField = propertiesField,
         Count = count,
         Href = href
     });
 }
예제 #4
0
 public static BuildField WithFields(bool id                      = false,
                                     bool number                  = false,
                                     bool status                  = false,
                                     bool buildTypeId             = false,
                                     bool href                    = false,
                                     bool webUrl                  = false,
                                     bool statusText              = false,
                                     bool startDate               = false,
                                     bool finishDate              = false,
                                     bool queuedDate              = false,
                                     bool state                   = false,
                                     bool personal                = false,
                                     BuildTypeField buildType     = null,
                                     AgentField agent             = null,
                                     TagsField tags               = null,
                                     LastChangesField lastChanges = null,
                                     ChangesField changes         = null,
                                     TriggeredField triggered     = null,
                                     RevisionsField revisions     = null,
                                     PropertiesField properties   = null,
                                     BuildSnapshotDepenciesField snapshotDepencies       = null,
                                     BuildArtifactDependenciesField artifactDependencies = null,
                                     ArtifactsField artifacts         = null,
                                     RelatedIssuesField relatedIssues = null,
                                     StatisticsField statistics       = null)
 {
     return(new BuildField
     {
         Id = id,
         Number = number,
         Status = status,
         BuildTypeId = buildTypeId,
         Href = href,
         WebUrl = webUrl,
         StatusText = statusText,
         StartDate = startDate,
         FinishDate = finishDate,
         QueuedDate = queuedDate,
         State = state,
         Personal = personal,
         BuildType = buildType,
         Agent = agent,
         Tags = tags,
         LastChanges = lastChanges,
         Changes = changes,
         Triggered = triggered,
         Revisions = revisions,
         Properties = properties,
         SnapshotDependencies = snapshotDepencies,
         ArtifactDependencies = artifactDependencies,
         Artifacts = artifacts,
         RelatedIssues = relatedIssues,
         Statistics = statistics
     });
 }
예제 #5
0
 public static BuildTriggerField WithFields(PropertiesField properties = null,
                                            bool id   = false,
                                            bool type = false)
 {
     return(new BuildTriggerField
     {
         Properties = properties,
         Id = id,
         Type = type
     });
 }
예제 #6
0
 public static ProjectFeatureField WithFields(bool id   = false,
                                              bool type = false,
                                              bool href = false,
                                              PropertiesField properties = null)
 {
     return(new ProjectFeatureField
     {
         Id = id,
         Type = type,
         Href = href,
         Properties = properties
     });
 }
 public static SnapshotDependencyField WithFields(SourceBuildTypeField sourceBuildType = null,
                                                  PropertiesField properties           = null,
                                                  bool id   = false,
                                                  bool type = false)
 {
     return(new SnapshotDependencyField
     {
         SourceBuildType = sourceBuildType,
         Properties = properties,
         Id = id,
         Type = type,
     });
 }
 public static ArtifactDependencyField WithFields(SourceBuildTypeField sourceBuildType = null,
                                                  PropertiesField properties           = null,
                                                  bool id        = false,
                                                  bool type      = false,
                                                  bool inherited = false)
 {
     return(new ArtifactDependencyField
     {
         SourceBuildType = sourceBuildType,
         Properties = properties,
         Id = id,
         Type = type,
         Inherited = inherited
     });
 }
예제 #9
0
 public static BuildTriggerField WithFields(PropertiesField properties = null,
                                            bool id        = false,
                                            bool type      = false,
                                            bool disabled  = false,
                                            bool inherited = false)
 {
     return(new BuildTriggerField
     {
         Properties = properties,
         Id = id,
         Type = type,
         Disabled = disabled,
         Inherited = inherited
     });
 }
예제 #10
0
 public static BuildStepField WithFields(PropertiesField properties = null,
                                         bool id       = false,
                                         bool name     = false,
                                         bool type     = false,
                                         bool disabled = false)
 {
     return(new BuildStepField
     {
         Properties = properties,
         Id = id,
         Name = name,
         Type = type,
         Disabled = disabled
     });
 }
예제 #11
0
 public static VcsRootField WithFields(PropertiesField properties = null,
                                       bool id          = false,
                                       bool vcsName     = false,
                                       bool href        = false,
                                       bool name        = false,
                                       bool version     = false,
                                       bool status      = false,
                                       bool lastChecked = false)
 {
     return(new VcsRootField
     {
         Properties = properties,
         Id = id,
         VcsName = vcsName,
         Href = href,
         Name = name,
         Version = version,
         Status = status,
         LastChecked = lastChecked
     });
 }
예제 #12
0
 public static BuildField WithFields(bool id                  = false,
                                     bool number              = false,
                                     bool status              = false,
                                     bool buildTypeId         = false,
                                     bool href                = false,
                                     bool webUrl              = false,
                                     bool statusText          = false,
                                     bool startDate           = false,
                                     bool finishDate          = false,
                                     bool state               = false,
                                     BuildTypeField buildType = null,
                                     AgentField agent         = null,
                                     /* ChangeWrapperField Changes = null, */
                                     PropertiesField properties = null,
                                     BuildSnapshotDepenciesField snapshotDepencies       = null,
                                     BuildArtifactDependenciesField artifactDependencies = null)
 {
     return(new BuildField
     {
         Id = id,
         Number = number,
         Status = status,
         BuildTypeId = buildTypeId,
         Href = href,
         WebUrl = webUrl,
         StatusText = statusText,
         StartDate = startDate,
         FinishDate = finishDate,
         State = state,
         BuildType = buildType,
         Agent = agent,
         //Changes = changes,
         Properties = properties,
         SnapshotDependencies = snapshotDepencies,
         ArtifactDependencies = artifactDependencies
     });
 }
예제 #13
0
        //TODO: Implement missing field

        /*
         * public RolesField RolesField { get; private set; }
         * public GroupsField GroupsField { get; private set; }
         * public FilesField FilesField { get; private set; }
         */
        #endregion

        #region Public Methods

        public static UserField WithFields(bool username = false, bool name = false, bool id = false, bool email = false, bool lastlogin = false, bool href = false, PropertiesField propertiesField = null)
        {
            return(new UserField
            {
                Username = username,
                Name = name,
                Id = id,
                Email = email,
                LastLogin = lastlogin,
                Href = href,
                PropertiesField = propertiesField
            });
        }
예제 #14
0
        public static BuildField WithFields(
            // Fields
            bool id                  = false,
            bool taskId              = false,
            bool buildTypeId         = false,
            bool buildTypeInternalId = false,
            bool number              = false,
            bool status              = false,
            bool state               = false,
            bool running             = false,
            bool composite           = false,
            bool failedToStart       = false,
            bool personal            = false,
            bool percentageComplete  = false,
            bool branchName          = false,
            bool defaultBranch       = false,
            bool unspecifiedBranch   = false,
            bool history             = false,
            bool pinned              = false,
            bool href                = false,
            bool webUrl              = false,
            bool queuePosition       = false,
            bool limitedChangesCount = false,
            bool artifactsDirectory  = false,
            bool statusText          = false,
            bool startEstimate       = false,
            bool waitReason          = false,
            bool startDate           = false,
            bool finishDate          = false,
            bool queuedDate          = false,
            bool settingsHash        = false,
            bool currentSettingsHash = false,
            bool modificationId      = false,
            bool chainModificationId = false,
            bool usedByOtherBuilds   = false,
            // Group fields
            LinksField links                                     = null,
            BuildTypeField buildType                             = null,
            CommentField comment                                 = null,
            TagsField tags                                       = null,
            CommentField pinInfo                                 = null,
            UserField user                                       = null,
            ProgressInfoField running_info                       = null,
            CommentField canceledInfo                            = null,
            TriggeredField triggered                             = null,
            LastChangesField lastChanges                         = null,
            ChangesField changes                                 = null,
            RevisionsField revisions                             = null,
            RevisionField versionedSettingsRevision              = null,
            BuildChangesField artifactDependencyChanges          = null,
            AgentField agent                                     = null,
            CompatibleAgentsField compatibleAgents               = null,
            TestOccurrencesField testOccurrences                 = null,
            ProblemOccurrencesField problemOccurrences           = null,
            ArtifactsField artifacts                             = null,
            PropertiesField properties                           = null,
            PropertiesField resultingProperties                  = null,
            EntriesField attributes                              = null,
            StatisticsField statistics                           = null,
            DatasField metadata                                  = null,
            BuildSnapshotDependenciesField snapshotDependencies  = null,
            BuildArtifactDependenciesField artifactDependencies  = null,
            ArtifactDependenciesField customArtifactDependencies = null,
            ItemsField replacementIds                            = null,
            RelatedField related                                 = null,
            CommentField statusChangeComment                     = null,
            RelatedIssuesField relatedIssues                     = null

            )
        {
            return(new BuildField
            {
                // Fields
                Id = id,
                TaskId = taskId,
                BuildTypeId = buildTypeId,
                BuildTypeInternalId = buildTypeInternalId,
                Number = number,
                Status = status,
                State = state,
                Running = running,
                Composite = composite,
                FailedToStart = failedToStart,
                Personal = personal,
                PercentageComplete = percentageComplete,
                BranchName = branchName,
                DefaultBranch = defaultBranch,
                UnspecifiedBranch = unspecifiedBranch,
                History = history,
                Pinned = pinned,
                Href = href,
                WebUrl = webUrl,
                QueuePosition = queuePosition,
                LimitedChangesCount = limitedChangesCount,
                ArtifactsDirectory = artifactsDirectory,
                StatusText = statusText,
                StartEstimate = startEstimate,
                WaitReason = waitReason,
                StartDate = startDate,
                FinishDate = finishDate,
                QueuedDate = queuedDate,
                SettingsHash = settingsHash,
                CurrentSettingsHash = currentSettingsHash,
                ModificationId = modificationId,
                ChainModificationId = chainModificationId,
                UsedByOtherBuilds = usedByOtherBuilds,
                // GroupFields
                Links = links,
                BuildType = buildType,
                Comment = comment,
                Tags = tags,
                PinInfo = pinInfo,
                User = user,
                Running_info = running_info,
                CanceledInfo = canceledInfo,
                Triggered = triggered,
                LastChanges = lastChanges,
                Changes = changes,
                Revisions = revisions,
                VersionedSettingsRevision = versionedSettingsRevision,
                ArtifactDependencyChanges = artifactDependencyChanges,
                Agent = agent,
                CompatibleAgents = compatibleAgents,
                TestOccurrences = testOccurrences,
                ProblemOccurrences = problemOccurrences,
                Artifacts = artifacts,
                Properties = properties,
                ResultingProperties = resultingProperties,
                Attributes = attributes,
                Statistics = statistics,
                Metadata = metadata,
                SnapshotDependencies = snapshotDependencies,
                ArtifactDependencies = artifactDependencies,
                CustomArtifactDependencies = customArtifactDependencies,
                ReplacementIds = replacementIds,
                Related = related,
                StatusChangeComment = statusChangeComment,
                RelatedIssues = relatedIssues
            });
        }