/// <summary> /// Initializes a new instance of the Run class. /// </summary> /// <param name="id">The resource ID.</param> /// <param name="name">The name of the resource.</param> /// <param name="type">The type of the resource.</param> /// <param name="systemData">Metadata pertaining to creation and last /// modification of the resource.</param> /// <param name="runId">The unique identifier for the run.</param> /// <param name="status">The current status of the run. Possible values /// include: 'Queued', 'Started', 'Running', 'Succeeded', 'Failed', /// 'Canceled', 'Error', 'Timeout'</param> /// <param name="lastUpdatedTime">The last updated time for the /// run.</param> /// <param name="runType">The type of run. Possible values include: /// 'QuickBuild', 'QuickRun', 'AutoBuild', 'AutoRun'</param> /// <param name="agentPoolName">The dedicated agent pool for the /// run.</param> /// <param name="createTime">The time the run was scheduled.</param> /// <param name="startTime">The time the run started.</param> /// <param name="finishTime">The time the run finished.</param> /// <param name="outputImages">The list of all images that were /// generated from the run. This is applicable if the run generates /// base image dependencies.</param> /// <param name="task">The task against which run was /// scheduled.</param> /// <param name="imageUpdateTrigger">The image update trigger that /// caused the run. This is applicable if the task has base image /// trigger configured.</param> /// <param name="sourceTrigger">The source trigger that caused the /// run.</param> /// <param name="timerTrigger">The timer trigger that caused the /// run.</param> /// <param name="platform">The platform properties against which the /// run will happen.</param> /// <param name="agentConfiguration">The machine configuration of the /// run agent.</param> /// <param name="sourceRegistryAuth">The scope of the credentials that /// were used to login to the source registry during this run.</param> /// <param name="customRegistries">The list of custom registries that /// were logged in during this run.</param> /// <param name="runErrorMessage">The error message received from /// backend systems after the run is scheduled.</param> /// <param name="updateTriggerToken">The update trigger token passed /// for the Run.</param> /// <param name="logArtifact">The image description for the log /// artifact.</param> /// <param name="provisioningState">The provisioning state of a run. /// Possible values include: 'Creating', 'Updating', 'Deleting', /// 'Succeeded', 'Failed', 'Canceled'</param> /// <param name="isArchiveEnabled">The value that indicates whether /// archiving is enabled or not.</param> public Run(string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), string runId = default(string), string status = default(string), System.DateTime?lastUpdatedTime = default(System.DateTime?), string runType = default(string), string agentPoolName = default(string), System.DateTime?createTime = default(System.DateTime?), System.DateTime?startTime = default(System.DateTime?), System.DateTime?finishTime = default(System.DateTime?), IList <ImageDescriptor> outputImages = default(IList <ImageDescriptor>), string task = default(string), ImageUpdateTrigger imageUpdateTrigger = default(ImageUpdateTrigger), SourceTriggerDescriptor sourceTrigger = default(SourceTriggerDescriptor), TimerTriggerDescriptor timerTrigger = default(TimerTriggerDescriptor), PlatformProperties platform = default(PlatformProperties), AgentProperties agentConfiguration = default(AgentProperties), string sourceRegistryAuth = default(string), IList <string> customRegistries = default(IList <string>), string runErrorMessage = default(string), string updateTriggerToken = default(string), ImageDescriptor logArtifact = default(ImageDescriptor), string provisioningState = default(string), bool?isArchiveEnabled = default(bool?)) : base(id, name, type, systemData) { RunId = runId; Status = status; LastUpdatedTime = lastUpdatedTime; RunType = runType; AgentPoolName = agentPoolName; CreateTime = createTime; StartTime = startTime; FinishTime = finishTime; OutputImages = outputImages; Task = task; ImageUpdateTrigger = imageUpdateTrigger; SourceTrigger = sourceTrigger; TimerTrigger = timerTrigger; Platform = platform; AgentConfiguration = agentConfiguration; SourceRegistryAuth = sourceRegistryAuth; CustomRegistries = customRegistries; RunErrorMessage = runErrorMessage; UpdateTriggerToken = updateTriggerToken; LogArtifact = logArtifact; ProvisioningState = provisioningState; IsArchiveEnabled = isArchiveEnabled; CustomInit(); }
/// <summary> /// Initializes a new instance of the TaskUpdateParameters class. /// </summary> /// <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="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="tags">The ARM resource tags.</param> public TaskUpdateParameters(string status = default(string), PlatformUpdateParameters platform = default(PlatformUpdateParameters), AgentProperties agentConfiguration = default(AgentProperties), int?timeout = default(int?), TaskStepUpdateParameters step = default(TaskStepUpdateParameters), TriggerUpdateParameters trigger = default(TriggerUpdateParameters), IDictionary <string, string> tags = default(IDictionary <string, string>)) { Status = status; Platform = platform; AgentConfiguration = agentConfiguration; Timeout = timeout; Step = step; Trigger = trigger; Tags = tags; CustomInit(); }
/// <summary> /// Initializes a new instance of the EncodedTaskRunRequest class. /// </summary> /// <param name="encodedTaskContent">Base64 encoded value of the /// template/definition file content.</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="encodedValuesContent">Base64 encoded value of the /// parameters/values file content.</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 repoistory. /// If it is relative URL, the relative path should be obtained from /// calling listBuildSourceUploadUrl API.</param> public EncodedTaskRunRequest(string encodedTaskContent, PlatformProperties platform, bool?isArchiveEnabled = default(bool?), string encodedValuesContent = default(string), IList <SetValue> values = default(IList <SetValue>), int?timeout = default(int?), AgentProperties agentConfiguration = default(AgentProperties), string sourceLocation = default(string)) : base(isArchiveEnabled) { EncodedTaskContent = encodedTaskContent; EncodedValuesContent = encodedValuesContent; Values = values; Timeout = timeout; Platform = platform; AgentConfiguration = agentConfiguration; SourceLocation = sourceLocation; 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="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 repoistory. /// If it is relative URL, the relative path should be obtained from /// calling listBuildSourceUploadUrl API.</param> public FileTaskRunRequest(string taskFilePath, PlatformProperties platform, bool?isArchiveEnabled = default(bool?), string valuesFilePath = default(string), IList <SetValue> values = default(IList <SetValue>), int?timeout = default(int?), AgentProperties agentConfiguration = default(AgentProperties), string sourceLocation = default(string)) : base(isArchiveEnabled) { TaskFilePath = taskFilePath; ValuesFilePath = valuesFilePath; Values = values; Timeout = timeout; Platform = platform; AgentConfiguration = agentConfiguration; SourceLocation = sourceLocation; CustomInit(); }
/// <summary> /// Initializes a new instance of the Task class. /// </summary> /// <param name="location">The location of the resource. This cannot be /// changed after the resource is created.</param> /// <param name="platform">The platform properties against which the /// run has to happen.</param> /// <param name="step">The properties of a task step.</param> /// <param name="id">The resource ID.</param> /// <param name="name">The name of the resource.</param> /// <param name="type">The type of the resource.</param> /// <param name="tags">The tags of the resource.</param> /// <param name="provisioningState">The provisioning state of the task. /// Possible values include: 'Creating', 'Updating', 'Deleting', /// 'Succeeded', 'Failed', 'Canceled'</param> /// <param name="creationDate">The creation date of task.</param> /// <param name="status">The current status of task. Possible values /// include: 'Disabled', 'Enabled'</param> /// <param name="agentConfiguration">The machine configuration of the /// run agent.</param> /// <param name="timeout">Run timeout in seconds.</param> /// <param name="trigger">The properties that describe all triggers for /// the task.</param> public Task(string location, PlatformProperties platform, TaskStepProperties step, string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), string provisioningState = default(string), System.DateTime?creationDate = default(System.DateTime?), string status = default(string), AgentProperties agentConfiguration = default(AgentProperties), int?timeout = default(int?), TriggerProperties trigger = default(TriggerProperties)) : base(location, id, name, type, tags) { ProvisioningState = provisioningState; CreationDate = creationDate; Status = status; Platform = platform; AgentConfiguration = agentConfiguration; Timeout = timeout; Step = step; Trigger = trigger; CustomInit(); }
/// <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(); }
/// <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="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 repoistory. /// If it is relative URL, the relative path should be obtained from /// calling listBuildSourceUploadUrl API.</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?), IList <Argument> arguments = default(IList <Argument>), int?timeout = default(int?), AgentProperties agentConfiguration = default(AgentProperties), string sourceLocation = default(string)) : base(isArchiveEnabled) { ImageNames = imageNames; IsPushEnabled = isPushEnabled; NoCache = noCache; DockerFilePath = dockerFilePath; Arguments = arguments; Timeout = timeout; Platform = platform; AgentConfiguration = agentConfiguration; SourceLocation = sourceLocation; CustomInit(); }
/// <summary> /// Initializes a new instance of the Task class. /// </summary> /// <param name="location">The location of the resource. This cannot be /// changed after the resource is created.</param> /// <param name="id">The resource ID.</param> /// <param name="name">The name of the resource.</param> /// <param name="type">The type of the resource.</param> /// <param name="tags">The tags of the resource.</param> /// <param name="systemData">Metadata pertaining to creation and last /// modification of the resource.</param> /// <param name="identity">Identity for the resource.</param> /// <param name="provisioningState">The provisioning state of the task. /// Possible values include: 'Creating', 'Updating', 'Deleting', /// 'Succeeded', 'Failed', 'Canceled'</param> /// <param name="creationDate">The creation date of task.</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 of a task step.</param> /// <param name="trigger">The properties that describe all triggers for /// the task.</param> /// <param name="credentials">The properties that describes a set of /// credentials that will be used when this run is invoked.</param> /// <param name="logTemplate">The template that describes the /// repository and tag information for run log artifact.</param> /// <param name="isSystemTask">The value of this property indicates /// whether the task resource is system task or not.</param> public Task(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), SystemData systemData = default(SystemData), IdentityProperties identity = default(IdentityProperties), string provisioningState = default(string), System.DateTime?creationDate = default(System.DateTime?), string status = default(string), PlatformProperties platform = default(PlatformProperties), AgentProperties agentConfiguration = default(AgentProperties), string agentPoolName = default(string), int?timeout = default(int?), TaskStepProperties step = default(TaskStepProperties), TriggerProperties trigger = default(TriggerProperties), Credentials credentials = default(Credentials), string logTemplate = default(string), bool?isSystemTask = default(bool?)) : base(location, id, name, type, tags, systemData) { Identity = identity; ProvisioningState = provisioningState; CreationDate = creationDate; Status = status; Platform = platform; AgentConfiguration = agentConfiguration; AgentPoolName = agentPoolName; Timeout = timeout; Step = step; Trigger = trigger; Credentials = credentials; LogTemplate = logTemplate; IsSystemTask = isSystemTask; CustomInit(); }
/// <summary> /// Initializes a new instance of the Run class. /// </summary> /// <param name="id">The resource ID.</param> /// <param name="name">The name of the resource.</param> /// <param name="type">The type of the resource.</param> /// <param name="runId">The unique identifier for the run.</param> /// <param name="status">The current status of the run. Possible values /// include: 'Queued', 'Started', 'Running', 'Succeeded', 'Failed', /// 'Canceled', 'Error', 'Timeout'</param> /// <param name="lastUpdatedTime">The last updated time for the /// run.</param> /// <param name="runType">The type of run. Possible values include: /// 'QuickBuild', 'QuickRun', 'AutoBuild', 'AutoRun'</param> /// <param name="createTime">The time the run was scheduled.</param> /// <param name="startTime">The time the run started.</param> /// <param name="finishTime">The time the run finished.</param> /// <param name="outputImages">The list of all images that were /// generated from the run. This is applicable if the run generates /// base image dependencies.</param> /// <param name="task">The task against which run was /// scheduled.</param> /// <param name="imageUpdateTrigger">The image update trigger that /// caused the run. This is applicable if the task has base image /// trigger configured.</param> /// <param name="sourceTrigger">The source trigger that caused the /// run.</param> /// <param name="isArchiveEnabled">The value that indicates whether /// archiving is enabled or not.</param> /// <param name="platform">The platform properties against which the /// run will happen.</param> /// <param name="agentConfiguration">The machine configuration of the /// run agent.</param> /// <param name="provisioningState">The provisioning state of a run. /// Possible values include: 'Creating', 'Updating', 'Deleting', /// 'Succeeded', 'Failed', 'Canceled'</param> public Run(string id = default(string), string name = default(string), string type = default(string), string runId = default(string), string status = default(string), System.DateTime?lastUpdatedTime = default(System.DateTime?), string runType = default(string), System.DateTime?createTime = default(System.DateTime?), System.DateTime?startTime = default(System.DateTime?), System.DateTime?finishTime = default(System.DateTime?), IList <ImageDescriptor> outputImages = default(IList <ImageDescriptor>), string task = default(string), ImageUpdateTrigger imageUpdateTrigger = default(ImageUpdateTrigger), SourceTriggerDescriptor sourceTrigger = default(SourceTriggerDescriptor), bool?isArchiveEnabled = default(bool?), PlatformProperties platform = default(PlatformProperties), AgentProperties agentConfiguration = default(AgentProperties), string provisioningState = default(string)) : base(id, name, type) { RunId = runId; Status = status; LastUpdatedTime = lastUpdatedTime; RunType = runType; CreateTime = createTime; StartTime = startTime; FinishTime = finishTime; OutputImages = outputImages; Task = task; ImageUpdateTrigger = imageUpdateTrigger; SourceTrigger = sourceTrigger; IsArchiveEnabled = isArchiveEnabled; Platform = platform; AgentConfiguration = agentConfiguration; ProvisioningState = provisioningState; CustomInit(); }