From 27bf66ce10bdaa55e8e936e84fa1dd5a0860f785 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Tue, 28 Aug 2018 03:10:32 +0000 Subject: [PATCH] Generated from 8211af77ca617639df4c4668ca621b6f65c05918 Renamed BuildTask to FileTask and RunTask to EncodedTask --- .../v2018_09_01/EncodedTaskRunRequest.java | 179 +++++++++++++++ .../v2018_09_01/EncodedTaskStep.java | 101 +++++++++ .../EncodedTaskStepUpdateParameters.java | 101 +++++++++ .../v2018_09_01/FileTaskRunRequest.java | 211 ++++++++++++++++++ .../v2018_09_01/FileTaskStep.java | 131 +++++++++++ .../FileTaskStepUpdateParameters.java | 131 +++++++++++ .../v2018_09_01/PlatformProperties.java | 2 +- .../v2018_09_01/RunRequest.java | 4 +- .../v2018_09_01/TaskStepProperties.java | 4 +- .../v2018_09_01/TaskStepUpdateParameters.java | 4 +- 10 files changed, 861 insertions(+), 7 deletions(-) create mode 100644 containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/EncodedTaskRunRequest.java create mode 100644 containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/EncodedTaskStep.java create mode 100644 containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/EncodedTaskStepUpdateParameters.java create mode 100644 containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/FileTaskRunRequest.java create mode 100644 containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/FileTaskStep.java create mode 100644 containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/FileTaskStepUpdateParameters.java 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 new file mode 100644 index 000000000000..b694c04053de --- /dev/null +++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/EncodedTaskRunRequest.java @@ -0,0 +1,179 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.containerregistry.v2018_09_01; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * The parameters for a quick task run request. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("EncodedTaskRunRequest") +public class EncodedTaskRunRequest extends RunRequest { + /** + * Base64 encoded value of the template/definition file content. + */ + @JsonProperty(value = "encodedTaskContent", required = true) + private String encodedTaskContent; + + /** + * Base64 encoded value of the parameters/values file content. + */ + @JsonProperty(value = "encodedValuesContent") + private String encodedValuesContent; + + /** + * The collection of overridable values that can be passed when running a + * task. + */ + @JsonProperty(value = "values") + private List values; + + /** + * Build timeout in seconds. + */ + @JsonProperty(value = "timeout") + private Integer timeout; + + /** + * The platform properties against which the build will happen. + */ + @JsonProperty(value = "platform", required = true) + private PlatformProperties platform; + + /** + * The machine configuration of the build agent. + */ + @JsonProperty(value = "agentConfiguration") + private AgentProperties agentConfiguration; + + /** + * Get base64 encoded value of the template/definition file content. + * + * @return the encodedTaskContent value + */ + public String encodedTaskContent() { + return this.encodedTaskContent; + } + + /** + * Set base64 encoded value of the template/definition file content. + * + * @param encodedTaskContent the encodedTaskContent value to set + * @return the EncodedTaskRunRequest object itself. + */ + public EncodedTaskRunRequest withEncodedTaskContent(String encodedTaskContent) { + this.encodedTaskContent = encodedTaskContent; + return this; + } + + /** + * Get base64 encoded value of the parameters/values file content. + * + * @return the encodedValuesContent value + */ + public String encodedValuesContent() { + return this.encodedValuesContent; + } + + /** + * Set base64 encoded value of the parameters/values file content. + * + * @param encodedValuesContent the encodedValuesContent value to set + * @return the EncodedTaskRunRequest object itself. + */ + public EncodedTaskRunRequest withEncodedValuesContent(String encodedValuesContent) { + this.encodedValuesContent = encodedValuesContent; + return this; + } + + /** + * Get the collection of overridable values that can be passed when running a task. + * + * @return the values value + */ + public List values() { + return this.values; + } + + /** + * Set the collection of overridable values that can be passed when running a task. + * + * @param values the values value to set + * @return the EncodedTaskRunRequest object itself. + */ + public EncodedTaskRunRequest withValues(List values) { + this.values = values; + return this; + } + + /** + * Get build timeout in seconds. + * + * @return the timeout value + */ + public Integer timeout() { + return this.timeout; + } + + /** + * Set build timeout in seconds. + * + * @param timeout the timeout value to set + * @return the EncodedTaskRunRequest object itself. + */ + public EncodedTaskRunRequest withTimeout(Integer timeout) { + this.timeout = timeout; + return this; + } + + /** + * Get the platform properties against which the build will happen. + * + * @return the platform value + */ + public PlatformProperties platform() { + return this.platform; + } + + /** + * Set the platform properties against which the build will happen. + * + * @param platform the platform value to set + * @return the EncodedTaskRunRequest object itself. + */ + public EncodedTaskRunRequest withPlatform(PlatformProperties platform) { + this.platform = platform; + return this; + } + + /** + * Get the machine configuration of the build agent. + * + * @return the agentConfiguration value + */ + public AgentProperties agentConfiguration() { + return this.agentConfiguration; + } + + /** + * Set the machine configuration of the build agent. + * + * @param agentConfiguration the agentConfiguration value to set + * @return the EncodedTaskRunRequest object itself. + */ + public EncodedTaskRunRequest withAgentConfiguration(AgentProperties agentConfiguration) { + this.agentConfiguration = agentConfiguration; + return this; + } + +} diff --git a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/EncodedTaskStep.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/EncodedTaskStep.java new file mode 100644 index 000000000000..85115af6fe6b --- /dev/null +++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/EncodedTaskStep.java @@ -0,0 +1,101 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.containerregistry.v2018_09_01; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * The properties of a encoded task step. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("EncodedTask") +public class EncodedTaskStep extends TaskStepProperties { + /** + * Base64 encoded value of the template/definition file content. + */ + @JsonProperty(value = "encodedTaskContent", required = true) + private String encodedTaskContent; + + /** + * Base64 encoded value of the parameters/values file content. + */ + @JsonProperty(value = "encodedValuesContent") + private String encodedValuesContent; + + /** + * The collection of overridable values that can be passed when running a + * task. + */ + @JsonProperty(value = "values") + private List values; + + /** + * Get base64 encoded value of the template/definition file content. + * + * @return the encodedTaskContent value + */ + public String encodedTaskContent() { + return this.encodedTaskContent; + } + + /** + * Set base64 encoded value of the template/definition file content. + * + * @param encodedTaskContent the encodedTaskContent value to set + * @return the EncodedTaskStep object itself. + */ + public EncodedTaskStep withEncodedTaskContent(String encodedTaskContent) { + this.encodedTaskContent = encodedTaskContent; + return this; + } + + /** + * Get base64 encoded value of the parameters/values file content. + * + * @return the encodedValuesContent value + */ + public String encodedValuesContent() { + return this.encodedValuesContent; + } + + /** + * Set base64 encoded value of the parameters/values file content. + * + * @param encodedValuesContent the encodedValuesContent value to set + * @return the EncodedTaskStep object itself. + */ + public EncodedTaskStep withEncodedValuesContent(String encodedValuesContent) { + this.encodedValuesContent = encodedValuesContent; + return this; + } + + /** + * Get the collection of overridable values that can be passed when running a task. + * + * @return the values value + */ + public List values() { + return this.values; + } + + /** + * Set the collection of overridable values that can be passed when running a task. + * + * @param values the values value to set + * @return the EncodedTaskStep object itself. + */ + public EncodedTaskStep withValues(List values) { + this.values = values; + return this; + } + +} diff --git a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/EncodedTaskStepUpdateParameters.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/EncodedTaskStepUpdateParameters.java new file mode 100644 index 000000000000..38c7d05e9343 --- /dev/null +++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/EncodedTaskStepUpdateParameters.java @@ -0,0 +1,101 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.containerregistry.v2018_09_01; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * The properties for updating encoded task step. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("EncodedTask") +public class EncodedTaskStepUpdateParameters extends TaskStepUpdateParameters { + /** + * Base64 encoded value of the template/definition file content. + */ + @JsonProperty(value = "encodedTaskContent") + private String encodedTaskContent; + + /** + * Base64 encoded value of the parameters/values file content. + */ + @JsonProperty(value = "encodedValuesContent") + private String encodedValuesContent; + + /** + * The collection of overridable values that can be passed when running a + * task. + */ + @JsonProperty(value = "values") + private List values; + + /** + * Get base64 encoded value of the template/definition file content. + * + * @return the encodedTaskContent value + */ + public String encodedTaskContent() { + return this.encodedTaskContent; + } + + /** + * Set base64 encoded value of the template/definition file content. + * + * @param encodedTaskContent the encodedTaskContent value to set + * @return the EncodedTaskStepUpdateParameters object itself. + */ + public EncodedTaskStepUpdateParameters withEncodedTaskContent(String encodedTaskContent) { + this.encodedTaskContent = encodedTaskContent; + return this; + } + + /** + * Get base64 encoded value of the parameters/values file content. + * + * @return the encodedValuesContent value + */ + public String encodedValuesContent() { + return this.encodedValuesContent; + } + + /** + * Set base64 encoded value of the parameters/values file content. + * + * @param encodedValuesContent the encodedValuesContent value to set + * @return the EncodedTaskStepUpdateParameters object itself. + */ + public EncodedTaskStepUpdateParameters withEncodedValuesContent(String encodedValuesContent) { + this.encodedValuesContent = encodedValuesContent; + return this; + } + + /** + * Get the collection of overridable values that can be passed when running a task. + * + * @return the values value + */ + public List values() { + return this.values; + } + + /** + * Set the collection of overridable values that can be passed when running a task. + * + * @param values the values value to set + * @return the EncodedTaskStepUpdateParameters object itself. + */ + public EncodedTaskStepUpdateParameters withValues(List values) { + this.values = values; + 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 new file mode 100644 index 000000000000..47fddde2b32a --- /dev/null +++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/FileTaskRunRequest.java @@ -0,0 +1,211 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.containerregistry.v2018_09_01; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * The request parameters for a scheduling run against a task file. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("FileTaskRunRequest") +public class FileTaskRunRequest extends RunRequest { + /** + * The template/definition file path relative to the source. + */ + @JsonProperty(value = "taskFilePath", required = true) + private String taskFilePath; + + /** + * The values/parameters file path relative to the source. + */ + @JsonProperty(value = "valuesFilePath") + private String valuesFilePath; + + /** + * The collection of overridable values that can be passed when running a + * task. + */ + @JsonProperty(value = "values") + 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. + */ + @JsonProperty(value = "timeout") + private Integer timeout; + + /** + * The platform properties against which the build will happen. + */ + @JsonProperty(value = "platform", required = true) + private PlatformProperties platform; + + /** + * The machine configuration of the build agent. + */ + @JsonProperty(value = "agentConfiguration") + private AgentProperties agentConfiguration; + + /** + * Get the template/definition file path relative to the source. + * + * @return the taskFilePath value + */ + public String taskFilePath() { + return this.taskFilePath; + } + + /** + * Set the template/definition file path relative to the source. + * + * @param taskFilePath the taskFilePath value to set + * @return the FileTaskRunRequest object itself. + */ + public FileTaskRunRequest withTaskFilePath(String taskFilePath) { + this.taskFilePath = taskFilePath; + return this; + } + + /** + * Get the values/parameters file path relative to the source. + * + * @return the valuesFilePath value + */ + public String valuesFilePath() { + return this.valuesFilePath; + } + + /** + * Set the values/parameters file path relative to the source. + * + * @param valuesFilePath the valuesFilePath value to set + * @return the FileTaskRunRequest object itself. + */ + public FileTaskRunRequest withValuesFilePath(String valuesFilePath) { + this.valuesFilePath = valuesFilePath; + return this; + } + + /** + * Get the collection of overridable values that can be passed when running a task. + * + * @return the values value + */ + public List values() { + return this.values; + } + + /** + * Set the collection of overridable values that can be passed when running a task. + * + * @param values the values value to set + * @return the FileTaskRunRequest object itself. + */ + public FileTaskRunRequest withValues(List values) { + this.values = values; + return this; + } + + /** + * 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. + * + * @return the timeout value + */ + public Integer timeout() { + return this.timeout; + } + + /** + * Set build timeout in seconds. + * + * @param timeout the timeout value to set + * @return the FileTaskRunRequest object itself. + */ + public FileTaskRunRequest withTimeout(Integer timeout) { + this.timeout = timeout; + return this; + } + + /** + * Get the platform properties against which the build will happen. + * + * @return the platform value + */ + public PlatformProperties platform() { + return this.platform; + } + + /** + * Set the platform properties against which the build will happen. + * + * @param platform the platform value to set + * @return the FileTaskRunRequest object itself. + */ + public FileTaskRunRequest withPlatform(PlatformProperties platform) { + this.platform = platform; + return this; + } + + /** + * Get the machine configuration of the build agent. + * + * @return the agentConfiguration value + */ + public AgentProperties agentConfiguration() { + return this.agentConfiguration; + } + + /** + * Set the machine configuration of the build agent. + * + * @param agentConfiguration the agentConfiguration value to set + * @return the FileTaskRunRequest object itself. + */ + public FileTaskRunRequest withAgentConfiguration(AgentProperties agentConfiguration) { + this.agentConfiguration = agentConfiguration; + 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 new file mode 100644 index 000000000000..b7ef0a7d5451 --- /dev/null +++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/FileTaskStep.java @@ -0,0 +1,131 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.containerregistry.v2018_09_01; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * The properties of a task step. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("FileTask") +public class FileTaskStep extends TaskStepProperties { + /** + * The task template/definition file path relative to the source context. + */ + @JsonProperty(value = "taskFilePath", required = true) + private String taskFilePath; + + /** + * The task values/parameters file path relative to the source context. + */ + @JsonProperty(value = "valuesFilePath") + private String valuesFilePath; + + /** + * The collection of overridable values that can be passed when running a + * task. + */ + @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. + * + * @return the taskFilePath value + */ + public String taskFilePath() { + return this.taskFilePath; + } + + /** + * Set the task template/definition file path relative to the source context. + * + * @param taskFilePath the taskFilePath value to set + * @return the FileTaskStep object itself. + */ + public FileTaskStep withTaskFilePath(String taskFilePath) { + this.taskFilePath = taskFilePath; + return this; + } + + /** + * Get the task values/parameters file path relative to the source context. + * + * @return the valuesFilePath value + */ + public String valuesFilePath() { + return this.valuesFilePath; + } + + /** + * Set the task values/parameters file path relative to the source context. + * + * @param valuesFilePath the valuesFilePath value to set + * @return the FileTaskStep object itself. + */ + public FileTaskStep withValuesFilePath(String valuesFilePath) { + this.valuesFilePath = valuesFilePath; + return this; + } + + /** + * Get the collection of overridable values that can be passed when running a task. + * + * @return the values value + */ + public List values() { + return this.values; + } + + /** + * Set the collection of overridable values that can be passed when running a task. + * + * @param values the values value to set + * @return the FileTaskStep object itself. + */ + public FileTaskStep withValues(List values) { + this.values = 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 new file mode 100644 index 000000000000..671637de7eef --- /dev/null +++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/FileTaskStepUpdateParameters.java @@ -0,0 +1,131 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.containerregistry.v2018_09_01; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * The properties of updating a task step. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("FileTask") +public class FileTaskStepUpdateParameters extends TaskStepUpdateParameters { + /** + * The task template/definition file path relative to the source context. + */ + @JsonProperty(value = "taskFilePath") + private String taskFilePath; + + /** + * The values/parameters file path relative to the source context. + */ + @JsonProperty(value = "valuesFilePath") + private String valuesFilePath; + + /** + * The collection of overridable values that can be passed when running a + * task. + */ + @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. + * + * @return the taskFilePath value + */ + public String taskFilePath() { + return this.taskFilePath; + } + + /** + * Set the task template/definition file path relative to the source context. + * + * @param taskFilePath the taskFilePath value to set + * @return the FileTaskStepUpdateParameters object itself. + */ + public FileTaskStepUpdateParameters withTaskFilePath(String taskFilePath) { + this.taskFilePath = taskFilePath; + return this; + } + + /** + * Get the values/parameters file path relative to the source context. + * + * @return the valuesFilePath value + */ + public String valuesFilePath() { + return this.valuesFilePath; + } + + /** + * Set the values/parameters file path relative to the source context. + * + * @param valuesFilePath the valuesFilePath value to set + * @return the FileTaskStepUpdateParameters object itself. + */ + public FileTaskStepUpdateParameters withValuesFilePath(String valuesFilePath) { + this.valuesFilePath = valuesFilePath; + return this; + } + + /** + * Get the collection of overridable values that can be passed when running a task. + * + * @return the values value + */ + public List values() { + return this.values; + } + + /** + * Set the collection of overridable values that can be passed when running a task. + * + * @param values the values value to set + * @return the FileTaskStepUpdateParameters object itself. + */ + public FileTaskStepUpdateParameters withValues(List values) { + this.values = 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/PlatformProperties.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/PlatformProperties.java index bad1c6c093f9..ebc01bdcbfb5 100644 --- a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/PlatformProperties.java +++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/PlatformProperties.java @@ -24,7 +24,7 @@ public class PlatformProperties { /** * The OS architecture. Possible values include: 'amd64', 'x86', 'arm'. */ - @JsonProperty(value = "architecture", required = true) + @JsonProperty(value = "architecture") private Architecture architecture; /** diff --git a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/RunRequest.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/RunRequest.java index b88efd3b47b0..fda7672c5183 100644 --- a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/RunRequest.java +++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/RunRequest.java @@ -20,9 +20,9 @@ @JsonTypeName("RunRequest") @JsonSubTypes({ @JsonSubTypes.Type(name = "DockerBuildRequest", value = DockerBuildRequest.class), - @JsonSubTypes.Type(name = "BuildTaskRequest", value = BuildTaskRequest.class), + @JsonSubTypes.Type(name = "FileTaskRunRequest", value = FileTaskRunRequest.class), @JsonSubTypes.Type(name = "TaskRunRequest", value = TaskRunRequest.class), - @JsonSubTypes.Type(name = "QuickTaskRunRequest", value = QuickTaskRunRequest.class) + @JsonSubTypes.Type(name = "EncodedTaskRunRequest", value = EncodedTaskRunRequest.class) }) public class RunRequest { /** diff --git a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/TaskStepProperties.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/TaskStepProperties.java index dff144f41269..2c43442c7010 100644 --- a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/TaskStepProperties.java +++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/TaskStepProperties.java @@ -21,8 +21,8 @@ @JsonTypeName("TaskStepProperties") @JsonSubTypes({ @JsonSubTypes.Type(name = "Docker", value = DockerBuildStep.class), - @JsonSubTypes.Type(name = "BuildTask", value = BuildTaskStep.class), - @JsonSubTypes.Type(name = "RunTask", value = RunTaskStep.class) + @JsonSubTypes.Type(name = "FileTask", value = FileTaskStep.class), + @JsonSubTypes.Type(name = "EncodedTask", value = EncodedTaskStep.class) }) public class TaskStepProperties { /** 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 1d0acc4bf202..015c906a2549 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 @@ -19,8 +19,8 @@ @JsonTypeName("TaskStepUpdateParameters") @JsonSubTypes({ @JsonSubTypes.Type(name = "Docker", value = DockerBuildStepUpdateParameters.class), - @JsonSubTypes.Type(name = "BuildTask", value = BuildTaskStepUpdateParameters.class), - @JsonSubTypes.Type(name = "RunTask", value = RunTaskStepUpdateParameters.class) + @JsonSubTypes.Type(name = "FileTask", value = FileTaskStepUpdateParameters.class), + @JsonSubTypes.Type(name = "EncodedTask", value = EncodedTaskStepUpdateParameters.class) }) public class TaskStepUpdateParameters { }