diff --git a/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/ITaskRunsOperations.cs b/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/ITaskRunsOperations.cs
index a0d3336155e9..d59f582b399c 100644
--- a/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/ITaskRunsOperations.cs
+++ b/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/ITaskRunsOperations.cs
@@ -33,7 +33,7 @@ public partial interface ITaskRunsOperations
/// The name of the container registry.
///
///
- /// The run request name.
+ /// The name of the task run.
///
///
/// The headers that will be added to request.
@@ -63,7 +63,7 @@ public partial interface ITaskRunsOperations
/// The name of the container registry.
///
///
- /// The name of task run.
+ /// The name of the task run.
///
///
/// The parameters of a run that needs to scheduled.
@@ -95,7 +95,7 @@ public partial interface ITaskRunsOperations
/// The name of the container registry.
///
///
- /// The task run name.
+ /// The name of the task run.
///
///
/// The headers that will be added to request.
@@ -121,7 +121,7 @@ public partial interface ITaskRunsOperations
/// The name of the container registry.
///
///
- /// The task run name.
+ /// The name of the task run.
///
///
/// The parameters for updating a task run.
@@ -154,7 +154,7 @@ public partial interface ITaskRunsOperations
/// The name of the container registry.
///
///
- /// The run request name.
+ /// The name of the task run.
///
///
/// The headers that will be added to request.
@@ -210,7 +210,7 @@ public partial interface ITaskRunsOperations
/// The name of the container registry.
///
///
- /// The name of task run.
+ /// The name of the task run.
///
///
/// The parameters of a run that needs to scheduled.
@@ -242,7 +242,7 @@ public partial interface ITaskRunsOperations
/// The name of the container registry.
///
///
- /// The task run name.
+ /// The name of the task run.
///
///
/// The headers that will be added to request.
@@ -268,7 +268,7 @@ public partial interface ITaskRunsOperations
/// The name of the container registry.
///
///
- /// The task run name.
+ /// The name of the task run.
///
///
/// The parameters for updating a task run.
diff --git a/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/Models/DockerBuildRequest.cs b/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/Models/DockerBuildRequest.cs
index 95987281ab3e..2b0288b3f924 100644
--- a/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/Models/DockerBuildRequest.cs
+++ b/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/Models/DockerBuildRequest.cs
@@ -40,6 +40,8 @@ public DockerBuildRequest()
/// archiving is enabled for the run or not.
/// The dedicated agent pool for the
/// run.
+ /// The template that describes the
+ /// repository and tag information for run log artifact.
/// The fully qualified image names including
/// the repository and tag.
/// The value of this property indicates
@@ -60,8 +62,8 @@ public DockerBuildRequest()
/// calling listBuildSourceUploadUrl API.
/// The properties that describes a set of
/// credentials that will be used when this run is invoked.
- public DockerBuildRequest(string dockerFilePath, PlatformProperties platform, bool? isArchiveEnabled = default(bool?), string agentPoolName = default(string), IList imageNames = default(IList), bool? isPushEnabled = default(bool?), bool? noCache = default(bool?), string target = default(string), IList arguments = default(IList), int? timeout = default(int?), AgentProperties agentConfiguration = default(AgentProperties), string sourceLocation = default(string), Credentials credentials = default(Credentials))
- : base(isArchiveEnabled, agentPoolName)
+ public DockerBuildRequest(string dockerFilePath, PlatformProperties platform, bool? isArchiveEnabled = default(bool?), string agentPoolName = default(string), string logTemplate = default(string), IList imageNames = default(IList), bool? isPushEnabled = default(bool?), bool? noCache = default(bool?), string target = default(string), IList arguments = default(IList), int? timeout = default(int?), AgentProperties agentConfiguration = default(AgentProperties), string sourceLocation = default(string), Credentials credentials = default(Credentials))
+ : base(isArchiveEnabled, agentPoolName, logTemplate)
{
ImageNames = imageNames;
IsPushEnabled = isPushEnabled;
diff --git a/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/Models/EncodedTaskRunRequest.cs b/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/Models/EncodedTaskRunRequest.cs
index 16d681bed82e..1446871fdafb 100644
--- a/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/Models/EncodedTaskRunRequest.cs
+++ b/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/Models/EncodedTaskRunRequest.cs
@@ -40,6 +40,8 @@ public EncodedTaskRunRequest()
/// archiving is enabled for the run or not.
/// The dedicated agent pool for the
/// run.
+ /// The template that describes the
+ /// repository and tag information for run log artifact.
/// Base64 encoded value of the
/// parameters/values file content.
/// The collection of overridable values that can
@@ -53,8 +55,8 @@ public EncodedTaskRunRequest()
/// calling listBuildSourceUploadUrl API.
/// The properties that describes a set of
/// credentials that will be used when this run is invoked.
- public EncodedTaskRunRequest(string encodedTaskContent, PlatformProperties platform, bool? isArchiveEnabled = default(bool?), string agentPoolName = default(string), string encodedValuesContent = default(string), IList values = default(IList), int? timeout = default(int?), AgentProperties agentConfiguration = default(AgentProperties), string sourceLocation = default(string), Credentials credentials = default(Credentials))
- : base(isArchiveEnabled, agentPoolName)
+ public EncodedTaskRunRequest(string encodedTaskContent, PlatformProperties platform, bool? isArchiveEnabled = default(bool?), string agentPoolName = default(string), string logTemplate = default(string), string encodedValuesContent = default(string), IList values = default(IList), int? timeout = default(int?), AgentProperties agentConfiguration = default(AgentProperties), string sourceLocation = default(string), Credentials credentials = default(Credentials))
+ : base(isArchiveEnabled, agentPoolName, logTemplate)
{
EncodedTaskContent = encodedTaskContent;
EncodedValuesContent = encodedValuesContent;
diff --git a/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/Models/FileTaskRunRequest.cs b/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/Models/FileTaskRunRequest.cs
index b74153c8b378..167e780e7407 100644
--- a/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/Models/FileTaskRunRequest.cs
+++ b/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/Models/FileTaskRunRequest.cs
@@ -40,6 +40,8 @@ public FileTaskRunRequest()
/// archiving is enabled for the run or not.
/// The dedicated agent pool for the
/// run.
+ /// The template that describes the
+ /// repository and tag information for run log artifact.
/// The values/parameters file path
/// relative to the source.
/// The collection of overridable values that can
@@ -53,8 +55,8 @@ public FileTaskRunRequest()
/// calling listBuildSourceUploadUrl API.
/// The properties that describes a set of
/// credentials that will be used when this run is invoked.
- public FileTaskRunRequest(string taskFilePath, PlatformProperties platform, bool? isArchiveEnabled = default(bool?), string agentPoolName = default(string), string valuesFilePath = default(string), IList values = default(IList), int? timeout = default(int?), AgentProperties agentConfiguration = default(AgentProperties), string sourceLocation = default(string), Credentials credentials = default(Credentials))
- : base(isArchiveEnabled, agentPoolName)
+ public FileTaskRunRequest(string taskFilePath, PlatformProperties platform, bool? isArchiveEnabled = default(bool?), string agentPoolName = default(string), string logTemplate = default(string), string valuesFilePath = default(string), IList values = default(IList), int? timeout = default(int?), AgentProperties agentConfiguration = default(AgentProperties), string sourceLocation = default(string), Credentials credentials = default(Credentials))
+ : base(isArchiveEnabled, agentPoolName, logTemplate)
{
TaskFilePath = taskFilePath;
ValuesFilePath = valuesFilePath;
diff --git a/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/Models/Run.cs b/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/Models/Run.cs
index 6bbd29be30e5..e2364577b4c0 100644
--- a/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/Models/Run.cs
+++ b/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/Models/Run.cs
@@ -74,12 +74,14 @@ public Run()
/// backend systems after the run is scheduled.
/// The update trigger token passed
/// for the Run.
+ /// The image description for the log
+ /// artifact.
/// The provisioning state of a run.
/// Possible values include: 'Creating', 'Updating', 'Deleting',
/// 'Succeeded', 'Failed', 'Canceled'
/// The value that indicates whether
/// archiving is enabled or not.
- 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), string agentPoolName = default(string), System.DateTime? createTime = default(System.DateTime?), System.DateTime? startTime = default(System.DateTime?), System.DateTime? finishTime = default(System.DateTime?), IList outputImages = default(IList), 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 customRegistries = default(IList), string runErrorMessage = default(string), string updateTriggerToken = default(string), string provisioningState = default(string), bool? isArchiveEnabled = default(bool?))
+ 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), string agentPoolName = default(string), System.DateTime? createTime = default(System.DateTime?), System.DateTime? startTime = default(System.DateTime?), System.DateTime? finishTime = default(System.DateTime?), IList outputImages = default(IList), 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 customRegistries = default(IList), string runErrorMessage = default(string), string updateTriggerToken = default(string), ImageDescriptor logArtifact = default(ImageDescriptor), string provisioningState = default(string), bool? isArchiveEnabled = default(bool?))
: base(id, name, type)
{
RunId = runId;
@@ -101,6 +103,7 @@ public Run()
CustomRegistries = customRegistries;
RunErrorMessage = runErrorMessage;
UpdateTriggerToken = updateTriggerToken;
+ LogArtifact = logArtifact;
ProvisioningState = provisioningState;
IsArchiveEnabled = isArchiveEnabled;
CustomInit();
@@ -235,6 +238,12 @@ public Run()
[JsonProperty(PropertyName = "properties.updateTriggerToken")]
public string UpdateTriggerToken { get; set; }
+ ///
+ /// Gets the image description for the log artifact.
+ ///
+ [JsonProperty(PropertyName = "properties.logArtifact")]
+ public ImageDescriptor LogArtifact { get; private set; }
+
///
/// Gets or sets the provisioning state of a run. Possible values
/// include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed',
diff --git a/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/Models/RunRequest.cs b/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/Models/RunRequest.cs
index 8051516beb11..243c5c39b2a1 100644
--- a/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/Models/RunRequest.cs
+++ b/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/Models/RunRequest.cs
@@ -33,10 +33,13 @@ public RunRequest()
/// archiving is enabled for the run or not.
/// The dedicated agent pool for the
/// run.
- public RunRequest(bool? isArchiveEnabled = default(bool?), string agentPoolName = default(string))
+ /// The template that describes the
+ /// repository and tag information for run log artifact.
+ public RunRequest(bool? isArchiveEnabled = default(bool?), string agentPoolName = default(string), string logTemplate = default(string))
{
IsArchiveEnabled = isArchiveEnabled;
AgentPoolName = agentPoolName;
+ LogTemplate = logTemplate;
CustomInit();
}
@@ -58,5 +61,12 @@ public RunRequest()
[JsonProperty(PropertyName = "agentPoolName")]
public string AgentPoolName { get; set; }
+ ///
+ /// Gets or sets the template that describes the repository and tag
+ /// information for run log artifact.
+ ///
+ [JsonProperty(PropertyName = "logTemplate")]
+ public string LogTemplate { get; set; }
+
}
}
diff --git a/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/Models/Task.cs b/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/Models/Task.cs
index 71b894648dd5..d4b00de1961a 100644
--- a/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/Models/Task.cs
+++ b/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/Models/Task.cs
@@ -37,9 +37,6 @@ public Task()
///
/// The location of the resource. This cannot be
/// changed after the resource is created.
- /// The platform properties against which the
- /// run has to happen.
- /// The properties of a task step.
/// The resource ID.
/// The name of the resource.
/// The type of the resource.
@@ -51,16 +48,23 @@ public Task()
/// The creation date of task.
/// The current status of task. Possible values
/// include: 'Disabled', 'Enabled'
+ /// The platform properties against which the
+ /// run has to happen.
/// The machine configuration of the
/// run agent.
/// The dedicated agent pool for the
/// task.
/// Run timeout in seconds.
+ /// The properties of a task step.
/// The properties that describe all triggers for
/// the task.
/// The properties that describes a set of
/// credentials that will be used when this run is invoked.
- public Task(string location, PlatformProperties platform, TaskStepProperties step, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), IdentityProperties identity = default(IdentityProperties), string provisioningState = default(string), System.DateTime? creationDate = default(System.DateTime?), string status = default(string), AgentProperties agentConfiguration = default(AgentProperties), string agentPoolName = default(string), int? timeout = default(int?), TriggerProperties trigger = default(TriggerProperties), Credentials credentials = default(Credentials))
+ /// The template that describes the
+ /// repository and tag information for run log artifact.
+ /// The value of this property indicates
+ /// whether the task resource is system task or not.
+ public Task(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), 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)
{
Identity = identity;
@@ -74,6 +78,8 @@ public Task()
Step = step;
Trigger = trigger;
Credentials = credentials;
+ LogTemplate = logTemplate;
+ IsSystemTask = isSystemTask;
CustomInit();
}
@@ -154,6 +160,20 @@ public Task()
[JsonProperty(PropertyName = "properties.credentials")]
public Credentials Credentials { get; set; }
+ ///
+ /// Gets or sets the template that describes the repository and tag
+ /// information for run log artifact.
+ ///
+ [JsonProperty(PropertyName = "properties.logTemplate")]
+ public string LogTemplate { get; set; }
+
+ ///
+ /// Gets or sets the value of this property indicates whether the task
+ /// resource is system task or not.
+ ///
+ [JsonProperty(PropertyName = "properties.isSystemTask")]
+ public bool? IsSystemTask { get; set; }
+
///
/// Validate the object.
///
@@ -163,14 +183,6 @@ public Task()
public override void Validate()
{
base.Validate();
- if (Platform == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "Platform");
- }
- if (Step == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "Step");
- }
if (Platform != null)
{
Platform.Validate();
diff --git a/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/Models/TaskRun.cs b/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/Models/TaskRun.cs
index 8a5fc76b53e8..c9e0215cad81 100644
--- a/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/Models/TaskRun.cs
+++ b/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/Models/TaskRun.cs
@@ -13,8 +13,6 @@ namespace Microsoft.Azure.Management.ContainerRegistry.Models
using Microsoft.Rest;
using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
- using System.Collections;
- using System.Collections.Generic;
using System.Linq;
///
@@ -22,7 +20,7 @@ namespace Microsoft.Azure.Management.ContainerRegistry.Models
/// The task run will have the information of request and result of a run.
///
[Rest.Serialization.JsonTransformation]
- public partial class TaskRun : Resource
+ public partial class TaskRun : ProxyResource
{
///
/// Initializes a new instance of the TaskRun class.
@@ -35,12 +33,9 @@ public TaskRun()
///
/// Initializes a new instance of the TaskRun class.
///
- /// The location of the resource. This cannot be
- /// changed after the resource is created.
/// The resource ID.
/// The name of the resource.
/// The type of the resource.
- /// The tags of the resource.
/// Identity for the resource.
/// The provisioning state of this task
/// run. Possible values include: 'Creating', 'Updating', 'Deleting',
@@ -50,14 +45,16 @@ public TaskRun()
/// The result of this task run
/// How the run should be forced to rerun
/// even if the run request configuration has not changed
- public TaskRun(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), IdentityProperties identity = default(IdentityProperties), string provisioningState = default(string), RunRequest runRequest = default(RunRequest), Run runResult = default(Run), string forceUpdateTag = default(string))
- : base(location, id, name, type, tags)
+ /// The location of the resource
+ public TaskRun(string id = default(string), string name = default(string), string type = default(string), IdentityProperties identity = default(IdentityProperties), string provisioningState = default(string), RunRequest runRequest = default(RunRequest), Run runResult = default(Run), string forceUpdateTag = default(string), string location = default(string))
+ : base(id, name, type)
{
Identity = identity;
ProvisioningState = provisioningState;
RunRequest = runRequest;
RunResult = runResult;
ForceUpdateTag = forceUpdateTag;
+ Location = location;
CustomInit();
}
@@ -99,15 +96,20 @@ public TaskRun()
[JsonProperty(PropertyName = "properties.forceUpdateTag")]
public string ForceUpdateTag { get; set; }
+ ///
+ /// Gets or sets the location of the resource
+ ///
+ [JsonProperty(PropertyName = "location")]
+ public string Location { get; set; }
+
///
/// Validate the object.
///
///
/// Thrown if validation fails
///
- public override void Validate()
+ public virtual void Validate()
{
- base.Validate();
if (RunResult != null)
{
RunResult.Validate();
diff --git a/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/Models/TaskRunRequest.cs b/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/Models/TaskRunRequest.cs
index b73584fb8945..5485e038c367 100644
--- a/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/Models/TaskRunRequest.cs
+++ b/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/Models/TaskRunRequest.cs
@@ -36,10 +36,12 @@ public TaskRunRequest()
/// archiving is enabled for the run or not.
/// The dedicated agent pool for the
/// run.
+ /// The template that describes the
+ /// repository and tag information for run log artifact.
/// Set of overridable
/// parameters that can be passed when running a Task.
- public TaskRunRequest(string taskId, bool? isArchiveEnabled = default(bool?), string agentPoolName = default(string), OverrideTaskStepProperties overrideTaskStepProperties = default(OverrideTaskStepProperties))
- : base(isArchiveEnabled, agentPoolName)
+ public TaskRunRequest(string taskId, bool? isArchiveEnabled = default(bool?), string agentPoolName = default(string), string logTemplate = default(string), OverrideTaskStepProperties overrideTaskStepProperties = default(OverrideTaskStepProperties))
+ : base(isArchiveEnabled, agentPoolName, logTemplate)
{
TaskId = taskId;
OverrideTaskStepProperties = overrideTaskStepProperties;
diff --git a/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/Models/TaskRunUpdateParameters.cs b/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/Models/TaskRunUpdateParameters.cs
index 82dc85f41db3..b8cfef8aa6c5 100644
--- a/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/Models/TaskRunUpdateParameters.cs
+++ b/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/Models/TaskRunUpdateParameters.cs
@@ -39,12 +39,14 @@ public TaskRunUpdateParameters()
/// run
/// How the run should be forced to rerun
/// even if the run request configuration has not changed
+ /// The location of the resource
/// The ARM resource tags.
- public TaskRunUpdateParameters(IdentityProperties identity = default(IdentityProperties), RunRequest runRequest = default(RunRequest), string forceUpdateTag = default(string), IDictionary tags = default(IDictionary))
+ public TaskRunUpdateParameters(IdentityProperties identity = default(IdentityProperties), RunRequest runRequest = default(RunRequest), string forceUpdateTag = default(string), string location = default(string), IDictionary tags = default(IDictionary))
{
Identity = identity;
RunRequest = runRequest;
ForceUpdateTag = forceUpdateTag;
+ Location = location;
Tags = tags;
CustomInit();
}
@@ -73,6 +75,12 @@ public TaskRunUpdateParameters()
[JsonProperty(PropertyName = "properties.forceUpdateTag")]
public string ForceUpdateTag { get; set; }
+ ///
+ /// Gets or sets the location of the resource
+ ///
+ [JsonProperty(PropertyName = "location")]
+ public string Location { get; set; }
+
///
/// Gets or sets the ARM resource tags.
///
diff --git a/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/Models/TaskUpdateParameters.cs b/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/Models/TaskUpdateParameters.cs
index 4fd793ec4095..21770ffa1a04 100644
--- a/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/Models/TaskUpdateParameters.cs
+++ b/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/Models/TaskUpdateParameters.cs
@@ -49,8 +49,10 @@ public TaskUpdateParameters()
/// properties.
/// The parameters that describes a set of
/// credentials that will be used when this run is invoked.
+ /// The template that describes the
+ /// repository and tag information for run log artifact.
/// The ARM resource tags.
- 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 tags = default(IDictionary))
+ 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), string logTemplate = default(string), IDictionary tags = default(IDictionary))
{
Identity = identity;
Status = status;
@@ -61,6 +63,7 @@ public TaskUpdateParameters()
Step = step;
Trigger = trigger;
Credentials = credentials;
+ LogTemplate = logTemplate;
Tags = tags;
CustomInit();
}
@@ -127,6 +130,13 @@ public TaskUpdateParameters()
[JsonProperty(PropertyName = "properties.credentials")]
public Credentials Credentials { get; set; }
+ ///
+ /// Gets or sets the template that describes the repository and tag
+ /// information for run log artifact.
+ ///
+ [JsonProperty(PropertyName = "properties.logTemplate")]
+ public string LogTemplate { get; set; }
+
///
/// Gets or sets the ARM resource tags.
///
diff --git a/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/SdkInfo_ContainerRegistryManagementClient.cs b/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/SdkInfo_ContainerRegistryManagementClient.cs
index af125e4ed8cf..b3e732b41408 100644
--- a/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/SdkInfo_ContainerRegistryManagementClient.cs
+++ b/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/SdkInfo_ContainerRegistryManagementClient.cs
@@ -38,16 +38,5 @@ public static IEnumerable> ApiInfo_ContainerRegist
}.AsEnumerable();
}
}
- // BEGIN: Code Generation Metadata Section
- public static readonly String AutoRestVersion = "v2";
- public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4413";
- public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/containerregistry/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=C:\\dev\\azure-sdk-for-net\\sdk";
- public static readonly String GithubForkName = "Azure";
- public static readonly String GithubBranchName = "master";
- public static readonly String GithubCommidId = "3903ebec90f50617c36911b25d499a7ae867b740";
- public static readonly String CodeGenerationErrors = "";
- public static readonly String GithubRepoName = "azure-rest-api-specs";
- // END: Code Generation Metadata Section
}
}
-
diff --git a/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/TaskRunsOperations.cs b/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/TaskRunsOperations.cs
index 3d15323d10c3..03d32d56b094 100644
--- a/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/TaskRunsOperations.cs
+++ b/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/TaskRunsOperations.cs
@@ -59,7 +59,7 @@ internal TaskRunsOperations(ContainerRegistryManagementClient client)
/// The name of the container registry.
///
///
- /// The run request name.
+ /// The name of the task run.
///
///
/// Headers that will be added to request.
@@ -122,6 +122,21 @@ internal TaskRunsOperations(ContainerRegistryManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "taskRunName");
}
+ if (taskRunName != null)
+ {
+ if (taskRunName.Length > 50)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "taskRunName", 50);
+ }
+ if (taskRunName.Length < 5)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "taskRunName", 5);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(taskRunName, "^[a-zA-Z0-9-]*$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "taskRunName", "^[a-zA-Z0-9-]*$");
+ }
+ }
string apiVersion = "2019-06-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
@@ -279,7 +294,7 @@ internal TaskRunsOperations(ContainerRegistryManagementClient client)
/// The name of the container registry.
///
///
- /// The name of task run.
+ /// The name of the task run.
///
///
/// The parameters of a run that needs to scheduled.
@@ -307,7 +322,7 @@ internal TaskRunsOperations(ContainerRegistryManagementClient client)
/// The name of the container registry.
///
///
- /// The task run name.
+ /// The name of the task run.
///
///
/// The headers that will be added to request.
@@ -332,7 +347,7 @@ internal TaskRunsOperations(ContainerRegistryManagementClient client)
/// The name of the container registry.
///
///
- /// The task run name.
+ /// The name of the task run.
///
///
/// The parameters for updating a task run.
@@ -361,7 +376,7 @@ internal TaskRunsOperations(ContainerRegistryManagementClient client)
/// The name of the container registry.
///
///
- /// The run request name.
+ /// The name of the task run.
///
///
/// Headers that will be added to request.
@@ -424,6 +439,21 @@ internal TaskRunsOperations(ContainerRegistryManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "taskRunName");
}
+ if (taskRunName != null)
+ {
+ if (taskRunName.Length > 50)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "taskRunName", 50);
+ }
+ if (taskRunName.Length < 5)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "taskRunName", 5);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(taskRunName, "^[a-zA-Z0-9-]*$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "taskRunName", "^[a-zA-Z0-9-]*$");
+ }
+ }
string apiVersion = "2019-06-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
@@ -792,7 +822,7 @@ internal TaskRunsOperations(ContainerRegistryManagementClient client)
/// The name of the container registry.
///
///
- /// The name of task run.
+ /// The name of the task run.
///
///
/// The parameters of a run that needs to scheduled.
@@ -858,6 +888,21 @@ internal TaskRunsOperations(ContainerRegistryManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "taskRunName");
}
+ if (taskRunName != null)
+ {
+ if (taskRunName.Length > 50)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "taskRunName", 50);
+ }
+ if (taskRunName.Length < 5)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "taskRunName", 5);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(taskRunName, "^[a-zA-Z0-9-]*$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "taskRunName", "^[a-zA-Z0-9-]*$");
+ }
+ }
if (taskRun == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "taskRun");
@@ -1048,7 +1093,7 @@ internal TaskRunsOperations(ContainerRegistryManagementClient client)
/// The name of the container registry.
///
///
- /// The task run name.
+ /// The name of the task run.
///
///
/// Headers that will be added to request.
@@ -1108,6 +1153,21 @@ internal TaskRunsOperations(ContainerRegistryManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "taskRunName");
}
+ if (taskRunName != null)
+ {
+ if (taskRunName.Length > 50)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "taskRunName", 50);
+ }
+ if (taskRunName.Length < 5)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "taskRunName", 5);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(taskRunName, "^[a-zA-Z0-9-]*$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "taskRunName", "^[a-zA-Z0-9-]*$");
+ }
+ }
string apiVersion = "2019-06-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
@@ -1247,7 +1307,7 @@ internal TaskRunsOperations(ContainerRegistryManagementClient client)
/// The name of the container registry.
///
///
- /// The task run name.
+ /// The name of the task run.
///
///
/// The parameters for updating a task run.
@@ -1313,6 +1373,21 @@ internal TaskRunsOperations(ContainerRegistryManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "taskRunName");
}
+ if (taskRunName != null)
+ {
+ if (taskRunName.Length > 50)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "taskRunName", 50);
+ }
+ if (taskRunName.Length < 5)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "taskRunName", 5);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(taskRunName, "^[a-zA-Z0-9-]*$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "taskRunName", "^[a-zA-Z0-9-]*$");
+ }
+ }
if (updateParameters == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "updateParameters");
diff --git a/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/TaskRunsOperationsExtensions.cs b/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/TaskRunsOperationsExtensions.cs
index 4efe3e6a9a40..fec07a3cc13a 100644
--- a/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/TaskRunsOperationsExtensions.cs
+++ b/sdk/containerregistry/Microsoft.Azure.Management.ContainerRegistry/src/Generated/TaskRunsOperationsExtensions.cs
@@ -33,7 +33,7 @@ public static partial class TaskRunsOperationsExtensions
/// The name of the container registry.
///
///
- /// The run request name.
+ /// The name of the task run.
///
public static TaskRun Get(this ITaskRunsOperations operations, string resourceGroupName, string registryName, string taskRunName)
{
@@ -53,7 +53,7 @@ public static TaskRun Get(this ITaskRunsOperations operations, string resourceGr
/// The name of the container registry.
///
///
- /// The run request name.
+ /// The name of the task run.
///
///
/// The cancellation token.
@@ -79,7 +79,7 @@ public static TaskRun Get(this ITaskRunsOperations operations, string resourceGr
/// The name of the container registry.
///
///
- /// The name of task run.
+ /// The name of the task run.
///
///
/// The parameters of a run that needs to scheduled.
@@ -102,7 +102,7 @@ public static TaskRun Create(this ITaskRunsOperations operations, string resourc
/// The name of the container registry.
///
///
- /// The name of task run.
+ /// The name of the task run.
///
///
/// The parameters of a run that needs to scheduled.
@@ -131,7 +131,7 @@ public static TaskRun Create(this ITaskRunsOperations operations, string resourc
/// The name of the container registry.
///
///
- /// The task run name.
+ /// The name of the task run.
///
public static void Delete(this ITaskRunsOperations operations, string resourceGroupName, string registryName, string taskRunName)
{
@@ -151,7 +151,7 @@ public static void Delete(this ITaskRunsOperations operations, string resourceGr
/// The name of the container registry.
///
///
- /// The task run name.
+ /// The name of the task run.
///
///
/// The cancellation token.
@@ -174,7 +174,7 @@ public static void Delete(this ITaskRunsOperations operations, string resourceGr
/// The name of the container registry.
///
///
- /// The task run name.
+ /// The name of the task run.
///
///
/// The parameters for updating a task run.
@@ -197,7 +197,7 @@ public static TaskRun Update(this ITaskRunsOperations operations, string resourc
/// The name of the container registry.
///
///
- /// The task run name.
+ /// The name of the task run.
///
///
/// The parameters for updating a task run.
@@ -227,7 +227,7 @@ public static TaskRun Update(this ITaskRunsOperations operations, string resourc
/// The name of the container registry.
///
///
- /// The run request name.
+ /// The name of the task run.
///
public static TaskRun GetDetails(this ITaskRunsOperations operations, string resourceGroupName, string registryName, string taskRunName)
{
@@ -248,7 +248,7 @@ public static TaskRun GetDetails(this ITaskRunsOperations operations, string res
/// The name of the container registry.
///
///
- /// The run request name.
+ /// The name of the task run.
///
///
/// The cancellation token.
@@ -314,7 +314,7 @@ public static IPage List(this ITaskRunsOperations operations, string re
/// The name of the container registry.
///
///
- /// The name of task run.
+ /// The name of the task run.
///
///
/// The parameters of a run that needs to scheduled.
@@ -337,7 +337,7 @@ public static TaskRun BeginCreate(this ITaskRunsOperations operations, string re
/// The name of the container registry.
///
///
- /// The name of task run.
+ /// The name of the task run.
///
///
/// The parameters of a run that needs to scheduled.
@@ -366,7 +366,7 @@ public static TaskRun BeginCreate(this ITaskRunsOperations operations, string re
/// The name of the container registry.
///
///
- /// The task run name.
+ /// The name of the task run.
///
public static void BeginDelete(this ITaskRunsOperations operations, string resourceGroupName, string registryName, string taskRunName)
{
@@ -386,7 +386,7 @@ public static void BeginDelete(this ITaskRunsOperations operations, string resou
/// The name of the container registry.
///
///
- /// The task run name.
+ /// The name of the task run.
///
///
/// The cancellation token.
@@ -409,7 +409,7 @@ public static void BeginDelete(this ITaskRunsOperations operations, string resou
/// The name of the container registry.
///
///
- /// The task run name.
+ /// The name of the task run.
///
///
/// The parameters for updating a task run.
@@ -432,7 +432,7 @@ public static TaskRun BeginUpdate(this ITaskRunsOperations operations, string re
/// The name of the container registry.
///
///
- /// The task run name.
+ /// The name of the task run.
///
///
/// The parameters for updating a task run.