/// <summary>
 /// Initializes a new instance of the TaskUpdateParameters class.
 /// </summary>
 /// <param name="identity">Identity for the resource.</param>
 /// <param name="status">The current status of task. Possible values
 /// include: 'Disabled', 'Enabled'</param>
 /// <param name="platform">The platform properties against which the
 /// run has to happen.</param>
 /// <param name="agentConfiguration">The machine configuration of the
 /// run agent.</param>
 /// <param name="agentPoolName">The dedicated agent pool for the
 /// task.</param>
 /// <param name="timeout">Run timeout in seconds.</param>
 /// <param name="step">The properties for updating a task step.</param>
 /// <param name="trigger">The properties for updating trigger
 /// properties.</param>
 /// <param name="credentials">The parameters that describes a set of
 /// credentials that will be used when this run is invoked.</param>
 /// <param name="tags">The ARM resource tags.</param>
 public TaskUpdateParameters(IdentityProperties identity = default(IdentityProperties), string status = default(string), PlatformUpdateParameters platform = default(PlatformUpdateParameters), AgentProperties agentConfiguration = default(AgentProperties), string agentPoolName = default(string), int?timeout = default(int?), TaskStepUpdateParameters step = default(TaskStepUpdateParameters), TriggerUpdateParameters trigger = default(TriggerUpdateParameters), Credentials credentials = default(Credentials), IDictionary <string, string> tags = default(IDictionary <string, string>))
 {
     Identity           = identity;
     Status             = status;
     Platform           = platform;
     AgentConfiguration = agentConfiguration;
     AgentPoolName      = agentPoolName;
     Timeout            = timeout;
     Step        = step;
     Trigger     = trigger;
     Credentials = credentials;
     Tags        = tags;
     CustomInit();
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the DockerBuildRequest class.
 /// </summary>
 /// <param name="dockerFilePath">The Docker file path relative to the
 /// source location.</param>
 /// <param name="platform">The platform properties against which the
 /// run has to happen.</param>
 /// <param name="isArchiveEnabled">The value that indicates whether
 /// archiving is enabled for the run or not.</param>
 /// <param name="imageNames">The fully qualified image names including
 /// the repository and tag.</param>
 /// <param name="isPushEnabled">The value of this property indicates
 /// whether the image built should be pushed to the registry or
 /// not.</param>
 /// <param name="noCache">The value of this property indicates whether
 /// the image cache is enabled or not.</param>
 /// <param name="target">The name of the target build stage for the
 /// docker build.</param>
 /// <param name="arguments">The collection of override arguments to be
 /// used when executing the run.</param>
 /// <param name="timeout">Run timeout in seconds.</param>
 /// <param name="agentConfiguration">The machine configuration of the
 /// run agent.</param>
 /// <param name="sourceLocation">The URL(absolute or relative) of the
 /// source context. It can be an URL to a tar or git repository.
 /// If it is relative URL, the relative path should be obtained from
 /// calling listBuildSourceUploadUrl API.</param>
 /// <param name="credentials">The properties that describes a set of
 /// credentials that will be used when this run is invoked.</param>
 public DockerBuildRequest(string dockerFilePath, PlatformProperties platform, bool?isArchiveEnabled = default(bool?), IList <string> imageNames = default(IList <string>), bool?isPushEnabled = default(bool?), bool?noCache = default(bool?), string target = default(string), IList <Argument> arguments = default(IList <Argument>), int?timeout = default(int?), AgentProperties agentConfiguration = default(AgentProperties), string sourceLocation = default(string), Credentials credentials = default(Credentials))
     : base(isArchiveEnabled)
 {
     ImageNames         = imageNames;
     IsPushEnabled      = isPushEnabled;
     NoCache            = noCache;
     DockerFilePath     = dockerFilePath;
     Target             = target;
     Arguments          = arguments;
     Timeout            = timeout;
     Platform           = platform;
     AgentConfiguration = agentConfiguration;
     SourceLocation     = sourceLocation;
     Credentials        = credentials;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the FileTaskRunRequest class.
 /// </summary>
 /// <param name="taskFilePath">The template/definition file path
 /// relative to the source.</param>
 /// <param name="platform">The platform properties against which the
 /// run has to happen.</param>
 /// <param name="isArchiveEnabled">The value that indicates whether
 /// archiving is enabled for the run or not.</param>
 /// <param name="agentPoolName">The dedicated agent pool for the
 /// run.</param>
 /// <param name="valuesFilePath">The values/parameters file path
 /// relative to the source.</param>
 /// <param name="values">The collection of overridable values that can
 /// be passed when running a task.</param>
 /// <param name="timeout">Run timeout in seconds.</param>
 /// <param name="agentConfiguration">The machine configuration of the
 /// run agent.</param>
 /// <param name="sourceLocation">The URL(absolute or relative) of the
 /// source context. It can be an URL to a tar or git repository.
 /// If it is relative URL, the relative path should be obtained from
 /// calling listBuildSourceUploadUrl API.</param>
 /// <param name="credentials">The properties that describes a set of
 /// credentials that will be used when this run is invoked.</param>
 public FileTaskRunRequest(string taskFilePath, PlatformProperties platform, bool?isArchiveEnabled = default(bool?), string agentPoolName = default(string), string valuesFilePath = default(string), IList <SetValue> values = default(IList <SetValue>), int?timeout = default(int?), AgentProperties agentConfiguration = default(AgentProperties), string sourceLocation = default(string), Credentials credentials = default(Credentials))
     : base(isArchiveEnabled, agentPoolName)
 {
     TaskFilePath       = taskFilePath;
     ValuesFilePath     = valuesFilePath;
     Values             = values;
     Timeout            = timeout;
     Platform           = platform;
     AgentConfiguration = agentConfiguration;
     SourceLocation     = sourceLocation;
     Credentials        = credentials;
     CustomInit();
 }