diff --git a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/Credentials.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/Credentials.java new file mode 100644 index 000000000000..b560a1867877 --- /dev/null +++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/Credentials.java @@ -0,0 +1,80 @@ +/** + * 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.Map; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The parameters that describes a set of credentials that will be used when a + * run is invoked. + */ +public class Credentials { + /** + * Describes the credential parameters for accessing the source registry. + */ + @JsonProperty(value = "sourceRegistry") + private SourceRegistryCredentials sourceRegistry; + + /** + * Describes the credential parameters for accessing other custom + * registries. The key + * for the dictionary item will be the registry login server + * (myregistry.azurecr.io) and + * the value of the item will be the registry credentials for accessing the + * registry. + */ + @JsonProperty(value = "customRegistries") + private Map customRegistries; + + /** + * Get describes the credential parameters for accessing the source registry. + * + * @return the sourceRegistry value + */ + public SourceRegistryCredentials sourceRegistry() { + return this.sourceRegistry; + } + + /** + * Set describes the credential parameters for accessing the source registry. + * + * @param sourceRegistry the sourceRegistry value to set + * @return the Credentials object itself. + */ + public Credentials withSourceRegistry(SourceRegistryCredentials sourceRegistry) { + this.sourceRegistry = sourceRegistry; + return this; + } + + /** + * Get describes the credential parameters for accessing other custom registries. The key + for the dictionary item will be the registry login server (myregistry.azurecr.io) and + the value of the item will be the registry credentials for accessing the registry. + * + * @return the customRegistries value + */ + public Map customRegistries() { + return this.customRegistries; + } + + /** + * Set describes the credential parameters for accessing other custom registries. The key + for the dictionary item will be the registry login server (myregistry.azurecr.io) and + the value of the item will be the registry credentials for accessing the registry. + * + * @param customRegistries the customRegistries value to set + * @return the Credentials object itself. + */ + public Credentials withCustomRegistries(Map customRegistries) { + this.customRegistries = customRegistries; + return this; + } + +} diff --git a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/CustomRegistryCredentials.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/CustomRegistryCredentials.java new file mode 100644 index 000000000000..2c40e09b0199 --- /dev/null +++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/CustomRegistryCredentials.java @@ -0,0 +1,74 @@ +/** + * 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 com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Describes the credentials that will be used to access a custom registry + * during a run. + */ +public class CustomRegistryCredentials { + /** + * The username for logging into the custom registry. + */ + @JsonProperty(value = "userName") + private SecretObject userName; + + /** + * The password for logging into the custom registry. The password is a + * secret + * object that allows multiple ways of providing the value for it. + */ + @JsonProperty(value = "password") + private SecretObject password; + + /** + * Get the username for logging into the custom registry. + * + * @return the userName value + */ + public SecretObject userName() { + return this.userName; + } + + /** + * Set the username for logging into the custom registry. + * + * @param userName the userName value to set + * @return the CustomRegistryCredentials object itself. + */ + public CustomRegistryCredentials withUserName(SecretObject userName) { + this.userName = userName; + return this; + } + + /** + * Get the password for logging into the custom registry. The password is a secret + object that allows multiple ways of providing the value for it. + * + * @return the password value + */ + public SecretObject password() { + return this.password; + } + + /** + * Set the password for logging into the custom registry. The password is a secret + object that allows multiple ways of providing the value for it. + * + * @param password the password value to set + * @return the CustomRegistryCredentials object itself. + */ + public CustomRegistryCredentials withPassword(SecretObject password) { + this.password = password; + return this; + } + +} 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 49c4ff08b1bb..f9d42233330d 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 @@ -45,6 +45,12 @@ public class DockerBuildRequest extends RunRequest { @JsonProperty(value = "dockerFilePath", required = true) private String dockerFilePath; + /** + * The name of the target build stage for the docker build. + */ + @JsonProperty(value = "target") + private String target; + /** * The collection of override arguments to be used when executing the run. */ @@ -78,6 +84,13 @@ public class DockerBuildRequest extends RunRequest { @JsonProperty(value = "sourceLocation") private String sourceLocation; + /** + * The properties that describes a set of credentials that will be used + * when this run is invoked. + */ + @JsonProperty(value = "credentials") + private Credentials credentials; + /** * Get the fully qualified image names including the repository and tag. * @@ -158,6 +171,26 @@ public DockerBuildRequest withDockerFilePath(String dockerFilePath) { return this; } + /** + * Get the name of the target build stage for the docker build. + * + * @return the target value + */ + public String target() { + return this.target; + } + + /** + * Set the name of the target build stage for the docker build. + * + * @param target the target value to set + * @return the DockerBuildRequest object itself. + */ + public DockerBuildRequest withTarget(String target) { + this.target = target; + return this; + } + /** * Get the collection of override arguments to be used when executing the run. * @@ -260,4 +293,24 @@ public DockerBuildRequest withSourceLocation(String sourceLocation) { return this; } + /** + * Get the properties that describes a set of credentials that will be used when this run is invoked. + * + * @return the credentials value + */ + public Credentials credentials() { + return this.credentials; + } + + /** + * Set the properties that describes a set of credentials that will be used when this run is invoked. + * + * @param credentials the credentials value to set + * @return the DockerBuildRequest object itself. + */ + public DockerBuildRequest withCredentials(Credentials credentials) { + this.credentials = credentials; + 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 07dbfcf21097..3889cca09a59 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 @@ -45,6 +45,12 @@ public class DockerBuildStep extends TaskStepProperties { @JsonProperty(value = "dockerFilePath", required = true) private String dockerFilePath; + /** + * The name of the target build stage for the docker build. + */ + @JsonProperty(value = "target") + private String target; + /** * The collection of override arguments to be used when executing this * build step. @@ -132,6 +138,26 @@ public DockerBuildStep withDockerFilePath(String dockerFilePath) { return this; } + /** + * Get the name of the target build stage for the docker build. + * + * @return the target value + */ + public String target() { + return this.target; + } + + /** + * Set the name of the target build stage for the docker build. + * + * @param target the target value to set + * @return the DockerBuildStep object itself. + */ + public DockerBuildStep withTarget(String target) { + this.target = target; + return this; + } + /** * Get the collection of override arguments to be used when executing this build step. * 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 57a180720f00..81ecffa0ff9d 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,6 +52,12 @@ public class DockerBuildStepUpdateParameters extends TaskStepUpdateParameters { @JsonProperty(value = "arguments") private List arguments; + /** + * The name of the target build stage for the docker build. + */ + @JsonProperty(value = "target") + private String target; + /** * Get the fully qualified image names including the repository and tag. * @@ -152,4 +158,24 @@ public DockerBuildStepUpdateParameters withArguments(List arguments) { return this; } + /** + * Get the name of the target build stage for the docker build. + * + * @return the target value + */ + public String target() { + return this.target; + } + + /** + * Set the name of the target build stage for the docker build. + * + * @param target the target value to set + * @return the DockerBuildStepUpdateParameters object itself. + */ + public DockerBuildStepUpdateParameters withTarget(String target) { + this.target = target; + 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 a3c65404c1a8..bc60f0279ffc 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 @@ -65,6 +65,13 @@ public class EncodedTaskRunRequest extends RunRequest { @JsonProperty(value = "sourceLocation") private String sourceLocation; + /** + * The properties that describes a set of credentials that will be used + * when this run is invoked. + */ + @JsonProperty(value = "credentials") + private Credentials credentials; + /** * Get base64 encoded value of the template/definition file content. * @@ -207,4 +214,24 @@ public EncodedTaskRunRequest withSourceLocation(String sourceLocation) { return this; } + /** + * Get the properties that describes a set of credentials that will be used when this run is invoked. + * + * @return the credentials value + */ + public Credentials credentials() { + return this.credentials; + } + + /** + * Set the properties that describes a set of credentials that will be used when this run is invoked. + * + * @param credentials the credentials value to set + * @return the EncodedTaskRunRequest object itself. + */ + public EncodedTaskRunRequest withCredentials(Credentials credentials) { + this.credentials = credentials; + 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 85c9508d856f..5f0f75f4cb69 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 @@ -65,6 +65,13 @@ public class FileTaskRunRequest extends RunRequest { @JsonProperty(value = "sourceLocation") private String sourceLocation; + /** + * The properties that describes a set of credentials that will be used + * when this run is invoked. + */ + @JsonProperty(value = "credentials") + private Credentials credentials; + /** * Get the template/definition file path relative to the source. * @@ -207,4 +214,24 @@ public FileTaskRunRequest withSourceLocation(String sourceLocation) { return this; } + /** + * Get the properties that describes a set of credentials that will be used when this run is invoked. + * + * @return the credentials value + */ + public Credentials credentials() { + return this.credentials; + } + + /** + * Set the properties that describes a set of credentials that will be used when this run is invoked. + * + * @param credentials the credentials value to set + * @return the FileTaskRunRequest object itself. + */ + public FileTaskRunRequest withCredentials(Credentials credentials) { + this.credentials = credentials; + return this; + } + } diff --git a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/Run.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/Run.java index 636c2fa24826..f06586d0e3aa 100644 --- a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/Run.java +++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/Run.java @@ -33,6 +33,11 @@ public interface Run extends HasInner, Indexable, Refreshable, Up */ DateTime createTime(); + /** + * @return the customRegistries value. + */ + List customRegistries(); + /** * @return the finishTime value. */ @@ -88,6 +93,11 @@ public interface Run extends HasInner, Indexable, Refreshable, Up */ RunType runType(); + /** + * @return the sourceRegistryAuth value. + */ + String sourceRegistryAuth(); + /** * @return the sourceTrigger value. */ diff --git a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/SecretObject.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/SecretObject.java new file mode 100644 index 000000000000..8f5ee8620f57 --- /dev/null +++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/SecretObject.java @@ -0,0 +1,80 @@ +/** + * 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 com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Describes the properties of a secret object value. + */ +public class SecretObject { + /** + * The value of the secret. The format of this value will be determined + * based on the type of the secret object. If the type is Opaque, the value + * will be + * used as is without any modification. + */ + @JsonProperty(value = "value") + private String value; + + /** + * The type of the secret object which determines how the value of the + * secret object has to be + * interpreted. Possible values include: 'Opaque'. + */ + @JsonProperty(value = "type") + private SecretObjectType type; + + /** + * Get the value of the secret. The format of this value will be determined + based on the type of the secret object. If the type is Opaque, the value will be + used as is without any modification. + * + * @return the value value + */ + public String value() { + return this.value; + } + + /** + * Set the value of the secret. The format of this value will be determined + based on the type of the secret object. If the type is Opaque, the value will be + used as is without any modification. + * + * @param value the value value to set + * @return the SecretObject object itself. + */ + public SecretObject withValue(String value) { + this.value = value; + return this; + } + + /** + * Get the type of the secret object which determines how the value of the secret object has to be + interpreted. Possible values include: 'Opaque'. + * + * @return the type value + */ + public SecretObjectType type() { + return this.type; + } + + /** + * Set the type of the secret object which determines how the value of the secret object has to be + interpreted. Possible values include: 'Opaque'. + * + * @param type the type value to set + * @return the SecretObject object itself. + */ + public SecretObject withType(SecretObjectType type) { + this.type = type; + return this; + } + +} diff --git a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/SecretObjectType.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/SecretObjectType.java new file mode 100644 index 000000000000..6b9244e8ecc2 --- /dev/null +++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/SecretObjectType.java @@ -0,0 +1,38 @@ +/** + * 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.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for SecretObjectType. + */ +public final class SecretObjectType extends ExpandableStringEnum { + /** Static value Opaque for SecretObjectType. */ + public static final SecretObjectType OPAQUE = fromString("Opaque"); + + /** + * Creates or finds a SecretObjectType from its string representation. + * @param name a name to look for + * @return the corresponding SecretObjectType + */ + @JsonCreator + public static SecretObjectType fromString(String name) { + return fromString(name, SecretObjectType.class); + } + + /** + * @return known SecretObjectType values + */ + public static Collection values() { + return values(SecretObjectType.class); + } +} diff --git a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/SourceRegistryCredentials.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/SourceRegistryCredentials.java new file mode 100644 index 000000000000..8291e2b56be0 --- /dev/null +++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/SourceRegistryCredentials.java @@ -0,0 +1,52 @@ +/** + * 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 com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Describes the credential parameters for accessing the source registry. + */ +public class SourceRegistryCredentials { + /** + * The authentication mode which determines the source registry login + * scope. The credentials for the source registry + * will be generated using the given scope. These credentials will be used + * to login to + * the source registry during the run. Possible values include: 'None', + * 'Default'. + */ + @JsonProperty(value = "loginMode") + private SourceRegistryLoginMode loginMode; + + /** + * Get the authentication mode which determines the source registry login scope. The credentials for the source registry + will be generated using the given scope. These credentials will be used to login to + the source registry during the run. Possible values include: 'None', 'Default'. + * + * @return the loginMode value + */ + public SourceRegistryLoginMode loginMode() { + return this.loginMode; + } + + /** + * Set the authentication mode which determines the source registry login scope. The credentials for the source registry + will be generated using the given scope. These credentials will be used to login to + the source registry during the run. Possible values include: 'None', 'Default'. + * + * @param loginMode the loginMode value to set + * @return the SourceRegistryCredentials object itself. + */ + public SourceRegistryCredentials withLoginMode(SourceRegistryLoginMode loginMode) { + this.loginMode = loginMode; + return this; + } + +} diff --git a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/SourceRegistryLoginMode.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/SourceRegistryLoginMode.java new file mode 100644 index 000000000000..3b9c361bf208 --- /dev/null +++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/SourceRegistryLoginMode.java @@ -0,0 +1,41 @@ +/** + * 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.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for SourceRegistryLoginMode. + */ +public final class SourceRegistryLoginMode extends ExpandableStringEnum { + /** Static value None for SourceRegistryLoginMode. */ + public static final SourceRegistryLoginMode NONE = fromString("None"); + + /** Static value Default for SourceRegistryLoginMode. */ + public static final SourceRegistryLoginMode DEFAULT = fromString("Default"); + + /** + * Creates or finds a SourceRegistryLoginMode from its string representation. + * @param name a name to look for + * @return the corresponding SourceRegistryLoginMode + */ + @JsonCreator + public static SourceRegistryLoginMode fromString(String name) { + return fromString(name, SourceRegistryLoginMode.class); + } + + /** + * @return known SourceRegistryLoginMode values + */ + public static Collection values() { + return values(SourceRegistryLoginMode.class); + } +} diff --git a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/Task.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/Task.java index eba8d044c158..0023b1846f60 100644 --- a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/Task.java +++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/Task.java @@ -34,6 +34,11 @@ public interface Task extends HasInner, Indexable, Refreshable, */ DateTime creationDate(); + /** + * @return the credentials value. + */ + Credentials credentials(); + /** * @return the id value. */ @@ -166,6 +171,18 @@ interface WithAgentConfiguration { WithCreate withAgentConfiguration(AgentProperties agentConfiguration); } + /** + * The stage of the task definition allowing to specify Credentials. + */ + interface WithCredentials { + /** + * Specifies credentials. + * @param credentials The properties that describes a set of credentials that will be used when this run is invoked + * @return the next definition stage + */ + WithCreate withCredentials(Credentials credentials); + } + /** * The stage of the task definition allowing to specify Status. */ @@ -219,13 +236,13 @@ interface WithTrigger { * the resource to be created (via {@link WithCreate#create()}), but also allows * for any other optional settings to be specified. */ - interface WithCreate extends Creatable, DefinitionStages.WithAgentConfiguration, DefinitionStages.WithStatus, DefinitionStages.WithTags, DefinitionStages.WithTimeout, DefinitionStages.WithTrigger { + interface WithCreate extends Creatable, DefinitionStages.WithAgentConfiguration, DefinitionStages.WithCredentials, DefinitionStages.WithStatus, DefinitionStages.WithTags, DefinitionStages.WithTimeout, DefinitionStages.WithTrigger { } } /** * The template for a Task update operation, containing all the settings that can be modified. */ - interface Update extends Appliable, UpdateStages.WithAgentConfiguration, UpdateStages.WithPlatform, UpdateStages.WithStatus, UpdateStages.WithStep, UpdateStages.WithTags, UpdateStages.WithTimeout, UpdateStages.WithTrigger { + interface Update extends Appliable, UpdateStages.WithAgentConfiguration, UpdateStages.WithCredentials, UpdateStages.WithPlatform, UpdateStages.WithStatus, UpdateStages.WithStep, UpdateStages.WithTags, UpdateStages.WithTimeout, UpdateStages.WithTrigger { } /** @@ -244,6 +261,18 @@ interface WithAgentConfiguration { Update withAgentConfiguration(AgentProperties agentConfiguration); } + /** + * The stage of the task update allowing to specify Credentials. + */ + interface WithCredentials { + /** + * Specifies credentials. + * @param credentials The parameters that describes a set of credentials that will be used when this run is invoked + * @return the next update stage + */ + Update withCredentials(Credentials credentials); + } + /** * The stage of the task update allowing to specify Platform. */ diff --git a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/TaskUpdateParameters.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/TaskUpdateParameters.java index 1a0a16915365..0815d45e8a8e 100644 --- a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/TaskUpdateParameters.java +++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/TaskUpdateParameters.java @@ -54,6 +54,13 @@ public class TaskUpdateParameters { @JsonProperty(value = "properties.trigger") private TriggerUpdateParameters trigger; + /** + * The parameters that describes a set of credentials that will be used + * when this run is invoked. + */ + @JsonProperty(value = "properties.credentials") + private Credentials credentials; + /** * The ARM resource tags. */ @@ -180,6 +187,26 @@ public TaskUpdateParameters withTrigger(TriggerUpdateParameters trigger) { return this; } + /** + * Get the parameters that describes a set of credentials that will be used when this run is invoked. + * + * @return the credentials value + */ + public Credentials credentials() { + return this.credentials; + } + + /** + * Set the parameters that describes a set of credentials that will be used when this run is invoked. + * + * @param credentials the credentials value to set + * @return the TaskUpdateParameters object itself. + */ + public TaskUpdateParameters withCredentials(Credentials credentials) { + this.credentials = credentials; + return this; + } + /** * Get the ARM resource tags. * diff --git a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/implementation/RunImpl.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/implementation/RunImpl.java index 212203f91ded..75d8200da58a 100644 --- a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/implementation/RunImpl.java +++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/implementation/RunImpl.java @@ -13,8 +13,8 @@ import rx.Observable; import com.microsoft.azure.management.containerregistry.v2018_09_01.AgentProperties; import org.joda.time.DateTime; -import com.microsoft.azure.management.containerregistry.v2018_09_01.ImageUpdateTrigger; import java.util.List; +import com.microsoft.azure.management.containerregistry.v2018_09_01.ImageUpdateTrigger; import com.microsoft.azure.management.containerregistry.v2018_09_01.ImageDescriptor; import com.microsoft.azure.management.containerregistry.v2018_09_01.PlatformProperties; import com.microsoft.azure.management.containerregistry.v2018_09_01.ProvisioningState; @@ -89,6 +89,11 @@ public DateTime createTime() { return this.inner().createTime(); } + @Override + public List customRegistries() { + return this.inner().customRegistries(); + } + @Override public DateTime finishTime() { return this.inner().finishTime(); @@ -144,6 +149,11 @@ public RunType runType() { return this.inner().runType(); } + @Override + public String sourceRegistryAuth() { + return this.inner().sourceRegistryAuth(); + } + @Override public SourceTriggerDescriptor sourceTrigger() { return this.inner().sourceTrigger(); 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 e892261af122..991e6bb5b593 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 @@ -98,12 +98,6 @@ public class RunInner extends ProxyResource { @JsonProperty(value = "properties.sourceTrigger") private SourceTriggerDescriptor sourceTrigger; - /** - * The value that indicates whether archiving is enabled or not. - */ - @JsonProperty(value = "properties.isArchiveEnabled") - private Boolean isArchiveEnabled; - /** * The platform properties against which the run will happen. */ @@ -116,6 +110,19 @@ public class RunInner extends ProxyResource { @JsonProperty(value = "properties.agentConfiguration") private AgentProperties agentConfiguration; + /** + * The scope of the credentials that were used to login to the source + * registry during this run. + */ + @JsonProperty(value = "properties.sourceRegistryAuth") + private String sourceRegistryAuth; + + /** + * The list of custom registries that were logged in during this run. + */ + @JsonProperty(value = "properties.customRegistries") + private List customRegistries; + /** * The provisioning state of a run. Possible values include: 'Creating', * 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled'. @@ -123,6 +130,12 @@ public class RunInner extends ProxyResource { @JsonProperty(value = "properties.provisioningState") private ProvisioningState provisioningState; + /** + * The value that indicates whether archiving is enabled or not. + */ + @JsonProperty(value = "properties.isArchiveEnabled") + private Boolean isArchiveEnabled; + /** * Get the unique identifier for the run. * @@ -343,26 +356,6 @@ public RunInner withSourceTrigger(SourceTriggerDescriptor sourceTrigger) { return this; } - /** - * Get the value that indicates whether archiving is enabled or not. - * - * @return the isArchiveEnabled value - */ - public Boolean isArchiveEnabled() { - return this.isArchiveEnabled; - } - - /** - * Set the value that indicates whether archiving is enabled or not. - * - * @param isArchiveEnabled the isArchiveEnabled value to set - * @return the RunInner object itself. - */ - public RunInner withIsArchiveEnabled(Boolean isArchiveEnabled) { - this.isArchiveEnabled = isArchiveEnabled; - return this; - } - /** * Get the platform properties against which the run will happen. * @@ -403,6 +396,46 @@ public RunInner withAgentConfiguration(AgentProperties agentConfiguration) { return this; } + /** + * Get the scope of the credentials that were used to login to the source registry during this run. + * + * @return the sourceRegistryAuth value + */ + public String sourceRegistryAuth() { + return this.sourceRegistryAuth; + } + + /** + * Set the scope of the credentials that were used to login to the source registry during this run. + * + * @param sourceRegistryAuth the sourceRegistryAuth value to set + * @return the RunInner object itself. + */ + public RunInner withSourceRegistryAuth(String sourceRegistryAuth) { + this.sourceRegistryAuth = sourceRegistryAuth; + return this; + } + + /** + * Get the list of custom registries that were logged in during this run. + * + * @return the customRegistries value + */ + public List customRegistries() { + return this.customRegistries; + } + + /** + * Set the list of custom registries that were logged in during this run. + * + * @param customRegistries the customRegistries value to set + * @return the RunInner object itself. + */ + public RunInner withCustomRegistries(List customRegistries) { + this.customRegistries = customRegistries; + return this; + } + /** * Get the provisioning state of a run. Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled'. * @@ -423,4 +456,24 @@ public RunInner withProvisioningState(ProvisioningState provisioningState) { return this; } + /** + * Get the value that indicates whether archiving is enabled or not. + * + * @return the isArchiveEnabled value + */ + public Boolean isArchiveEnabled() { + return this.isArchiveEnabled; + } + + /** + * Set the value that indicates whether archiving is enabled or not. + * + * @param isArchiveEnabled the isArchiveEnabled value to set + * @return the RunInner object itself. + */ + public RunInner withIsArchiveEnabled(Boolean isArchiveEnabled) { + this.isArchiveEnabled = isArchiveEnabled; + return this; + } + } diff --git a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/implementation/TaskImpl.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/implementation/TaskImpl.java index 8be39a27a7ad..68b33e8f0f91 100644 --- a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/implementation/TaskImpl.java +++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/implementation/TaskImpl.java @@ -20,6 +20,7 @@ import com.microsoft.azure.management.containerregistry.v2018_09_01.AgentProperties; import com.microsoft.azure.management.containerregistry.v2018_09_01.TaskStepProperties; import com.microsoft.azure.management.containerregistry.v2018_09_01.TriggerProperties; +import com.microsoft.azure.management.containerregistry.v2018_09_01.Credentials; import com.microsoft.azure.management.containerregistry.v2018_09_01.PlatformUpdateParameters; import com.microsoft.azure.management.containerregistry.v2018_09_01.TaskStepUpdateParameters; import com.microsoft.azure.management.containerregistry.v2018_09_01.TriggerUpdateParameters; @@ -112,6 +113,11 @@ public DateTime creationDate() { return this.inner().creationDate(); } + @Override + public Credentials credentials() { + return this.inner().credentials(); + } + @Override public String id() { return this.inner().id(); @@ -226,6 +232,16 @@ public TaskImpl withAgentConfiguration(AgentProperties agentConfiguration) { return this; } + @Override + public TaskImpl withCredentials(Credentials credentials) { + if (isInCreateMode()) { + this.inner().withCredentials(credentials); + } else { + this.updateParameter.withCredentials(credentials); + } + return this; + } + @Override public TaskImpl withStatus(TaskStatus status) { if (isInCreateMode()) { diff --git a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/implementation/TaskInner.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/implementation/TaskInner.java index d0afcc59deec..9440f15c938c 100644 --- a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/implementation/TaskInner.java +++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/implementation/TaskInner.java @@ -15,6 +15,7 @@ import com.microsoft.azure.management.containerregistry.v2018_09_01.AgentProperties; import com.microsoft.azure.management.containerregistry.v2018_09_01.TaskStepProperties; import com.microsoft.azure.management.containerregistry.v2018_09_01.TriggerProperties; +import com.microsoft.azure.management.containerregistry.v2018_09_01.Credentials; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.azure.Resource; @@ -75,6 +76,13 @@ public class TaskInner extends Resource { @JsonProperty(value = "properties.trigger") private TriggerProperties trigger; + /** + * The properties that describes a set of credentials that will be used + * when this run is invoked. + */ + @JsonProperty(value = "properties.credentials") + private Credentials credentials; + /** * Get the provisioning state of the task. Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled'. * @@ -213,4 +221,24 @@ public TaskInner withTrigger(TriggerProperties trigger) { return this; } + /** + * Get the properties that describes a set of credentials that will be used when this run is invoked. + * + * @return the credentials value + */ + public Credentials credentials() { + return this.credentials; + } + + /** + * Set the properties that describes a set of credentials that will be used when this run is invoked. + * + * @param credentials the credentials value to set + * @return the TaskInner object itself. + */ + public TaskInner withCredentials(Credentials credentials) { + this.credentials = credentials; + return this; + } + }