コード例 #1
0
 public static ProjectWrapperField WithFields(ProjectField project = null,
                                              bool count           = true)
 {
     return(new ProjectWrapperField
     {
         Project = project,
         Count = count
     });
 }
コード例 #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
     });
 }
コード例 #3
0
 public static ProblemScopeField WithFields(
     ProjectField project             = null,
     BuildTypeWrapperField buildTypes = null,
     BuildTypeField buildType         = null)
 {
     return(new ProblemScopeField
     {
         Project = project,
         BuildTypes = buildTypes,
         BuildType = buildType
     });
 }
コード例 #4
0
        /*
         *
         * public ArtifactDependencies ArtifactDependencies { get; set; }
         * public SnapshotDependencies SnapshotDependencies { get; set; }
         *
         * public AgentRequirements AgentRequirements { get; set; }
         * public Properties Settings { get; set; }
         *
         */

        #endregion

        #region Public Methods

        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 pinned                        = false,
                                                bool running                       = false,
                                                ProjectField project               = null,
                                                TemplateField template             = null,
                                                ParametersField parameters         = null,
                                                BuildStepsField buildSteps         = null,
                                                BuildTriggersField triggers        = null,
                                                VcsRootEntriesField vcsRootEntries = null)
        {
            return(new BuildTypeField
            {
                Running = running,
                Pinned = pinned,
                History = history,
                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
            });
        }
コード例 #5
0
ファイル: VcsRootField.cs プロジェクト: zabbius/TeamCitySharp
 public static VcsRootField WithFields(PropertiesField properties = null,
                                       ProjectField project       = 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
     });
 }