Ejemplo n.º 1
0
 public static ProblemField WithFields(
     // Fields
     bool id       = false,
     bool type     = false,
     bool identity = false,
     bool href     = false,
     // Group Fields
     MutesField mutes = null,
     InvestigationsField investigations         = null,
     ProblemOccurrencesField problemOccurrences = null
     )
 {
     return(new ProblemField
     {
         // Fields
         Id = id,
         Type = type,
         Identity = identity,
         Href = href,
         // Group Fields
         Mutes = mutes,
         Investigations = investigations,
         ProblemOccurrences = problemOccurrences
     });
 }
Ejemplo n.º 2
0
 public static BuildTypeField WithFields(bool id                                        = false,
                                         bool name                                      = false,
                                         bool number                                    = false,
                                         bool status                                    = false,
                                         bool href                                      = false,
                                         bool projectId                                 = false,
                                         bool projectName                               = false,
                                         bool description                               = false,
                                         bool webUrl                                    = false,
                                         bool personal                                  = false,
                                         bool history                                   = false,
                                         bool cancelled                                 = false,
                                         bool pinned                                    = false,
                                         bool running                                   = false,
                                         ProjectField project                           = null,
                                         TemplateField template                         = null,
                                         ParametersField parameters                     = null,
                                         BuildStepsField buildSteps                     = null,
                                         BuildTriggersField triggers                    = null,
                                         VcsRootEntriesField vcsRootEntries             = null,
                                         ArtifactDependenciesField artifactDependencies = null,
                                         SnapshotDependenciesField snapshotDependencies = null,
                                         BuildsField builds                             = null,
                                         InvestigationsField investigations             = null,
                                         CompatibleAgentsField compatibleAgents         = null)
 {
     return(new BuildTypeField
     {
         Running = running,
         Pinned = pinned,
         History = history,
         Cancelled = cancelled,
         Personal = personal,
         WebUrl = webUrl,
         Description = description,
         ProjectName = projectName,
         ProjectId = projectId,
         Href = href,
         Status = status,
         Number = number,
         Name = name,
         Id = id,
         Project = project,
         Template = template,
         Parameters = parameters,
         BuildSteps = buildSteps,
         Triggers = triggers,
         VcsRootEntries = vcsRootEntries,
         ArtifactDependencies = artifactDependencies,
         SnapshotDependencies = snapshotDependencies,
         Builds = builds,
         Investigations = investigations,
         CompatibleAgents = compatibleAgents
     });
 }
Ejemplo n.º 3
0
        public static TestField WithFields(
            // Fields
            bool id   = false,
            bool name = false,
            bool href = false,
            // Group fields
            MutesField mutes = null,
            InvestigationsField investigations   = null,
            TestOccurrencesField testOccurrences = null
            )
        {
            return(new TestField
            {
                // Fields
                Id = id,
                Name = name,
                Href = href,

                // Group Fields
                Mutes = mutes,
                Investigations = investigations,
                TestOccurrences = testOccurrences
            });
        }