From d794352f408569e161a2f8fc7e50d7106d053266 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Fri, 28 Sep 2018 00:23:55 +0000 Subject: [PATCH] Generated from 13f78c9f9be8ff71afffbe76b21c7b0687b70ea8 Add ContextPath and source location URL for encode task and run type, add support for pull request based trigger. --- .../v2018_09_01/BaseImageTrigger.java | 8 +- .../BaseImageTriggerUpdateParameters.java | 8 +- .../v2018_09_01/DockerBuildRequest.java | 81 +++++++++---------- .../v2018_09_01/DockerBuildStep.java | 30 ------- .../DockerBuildStepUpdateParameters.java | 30 ------- .../v2018_09_01/EncodedTaskRunRequest.java | 49 ++++++++--- .../v2018_09_01/FileTaskRunRequest.java | 81 +++++++++---------- .../v2018_09_01/FileTaskStep.java | 30 ------- .../FileTaskStepUpdateParameters.java | 30 ------- .../v2018_09_01/RunFilter.java | 7 +- .../v2018_09_01/RunType.java | 6 ++ .../v2018_09_01/SourceTrigger.java | 8 +- .../v2018_09_01/SourceTriggerEvent.java | 3 + .../SourceTriggerUpdateParameters.java | 8 +- .../v2018_09_01/TaskStepProperties.java | 26 ++++++ .../v2018_09_01/TaskStepUpdateParameters.java | 27 +++++++ .../v2018_09_01/TriggerProperties.java | 2 +- .../v2018_09_01/TriggerUpdateParameters.java | 2 +- .../v2018_09_01/implementation/RunInner.java | 19 ++--- 19 files changed, 214 insertions(+), 241 deletions(-) diff --git a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/BaseImageTrigger.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/BaseImageTrigger.java index 603585a419ec..f5f8223e4779 100644 --- a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/BaseImageTrigger.java +++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/BaseImageTrigger.java @@ -22,8 +22,8 @@ public class BaseImageTrigger { private BaseImageTriggerType baseImageTriggerType; /** - * The current status of build trigger. Possible values include: - * 'Disabled', 'Enabled'. + * The current status of trigger. Possible values include: 'Disabled', + * 'Enabled'. */ @JsonProperty(value = "status") private TriggerStatus status; @@ -55,7 +55,7 @@ public BaseImageTrigger withBaseImageTriggerType(BaseImageTriggerType baseImageT } /** - * Get the current status of build trigger. Possible values include: 'Disabled', 'Enabled'. + * Get the current status of trigger. Possible values include: 'Disabled', 'Enabled'. * * @return the status value */ @@ -64,7 +64,7 @@ public TriggerStatus status() { } /** - * Set the current status of build trigger. Possible values include: 'Disabled', 'Enabled'. + * Set the current status of trigger. Possible values include: 'Disabled', 'Enabled'. * * @param status the status value to set * @return the BaseImageTrigger object itself. diff --git a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/BaseImageTriggerUpdateParameters.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/BaseImageTriggerUpdateParameters.java index 08c82e58db59..0965727b39a7 100644 --- a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/BaseImageTriggerUpdateParameters.java +++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/BaseImageTriggerUpdateParameters.java @@ -22,8 +22,8 @@ public class BaseImageTriggerUpdateParameters { private BaseImageTriggerType baseImageTriggerType; /** - * The current status of build trigger. Possible values include: - * 'Disabled', 'Enabled'. + * The current status of trigger. Possible values include: 'Disabled', + * 'Enabled'. */ @JsonProperty(value = "status") private TriggerStatus status; @@ -55,7 +55,7 @@ public BaseImageTriggerUpdateParameters withBaseImageTriggerType(BaseImageTrigge } /** - * Get the current status of build trigger. Possible values include: 'Disabled', 'Enabled'. + * Get the current status of trigger. Possible values include: 'Disabled', 'Enabled'. * * @return the status value */ @@ -64,7 +64,7 @@ public TriggerStatus status() { } /** - * Set the current status of build trigger. Possible values include: 'Disabled', 'Enabled'. + * Set the current status of trigger. Possible values include: 'Disabled', 'Enabled'. * * @param status the status value to set * @return the BaseImageTriggerUpdateParameters object itself. diff --git a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/DockerBuildRequest.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/DockerBuildRequest.java index bfd09cd393e5..5584232f9184 100644 --- a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/DockerBuildRequest.java +++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/DockerBuildRequest.java @@ -52,33 +52,32 @@ public class DockerBuildRequest extends RunRequest { private List arguments; /** - * The URL(absolute or relative) of the source that needs to be built. For - * Docker build, it can be an URL to a tar or github repoistory as - * supported by Docker. - * If it is relative URL, the relative path should be obtained from calling - * getSourceUploadUrl API. - */ - @JsonProperty(value = "sourceLocation", required = true) - private String sourceLocation; - - /** - * Build timeout in seconds. + * Run timeout in seconds. */ @JsonProperty(value = "timeout") private Integer timeout; /** - * The platform properties against which the build will happen. + * The platform properties against which the run has to happen. */ @JsonProperty(value = "platform", required = true) private PlatformProperties platform; /** - * The machine configuration of the build agent. + * The machine configuration of the run agent. */ @JsonProperty(value = "agentConfiguration") private AgentProperties agentConfiguration; + /** + * 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. + */ + @JsonProperty(value = "sourceLocation") + private String sourceLocation; + /** * Get the fully qualified image names including the repository and tag. * @@ -180,29 +179,7 @@ public DockerBuildRequest withArguments(List arguments) { } /** - * Get the URL(absolute or relative) of the source that needs to be built. For Docker build, it can be an URL to a tar or github repoistory as supported by Docker. - If it is relative URL, the relative path should be obtained from calling getSourceUploadUrl API. - * - * @return the sourceLocation value - */ - public String sourceLocation() { - return this.sourceLocation; - } - - /** - * Set the URL(absolute or relative) of the source that needs to be built. For Docker build, it can be an URL to a tar or github repoistory as supported by Docker. - If it is relative URL, the relative path should be obtained from calling getSourceUploadUrl API. - * - * @param sourceLocation the sourceLocation value to set - * @return the DockerBuildRequest object itself. - */ - public DockerBuildRequest withSourceLocation(String sourceLocation) { - this.sourceLocation = sourceLocation; - return this; - } - - /** - * Get build timeout in seconds. + * Get run timeout in seconds. * * @return the timeout value */ @@ -211,7 +188,7 @@ public Integer timeout() { } /** - * Set build timeout in seconds. + * Set run timeout in seconds. * * @param timeout the timeout value to set * @return the DockerBuildRequest object itself. @@ -222,7 +199,7 @@ public DockerBuildRequest withTimeout(Integer timeout) { } /** - * Get the platform properties against which the build will happen. + * Get the platform properties against which the run has to happen. * * @return the platform value */ @@ -231,7 +208,7 @@ public PlatformProperties platform() { } /** - * Set the platform properties against which the build will happen. + * Set the platform properties against which the run has to happen. * * @param platform the platform value to set * @return the DockerBuildRequest object itself. @@ -242,7 +219,7 @@ public DockerBuildRequest withPlatform(PlatformProperties platform) { } /** - * Get the machine configuration of the build agent. + * Get the machine configuration of the run agent. * * @return the agentConfiguration value */ @@ -251,7 +228,7 @@ public AgentProperties agentConfiguration() { } /** - * Set the machine configuration of the build agent. + * Set the machine configuration of the run agent. * * @param agentConfiguration the agentConfiguration value to set * @return the DockerBuildRequest object itself. @@ -261,4 +238,26 @@ public DockerBuildRequest withAgentConfiguration(AgentProperties agentConfigurat return this; } + /** + * Get 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. + * + * @return the sourceLocation value + */ + public String sourceLocation() { + return this.sourceLocation; + } + + /** + * Set 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 sourceLocation the sourceLocation value to set + * @return the DockerBuildRequest object itself. + */ + public DockerBuildRequest withSourceLocation(String sourceLocation) { + this.sourceLocation = sourceLocation; + return this; + } + } diff --git a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/DockerBuildStep.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/DockerBuildStep.java index db65b07a16d0..07dbfcf21097 100644 --- a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/DockerBuildStep.java +++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/DockerBuildStep.java @@ -52,14 +52,6 @@ public class DockerBuildStep extends TaskStepProperties { @JsonProperty(value = "arguments") private List arguments; - /** - * The URL(absolute or relative) of the source context for the build task. - * If it is relative, the context will be relative to the source repository - * URL of the build task. - */ - @JsonProperty(value = "contextPath") - private String contextPath; - /** * Get the fully qualified image names including the repository and tag. * @@ -160,26 +152,4 @@ public DockerBuildStep withArguments(List arguments) { return this; } - /** - * Get the URL(absolute or relative) of the source context for the build task. - If it is relative, the context will be relative to the source repository URL of the build task. - * - * @return the contextPath value - */ - public String contextPath() { - return this.contextPath; - } - - /** - * Set the URL(absolute or relative) of the source context for the build task. - If it is relative, the context will be relative to the source repository URL of the build task. - * - * @param contextPath the contextPath value to set - * @return the DockerBuildStep object itself. - */ - public DockerBuildStep withContextPath(String contextPath) { - this.contextPath = contextPath; - return this; - } - } diff --git a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/DockerBuildStepUpdateParameters.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/DockerBuildStepUpdateParameters.java index 253769c823ce..57a180720f00 100644 --- a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/DockerBuildStepUpdateParameters.java +++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/DockerBuildStepUpdateParameters.java @@ -52,14 +52,6 @@ public class DockerBuildStepUpdateParameters extends TaskStepUpdateParameters { @JsonProperty(value = "arguments") private List arguments; - /** - * The URL(absolute or relative) of the source context for the build task. - * If it is relative, the context will be relative to the source repository - * URL of the build task. - */ - @JsonProperty(value = "contextPath") - private String contextPath; - /** * Get the fully qualified image names including the repository and tag. * @@ -160,26 +152,4 @@ public DockerBuildStepUpdateParameters withArguments(List arguments) { return this; } - /** - * Get the URL(absolute or relative) of the source context for the build task. - If it is relative, the context will be relative to the source repository URL of the build task. - * - * @return the contextPath value - */ - public String contextPath() { - return this.contextPath; - } - - /** - * Set the URL(absolute or relative) of the source context for the build task. - If it is relative, the context will be relative to the source repository URL of the build task. - * - * @param contextPath the contextPath value to set - * @return the DockerBuildStepUpdateParameters object itself. - */ - public DockerBuildStepUpdateParameters withContextPath(String contextPath) { - this.contextPath = contextPath; - return this; - } - } diff --git a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/EncodedTaskRunRequest.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/EncodedTaskRunRequest.java index b694c04053de..1539de33bbef 100644 --- a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/EncodedTaskRunRequest.java +++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/EncodedTaskRunRequest.java @@ -39,23 +39,32 @@ public class EncodedTaskRunRequest extends RunRequest { private List values; /** - * Build timeout in seconds. + * Run timeout in seconds. */ @JsonProperty(value = "timeout") private Integer timeout; /** - * The platform properties against which the build will happen. + * The platform properties against which the run has to happen. */ @JsonProperty(value = "platform", required = true) private PlatformProperties platform; /** - * The machine configuration of the build agent. + * The machine configuration of the run agent. */ @JsonProperty(value = "agentConfiguration") private AgentProperties agentConfiguration; + /** + * 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. + */ + @JsonProperty(value = "sourceLocation") + private String sourceLocation; + /** * Get base64 encoded value of the template/definition file content. * @@ -117,7 +126,7 @@ public EncodedTaskRunRequest withValues(List values) { } /** - * Get build timeout in seconds. + * Get run timeout in seconds. * * @return the timeout value */ @@ -126,7 +135,7 @@ public Integer timeout() { } /** - * Set build timeout in seconds. + * Set run timeout in seconds. * * @param timeout the timeout value to set * @return the EncodedTaskRunRequest object itself. @@ -137,7 +146,7 @@ public EncodedTaskRunRequest withTimeout(Integer timeout) { } /** - * Get the platform properties against which the build will happen. + * Get the platform properties against which the run has to happen. * * @return the platform value */ @@ -146,7 +155,7 @@ public PlatformProperties platform() { } /** - * Set the platform properties against which the build will happen. + * Set the platform properties against which the run has to happen. * * @param platform the platform value to set * @return the EncodedTaskRunRequest object itself. @@ -157,7 +166,7 @@ public EncodedTaskRunRequest withPlatform(PlatformProperties platform) { } /** - * Get the machine configuration of the build agent. + * Get the machine configuration of the run agent. * * @return the agentConfiguration value */ @@ -166,7 +175,7 @@ public AgentProperties agentConfiguration() { } /** - * Set the machine configuration of the build agent. + * Set the machine configuration of the run agent. * * @param agentConfiguration the agentConfiguration value to set * @return the EncodedTaskRunRequest object itself. @@ -176,4 +185,26 @@ public EncodedTaskRunRequest withAgentConfiguration(AgentProperties agentConfigu return this; } + /** + * Get 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. + * + * @return the sourceLocation value + */ + public String sourceLocation() { + return this.sourceLocation; + } + + /** + * Set 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 sourceLocation the sourceLocation value to set + * @return the EncodedTaskRunRequest object itself. + */ + public EncodedTaskRunRequest withSourceLocation(String sourceLocation) { + this.sourceLocation = sourceLocation; + return this; + } + } diff --git a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/FileTaskRunRequest.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/FileTaskRunRequest.java index 47fddde2b32a..31b0901a695b 100644 --- a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/FileTaskRunRequest.java +++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/FileTaskRunRequest.java @@ -39,33 +39,32 @@ public class FileTaskRunRequest extends RunRequest { private List values; /** - * The URL(absolute or relative) of the source that needs to be built. For - * Docker build, it can be an URL to a tar or github repoistory as - * supported by Docker. - * If it is relative URL, the relative path should be obtained from calling - * getSourceUploadUrl API. - */ - @JsonProperty(value = "sourceLocation", required = true) - private String sourceLocation; - - /** - * Build timeout in seconds. + * Run timeout in seconds. */ @JsonProperty(value = "timeout") private Integer timeout; /** - * The platform properties against which the build will happen. + * The platform properties against which the run has to happen. */ @JsonProperty(value = "platform", required = true) private PlatformProperties platform; /** - * The machine configuration of the build agent. + * The machine configuration of the run agent. */ @JsonProperty(value = "agentConfiguration") private AgentProperties agentConfiguration; + /** + * 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. + */ + @JsonProperty(value = "sourceLocation") + private String sourceLocation; + /** * Get the template/definition file path relative to the source. * @@ -127,29 +126,7 @@ public FileTaskRunRequest withValues(List values) { } /** - * Get the URL(absolute or relative) of the source that needs to be built. For Docker build, it can be an URL to a tar or github repoistory as supported by Docker. - If it is relative URL, the relative path should be obtained from calling getSourceUploadUrl API. - * - * @return the sourceLocation value - */ - public String sourceLocation() { - return this.sourceLocation; - } - - /** - * Set the URL(absolute or relative) of the source that needs to be built. For Docker build, it can be an URL to a tar or github repoistory as supported by Docker. - If it is relative URL, the relative path should be obtained from calling getSourceUploadUrl API. - * - * @param sourceLocation the sourceLocation value to set - * @return the FileTaskRunRequest object itself. - */ - public FileTaskRunRequest withSourceLocation(String sourceLocation) { - this.sourceLocation = sourceLocation; - return this; - } - - /** - * Get build timeout in seconds. + * Get run timeout in seconds. * * @return the timeout value */ @@ -158,7 +135,7 @@ public Integer timeout() { } /** - * Set build timeout in seconds. + * Set run timeout in seconds. * * @param timeout the timeout value to set * @return the FileTaskRunRequest object itself. @@ -169,7 +146,7 @@ public FileTaskRunRequest withTimeout(Integer timeout) { } /** - * Get the platform properties against which the build will happen. + * Get the platform properties against which the run has to happen. * * @return the platform value */ @@ -178,7 +155,7 @@ public PlatformProperties platform() { } /** - * Set the platform properties against which the build will happen. + * Set the platform properties against which the run has to happen. * * @param platform the platform value to set * @return the FileTaskRunRequest object itself. @@ -189,7 +166,7 @@ public FileTaskRunRequest withPlatform(PlatformProperties platform) { } /** - * Get the machine configuration of the build agent. + * Get the machine configuration of the run agent. * * @return the agentConfiguration value */ @@ -198,7 +175,7 @@ public AgentProperties agentConfiguration() { } /** - * Set the machine configuration of the build agent. + * Set the machine configuration of the run agent. * * @param agentConfiguration the agentConfiguration value to set * @return the FileTaskRunRequest object itself. @@ -208,4 +185,26 @@ public FileTaskRunRequest withAgentConfiguration(AgentProperties agentConfigurat return this; } + /** + * Get 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. + * + * @return the sourceLocation value + */ + public String sourceLocation() { + return this.sourceLocation; + } + + /** + * Set 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 sourceLocation the sourceLocation value to set + * @return the FileTaskRunRequest object itself. + */ + public FileTaskRunRequest withSourceLocation(String sourceLocation) { + this.sourceLocation = sourceLocation; + return this; + } + } diff --git a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/FileTaskStep.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/FileTaskStep.java index b7ef0a7d5451..c716727a587f 100644 --- a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/FileTaskStep.java +++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/FileTaskStep.java @@ -38,14 +38,6 @@ public class FileTaskStep extends TaskStepProperties { @JsonProperty(value = "values") private List values; - /** - * The URL(absolute or relative) of the source context for the build task. - * If it is relative, the context will be relative to the source repository - * URL of the build task. - */ - @JsonProperty(value = "contextPath") - private String contextPath; - /** * Get the task template/definition file path relative to the source context. * @@ -106,26 +98,4 @@ public FileTaskStep withValues(List values) { return this; } - /** - * Get the URL(absolute or relative) of the source context for the build task. - If it is relative, the context will be relative to the source repository URL of the build task. - * - * @return the contextPath value - */ - public String contextPath() { - return this.contextPath; - } - - /** - * Set the URL(absolute or relative) of the source context for the build task. - If it is relative, the context will be relative to the source repository URL of the build task. - * - * @param contextPath the contextPath value to set - * @return the FileTaskStep object itself. - */ - public FileTaskStep withContextPath(String contextPath) { - this.contextPath = contextPath; - return this; - } - } diff --git a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/FileTaskStepUpdateParameters.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/FileTaskStepUpdateParameters.java index 671637de7eef..9cf1c75b4651 100644 --- a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/FileTaskStepUpdateParameters.java +++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/FileTaskStepUpdateParameters.java @@ -38,14 +38,6 @@ public class FileTaskStepUpdateParameters extends TaskStepUpdateParameters { @JsonProperty(value = "values") private List values; - /** - * The URL(absolute or relative) of the source context for the build task. - * If it is relative, the context will be relative to the source repository - * URL of the build task. - */ - @JsonProperty(value = "contextPath") - private String contextPath; - /** * Get the task template/definition file path relative to the source context. * @@ -106,26 +98,4 @@ public FileTaskStepUpdateParameters withValues(List values) { return this; } - /** - * Get the URL(absolute or relative) of the source context for the build task. - If it is relative, the context will be relative to the source repository URL of the build task. - * - * @return the contextPath value - */ - public String contextPath() { - return this.contextPath; - } - - /** - * Set the URL(absolute or relative) of the source context for the build task. - If it is relative, the context will be relative to the source repository URL of the build task. - * - * @param contextPath the contextPath value to set - * @return the FileTaskStepUpdateParameters object itself. - */ - public FileTaskStepUpdateParameters withContextPath(String contextPath) { - this.contextPath = contextPath; - return this; - } - } diff --git a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/RunFilter.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/RunFilter.java index 0afd985d6e85..78fa73ce0790 100644 --- a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/RunFilter.java +++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/RunFilter.java @@ -22,7 +22,8 @@ public class RunFilter { private String runId; /** - * The type of run. Possible values include: 'QuickBuild', 'AutoBuild'. + * The type of run. Possible values include: 'QuickBuild', 'QuickRun', + * 'AutoBuild', 'AutoRun'. */ @JsonProperty(value = "runType") private RunType runType; @@ -88,7 +89,7 @@ public RunFilter withRunId(String runId) { } /** - * Get the type of run. Possible values include: 'QuickBuild', 'AutoBuild'. + * Get the type of run. Possible values include: 'QuickBuild', 'QuickRun', 'AutoBuild', 'AutoRun'. * * @return the runType value */ @@ -97,7 +98,7 @@ public RunType runType() { } /** - * Set the type of run. Possible values include: 'QuickBuild', 'AutoBuild'. + * Set the type of run. Possible values include: 'QuickBuild', 'QuickRun', 'AutoBuild', 'AutoRun'. * * @param runType the runType value to set * @return the RunFilter object itself. diff --git a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/RunType.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/RunType.java index c015ec5aa4b3..192672c3d387 100644 --- a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/RunType.java +++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/RunType.java @@ -19,9 +19,15 @@ public final class RunType extends ExpandableStringEnum { /** Static value QuickBuild for RunType. */ public static final RunType QUICK_BUILD = fromString("QuickBuild"); + /** Static value QuickRun for RunType. */ + public static final RunType QUICK_RUN = fromString("QuickRun"); + /** Static value AutoBuild for RunType. */ public static final RunType AUTO_BUILD = fromString("AutoBuild"); + /** Static value AutoRun for RunType. */ + public static final RunType AUTO_RUN = fromString("AutoRun"); + /** * Creates or finds a RunType from its string representation. * @param name a name to look for diff --git a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/SourceTrigger.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/SourceTrigger.java index 17bbbf64e82b..aa3a5abd0f27 100644 --- a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/SourceTrigger.java +++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/SourceTrigger.java @@ -28,8 +28,8 @@ public class SourceTrigger { private List sourceTriggerEvents; /** - * The current status of build trigger. Possible values include: - * 'Disabled', 'Enabled'. + * The current status of trigger. Possible values include: 'Disabled', + * 'Enabled'. */ @JsonProperty(value = "status") private TriggerStatus status; @@ -81,7 +81,7 @@ public SourceTrigger withSourceTriggerEvents(List sourceTrig } /** - * Get the current status of build trigger. Possible values include: 'Disabled', 'Enabled'. + * Get the current status of trigger. Possible values include: 'Disabled', 'Enabled'. * * @return the status value */ @@ -90,7 +90,7 @@ public TriggerStatus status() { } /** - * Set the current status of build trigger. Possible values include: 'Disabled', 'Enabled'. + * Set the current status of trigger. Possible values include: 'Disabled', 'Enabled'. * * @param status the status value to set * @return the SourceTrigger object itself. diff --git a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/SourceTriggerEvent.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/SourceTriggerEvent.java index 11cb65967ea3..79192c898820 100644 --- a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/SourceTriggerEvent.java +++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/SourceTriggerEvent.java @@ -19,6 +19,9 @@ public final class SourceTriggerEvent extends ExpandableStringEnum sourceTriggerEvents; /** - * The current status of build trigger. Possible values include: - * 'Disabled', 'Enabled'. + * The current status of trigger. Possible values include: 'Disabled', + * 'Enabled'. */ @JsonProperty(value = "status") private TriggerStatus status; @@ -81,7 +81,7 @@ public SourceTriggerUpdateParameters withSourceTriggerEvents(List baseImageDependencies; + /** + * The URL(absolute or relative) of the source context for the task step. + */ + @JsonProperty(value = "contextPath") + private String contextPath; + /** * Get list of base image dependencies for a step. * @@ -40,4 +46,24 @@ public List baseImageDependencies() { return this.baseImageDependencies; } + /** + * Get the URL(absolute or relative) of the source context for the task step. + * + * @return the contextPath value + */ + public String contextPath() { + return this.contextPath; + } + + /** + * Set the URL(absolute or relative) of the source context for the task step. + * + * @param contextPath the contextPath value to set + * @return the TaskStepProperties object itself. + */ + public TaskStepProperties withContextPath(String contextPath) { + this.contextPath = contextPath; + return this; + } + } diff --git a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/TaskStepUpdateParameters.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/TaskStepUpdateParameters.java index 015c906a2549..f07e7ee9a569 100644 --- a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/TaskStepUpdateParameters.java +++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/TaskStepUpdateParameters.java @@ -8,6 +8,7 @@ package com.microsoft.azure.management.containerregistry.v2018_09_01; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonSubTypes; @@ -23,4 +24,30 @@ @JsonSubTypes.Type(name = "EncodedTask", value = EncodedTaskStepUpdateParameters.class) }) public class TaskStepUpdateParameters { + /** + * The URL(absolute or relative) of the source context for the task step. + */ + @JsonProperty(value = "contextPath") + private String contextPath; + + /** + * Get the URL(absolute or relative) of the source context for the task step. + * + * @return the contextPath value + */ + public String contextPath() { + return this.contextPath; + } + + /** + * Set the URL(absolute or relative) of the source context for the task step. + * + * @param contextPath the contextPath value to set + * @return the TaskStepUpdateParameters object itself. + */ + public TaskStepUpdateParameters withContextPath(String contextPath) { + this.contextPath = contextPath; + return this; + } + } diff --git a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/TriggerProperties.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/TriggerProperties.java index 9899446d6b26..3a2eff3043d6 100644 --- a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/TriggerProperties.java +++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/TriggerProperties.java @@ -12,7 +12,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * The properties of a build trigger. + * The properties of a trigger. */ public class TriggerProperties { /** diff --git a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/TriggerUpdateParameters.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/TriggerUpdateParameters.java index cacbbf9f0b9a..611d7f8f2626 100644 --- a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/TriggerUpdateParameters.java +++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/TriggerUpdateParameters.java @@ -12,7 +12,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * The properties for updating build triggers. + * The properties for updating triggers. */ public class TriggerUpdateParameters { /** diff --git a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/implementation/RunInner.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/implementation/RunInner.java index b30632cce2c2..e892261af122 100644 --- a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/implementation/RunInner.java +++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/implementation/RunInner.java @@ -48,7 +48,8 @@ public class RunInner extends ProxyResource { private DateTime lastUpdatedTime; /** - * The type of run. Possible values include: 'QuickBuild', 'AutoBuild'. + * The type of run. Possible values include: 'QuickBuild', 'QuickRun', + * 'AutoBuild', 'AutoRun'. */ @JsonProperty(value = "properties.runType") private RunType runType; @@ -73,7 +74,7 @@ public class RunInner extends ProxyResource { /** * The list of all images that were generated from the run. This is - * applicable if the run is of type Build. + * applicable if the run generates base image dependencies. */ @JsonProperty(value = "properties.outputImages") private List outputImages; @@ -86,7 +87,7 @@ public class RunInner extends ProxyResource { /** * The image update trigger that caused the run. This is applicable if the - * task is of build type. + * task has base image trigger configured. */ @JsonProperty(value = "properties.imageUpdateTrigger") private ImageUpdateTrigger imageUpdateTrigger; @@ -183,7 +184,7 @@ public RunInner withLastUpdatedTime(DateTime lastUpdatedTime) { } /** - * Get the type of run. Possible values include: 'QuickBuild', 'AutoBuild'. + * Get the type of run. Possible values include: 'QuickBuild', 'QuickRun', 'AutoBuild', 'AutoRun'. * * @return the runType value */ @@ -192,7 +193,7 @@ public RunType runType() { } /** - * Set the type of run. Possible values include: 'QuickBuild', 'AutoBuild'. + * Set the type of run. Possible values include: 'QuickBuild', 'QuickRun', 'AutoBuild', 'AutoRun'. * * @param runType the runType value to set * @return the RunInner object itself. @@ -263,7 +264,7 @@ public RunInner withFinishTime(DateTime finishTime) { } /** - * Get the list of all images that were generated from the run. This is applicable if the run is of type Build. + * Get the list of all images that were generated from the run. This is applicable if the run generates base image dependencies. * * @return the outputImages value */ @@ -272,7 +273,7 @@ public List outputImages() { } /** - * Set the list of all images that were generated from the run. This is applicable if the run is of type Build. + * Set the list of all images that were generated from the run. This is applicable if the run generates base image dependencies. * * @param outputImages the outputImages value to set * @return the RunInner object itself. @@ -303,7 +304,7 @@ public RunInner withTask(String task) { } /** - * Get the image update trigger that caused the run. This is applicable if the task is of build type. + * Get the image update trigger that caused the run. This is applicable if the task has base image trigger configured. * * @return the imageUpdateTrigger value */ @@ -312,7 +313,7 @@ public ImageUpdateTrigger imageUpdateTrigger() { } /** - * Set the image update trigger that caused the run. This is applicable if the task is of build type. + * Set the image update trigger that caused the run. This is applicable if the task has base image trigger configured. * * @param imageUpdateTrigger the imageUpdateTrigger value to set * @return the RunInner object itself.