diff --git a/containerregistry/resource-manager/v2016_06_27_preview/pom.xml b/containerregistry/resource-manager/v2016_06_27_preview/pom.xml
index 9bac60d539a1..6bc1f83e6ce1 100644
--- a/containerregistry/resource-manager/v2016_06_27_preview/pom.xml
+++ b/containerregistry/resource-manager/v2016_06_27_preview/pom.xml
@@ -11,7 +11,7 @@
com.microsoft.azureazure-arm-parent
- 1.0.0
+ 0.0.3-beta../../../pom.xmlazure-mgmt-containerregistry
diff --git a/containerregistry/resource-manager/v2017_03_01/pom.xml b/containerregistry/resource-manager/v2017_03_01/pom.xml
index 145e98d12fad..f106832a76eb 100644
--- a/containerregistry/resource-manager/v2017_03_01/pom.xml
+++ b/containerregistry/resource-manager/v2017_03_01/pom.xml
@@ -11,7 +11,7 @@
com.microsoft.azureazure-arm-parent
- 1.0.0
+ 0.0.3-beta../../../pom.xmlazure-mgmt-containerregistry
diff --git a/containerregistry/resource-manager/v2017_06_01_preview/pom.xml b/containerregistry/resource-manager/v2017_06_01_preview/pom.xml
index ef6c8503d59c..a80f9398f251 100644
--- a/containerregistry/resource-manager/v2017_06_01_preview/pom.xml
+++ b/containerregistry/resource-manager/v2017_06_01_preview/pom.xml
@@ -11,7 +11,7 @@
com.microsoft.azureazure-arm-parent
- 1.0.0
+ 0.0.3-beta../../../pom.xmlazure-mgmt-containerregistry
diff --git a/containerregistry/resource-manager/v2017_06_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2017_06_01_preview/Target.java b/containerregistry/resource-manager/v2017_06_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2017_06_01_preview/Target.java
index c3a24974a135..c14b7193d590 100644
--- a/containerregistry/resource-manager/v2017_06_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2017_06_01_preview/Target.java
+++ b/containerregistry/resource-manager/v2017_06_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2017_06_01_preview/Target.java
@@ -28,7 +28,7 @@ public class Target {
/**
* The digest of the content, as defined by the Registry V2 HTTP API
- * Specificiation.
+ * Specification.
*/
@JsonProperty(value = "digest")
private String digest;
@@ -98,7 +98,7 @@ public Target withSize(Long size) {
}
/**
- * Get the digest of the content, as defined by the Registry V2 HTTP API Specificiation.
+ * Get the digest of the content, as defined by the Registry V2 HTTP API Specification.
*
* @return the digest value
*/
@@ -107,7 +107,7 @@ public String digest() {
}
/**
- * Set the digest of the content, as defined by the Registry V2 HTTP API Specificiation.
+ * Set the digest of the content, as defined by the Registry V2 HTTP API Specification.
*
* @param digest the digest value to set
* @return the Target object itself.
diff --git a/containerregistry/resource-manager/v2017_10_01/pom.xml b/containerregistry/resource-manager/v2017_10_01/pom.xml
index aedc4db92ffb..33e2900cbc21 100644
--- a/containerregistry/resource-manager/v2017_10_01/pom.xml
+++ b/containerregistry/resource-manager/v2017_10_01/pom.xml
@@ -11,7 +11,7 @@
com.microsoft.azureazure-arm-parent
- 1.0.0
+ 0.0.3-beta../../../pom.xmlazure-mgmt-containerregistry
diff --git a/containerregistry/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/containerregistry/v2017_10_01/Action.java b/containerregistry/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/containerregistry/v2017_10_01/Action.java
new file mode 100644
index 000000000000..709a88cd1325
--- /dev/null
+++ b/containerregistry/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/containerregistry/v2017_10_01/Action.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.v2017_10_01;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for Action.
+ */
+public final class Action extends ExpandableStringEnum {
+ /** Static value Allow for Action. */
+ public static final Action ALLOW = fromString("Allow");
+
+ /**
+ * Creates or finds a Action from its string representation.
+ * @param name a name to look for
+ * @return the corresponding Action
+ */
+ @JsonCreator
+ public static Action fromString(String name) {
+ return fromString(name, Action.class);
+ }
+
+ /**
+ * @return known Action values
+ */
+ public static Collection values() {
+ return values(Action.class);
+ }
+}
diff --git a/containerregistry/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/containerregistry/v2017_10_01/DefaultAction.java b/containerregistry/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/containerregistry/v2017_10_01/DefaultAction.java
new file mode 100644
index 000000000000..f8b94e373f7d
--- /dev/null
+++ b/containerregistry/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/containerregistry/v2017_10_01/DefaultAction.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.v2017_10_01;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for DefaultAction.
+ */
+public final class DefaultAction extends ExpandableStringEnum {
+ /** Static value Allow for DefaultAction. */
+ public static final DefaultAction ALLOW = fromString("Allow");
+
+ /** Static value Deny for DefaultAction. */
+ public static final DefaultAction DENY = fromString("Deny");
+
+ /**
+ * Creates or finds a DefaultAction from its string representation.
+ * @param name a name to look for
+ * @return the corresponding DefaultAction
+ */
+ @JsonCreator
+ public static DefaultAction fromString(String name) {
+ return fromString(name, DefaultAction.class);
+ }
+
+ /**
+ * @return known DefaultAction values
+ */
+ public static Collection values() {
+ return values(DefaultAction.class);
+ }
+}
diff --git a/containerregistry/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/containerregistry/v2017_10_01/IPRule.java b/containerregistry/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/containerregistry/v2017_10_01/IPRule.java
new file mode 100644
index 000000000000..fd7e18bc27db
--- /dev/null
+++ b/containerregistry/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/containerregistry/v2017_10_01/IPRule.java
@@ -0,0 +1,70 @@
+/**
+ * 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.v2017_10_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * IP rule with specific IP or IP range in CIDR format.
+ */
+public class IPRule {
+ /**
+ * The action of IP ACL rule. Possible values include: 'Allow'.
+ */
+ @JsonProperty(value = "action")
+ private Action action;
+
+ /**
+ * Specifies the IP or IP range in CIDR format. Only IPV4 address is
+ * allowed.
+ */
+ @JsonProperty(value = "value", required = true)
+ private String iPAddressOrRange;
+
+ /**
+ * Get the action of IP ACL rule. Possible values include: 'Allow'.
+ *
+ * @return the action value
+ */
+ public Action action() {
+ return this.action;
+ }
+
+ /**
+ * Set the action of IP ACL rule. Possible values include: 'Allow'.
+ *
+ * @param action the action value to set
+ * @return the IPRule object itself.
+ */
+ public IPRule withAction(Action action) {
+ this.action = action;
+ return this;
+ }
+
+ /**
+ * Get specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
+ *
+ * @return the iPAddressOrRange value
+ */
+ public String iPAddressOrRange() {
+ return this.iPAddressOrRange;
+ }
+
+ /**
+ * Set specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
+ *
+ * @param iPAddressOrRange the iPAddressOrRange value to set
+ * @return the IPRule object itself.
+ */
+ public IPRule withIPAddressOrRange(String iPAddressOrRange) {
+ this.iPAddressOrRange = iPAddressOrRange;
+ return this;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/containerregistry/v2017_10_01/ImportSource.java b/containerregistry/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/containerregistry/v2017_10_01/ImportSource.java
index 81b5c0626dc3..fb6e17c1acbb 100644
--- a/containerregistry/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/containerregistry/v2017_10_01/ImportSource.java
+++ b/containerregistry/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/containerregistry/v2017_10_01/ImportSource.java
@@ -21,11 +21,17 @@ public class ImportSource {
private String resourceId;
/**
- * The address of the source registry.
+ * The address of the source registry (e.g. 'mcr.microsoft.com').
*/
@JsonProperty(value = "registryUri")
private String registryUri;
+ /**
+ * Credentials used when importing from a registry uri.
+ */
+ @JsonProperty(value = "credentials")
+ private ImportSourceCredentials credentials;
+
/**
* Repository name of the source image.
* Specify an image by repository ('hello-world'). This will use the
@@ -58,7 +64,7 @@ public ImportSource withResourceId(String resourceId) {
}
/**
- * Get the address of the source registry.
+ * Get the address of the source registry (e.g. 'mcr.microsoft.com').
*
* @return the registryUri value
*/
@@ -67,7 +73,7 @@ public String registryUri() {
}
/**
- * Set the address of the source registry.
+ * Set the address of the source registry (e.g. 'mcr.microsoft.com').
*
* @param registryUri the registryUri value to set
* @return the ImportSource object itself.
@@ -77,6 +83,26 @@ public ImportSource withRegistryUri(String registryUri) {
return this;
}
+ /**
+ * Get credentials used when importing from a registry uri.
+ *
+ * @return the credentials value
+ */
+ public ImportSourceCredentials credentials() {
+ return this.credentials;
+ }
+
+ /**
+ * Set credentials used when importing from a registry uri.
+ *
+ * @param credentials the credentials value to set
+ * @return the ImportSource object itself.
+ */
+ public ImportSource withCredentials(ImportSourceCredentials credentials) {
+ this.credentials = credentials;
+ return this;
+ }
+
/**
* Get repository name of the source image.
Specify an image by repository ('hello-world'). This will use the 'latest' tag.
diff --git a/containerregistry/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/containerregistry/v2017_10_01/ImportSourceCredentials.java b/containerregistry/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/containerregistry/v2017_10_01/ImportSourceCredentials.java
new file mode 100644
index 000000000000..5d551e0b6c65
--- /dev/null
+++ b/containerregistry/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/containerregistry/v2017_10_01/ImportSourceCredentials.java
@@ -0,0 +1,69 @@
+/**
+ * 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.v2017_10_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The ImportSourceCredentials model.
+ */
+public class ImportSourceCredentials {
+ /**
+ * The username to authenticate with the source registry.
+ */
+ @JsonProperty(value = "username")
+ private String username;
+
+ /**
+ * The password used to authenticate with the source registry.
+ */
+ @JsonProperty(value = "password", required = true)
+ private String password;
+
+ /**
+ * Get the username to authenticate with the source registry.
+ *
+ * @return the username value
+ */
+ public String username() {
+ return this.username;
+ }
+
+ /**
+ * Set the username to authenticate with the source registry.
+ *
+ * @param username the username value to set
+ * @return the ImportSourceCredentials object itself.
+ */
+ public ImportSourceCredentials withUsername(String username) {
+ this.username = username;
+ return this;
+ }
+
+ /**
+ * Get the password used to authenticate with the source registry.
+ *
+ * @return the password value
+ */
+ public String password() {
+ return this.password;
+ }
+
+ /**
+ * Set the password used to authenticate with the source registry.
+ *
+ * @param password the password value to set
+ * @return the ImportSourceCredentials object itself.
+ */
+ public ImportSourceCredentials withPassword(String password) {
+ this.password = password;
+ return this;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/containerregistry/v2017_10_01/NetworkRuleSet.java b/containerregistry/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/containerregistry/v2017_10_01/NetworkRuleSet.java
new file mode 100644
index 000000000000..63625d4440fd
--- /dev/null
+++ b/containerregistry/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/containerregistry/v2017_10_01/NetworkRuleSet.java
@@ -0,0 +1,97 @@
+/**
+ * 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.v2017_10_01;
+
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The network rule set for a container registry.
+ */
+public class NetworkRuleSet {
+ /**
+ * The default action of allow or deny when no other rules match. Possible
+ * values include: 'Allow', 'Deny'.
+ */
+ @JsonProperty(value = "defaultAction", required = true)
+ private DefaultAction defaultAction;
+
+ /**
+ * The virtual network rules.
+ */
+ @JsonProperty(value = "virtualNetworkRules")
+ private List virtualNetworkRules;
+
+ /**
+ * The IP ACL rules.
+ */
+ @JsonProperty(value = "ipRules")
+ private List ipRules;
+
+ /**
+ * Get the default action of allow or deny when no other rules match. Possible values include: 'Allow', 'Deny'.
+ *
+ * @return the defaultAction value
+ */
+ public DefaultAction defaultAction() {
+ return this.defaultAction;
+ }
+
+ /**
+ * Set the default action of allow or deny when no other rules match. Possible values include: 'Allow', 'Deny'.
+ *
+ * @param defaultAction the defaultAction value to set
+ * @return the NetworkRuleSet object itself.
+ */
+ public NetworkRuleSet withDefaultAction(DefaultAction defaultAction) {
+ this.defaultAction = defaultAction;
+ return this;
+ }
+
+ /**
+ * Get the virtual network rules.
+ *
+ * @return the virtualNetworkRules value
+ */
+ public List virtualNetworkRules() {
+ return this.virtualNetworkRules;
+ }
+
+ /**
+ * Set the virtual network rules.
+ *
+ * @param virtualNetworkRules the virtualNetworkRules value to set
+ * @return the NetworkRuleSet object itself.
+ */
+ public NetworkRuleSet withVirtualNetworkRules(List virtualNetworkRules) {
+ this.virtualNetworkRules = virtualNetworkRules;
+ return this;
+ }
+
+ /**
+ * Get the IP ACL rules.
+ *
+ * @return the ipRules value
+ */
+ public List ipRules() {
+ return this.ipRules;
+ }
+
+ /**
+ * Set the IP ACL rules.
+ *
+ * @param ipRules the ipRules value to set
+ * @return the NetworkRuleSet object itself.
+ */
+ public NetworkRuleSet withIpRules(List ipRules) {
+ this.ipRules = ipRules;
+ return this;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/containerregistry/v2017_10_01/Registry.java b/containerregistry/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/containerregistry/v2017_10_01/Registry.java
index 566b512b6fe6..0fe4f321e1a4 100644
--- a/containerregistry/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/containerregistry/v2017_10_01/Registry.java
+++ b/containerregistry/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/containerregistry/v2017_10_01/Registry.java
@@ -40,6 +40,11 @@ public interface Registry extends HasInner, Resource, GroupableRe
*/
String loginServer();
+ /**
+ * @return the networkRuleSet value.
+ */
+ NetworkRuleSet networkRuleSet();
+
/**
* @return the provisioningState value.
*/
@@ -106,6 +111,18 @@ interface WithAdminUserEnabled {
WithCreate withAdminUserEnabled(Boolean adminUserEnabled);
}
+ /**
+ * The stage of the registry definition allowing to specify NetworkRuleSet.
+ */
+ interface WithNetworkRuleSet {
+ /**
+ * Specifies networkRuleSet.
+ * @param networkRuleSet The network rule set for a container registry
+ * @return the next definition stage
+ */
+ WithCreate withNetworkRuleSet(NetworkRuleSet networkRuleSet);
+ }
+
/**
* The stage of the registry definition allowing to specify StorageAccount.
*/
@@ -123,13 +140,13 @@ interface WithStorageAccount {
* the resource to be created (via {@link WithCreate#create()}), but also allows
* for any other optional settings to be specified.
*/
- interface WithCreate extends Creatable, Resource.DefinitionWithTags, DefinitionStages.WithAdminUserEnabled, DefinitionStages.WithStorageAccount {
+ interface WithCreate extends Creatable, Resource.DefinitionWithTags, DefinitionStages.WithAdminUserEnabled, DefinitionStages.WithNetworkRuleSet, DefinitionStages.WithStorageAccount {
}
}
/**
* The template for a Registry update operation, containing all the settings that can be modified.
*/
- interface Update extends Appliable, Resource.UpdateWithTags, UpdateStages.WithAdminUserEnabled, UpdateStages.WithSku, UpdateStages.WithStorageAccount {
+ interface Update extends Appliable, Resource.UpdateWithTags, UpdateStages.WithAdminUserEnabled, UpdateStages.WithNetworkRuleSet, UpdateStages.WithSku, UpdateStages.WithStorageAccount {
}
/**
@@ -148,6 +165,18 @@ interface WithAdminUserEnabled {
Update withAdminUserEnabled(Boolean adminUserEnabled);
}
+ /**
+ * The stage of the registry update allowing to specify NetworkRuleSet.
+ */
+ interface WithNetworkRuleSet {
+ /**
+ * Specifies networkRuleSet.
+ * @param networkRuleSet The network rule set for a container registry
+ * @return the next update stage
+ */
+ Update withNetworkRuleSet(NetworkRuleSet networkRuleSet);
+ }
+
/**
* The stage of the registry update allowing to specify Sku.
*/
diff --git a/containerregistry/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/containerregistry/v2017_10_01/RegistryUpdateParameters.java b/containerregistry/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/containerregistry/v2017_10_01/RegistryUpdateParameters.java
index 12dd3899d44b..82a2fbccc2cc 100644
--- a/containerregistry/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/containerregistry/v2017_10_01/RegistryUpdateParameters.java
+++ b/containerregistry/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/containerregistry/v2017_10_01/RegistryUpdateParameters.java
@@ -43,6 +43,12 @@ public class RegistryUpdateParameters {
@JsonProperty(value = "properties.storageAccount")
private StorageAccountProperties storageAccount;
+ /**
+ * The network rule set for a container registry.
+ */
+ @JsonProperty(value = "properties.networkRuleSet")
+ private NetworkRuleSet networkRuleSet;
+
/**
* Get the tags for the container registry.
*
@@ -123,4 +129,24 @@ public RegistryUpdateParameters withStorageAccount(StorageAccountProperties stor
return this;
}
+ /**
+ * Get the network rule set for a container registry.
+ *
+ * @return the networkRuleSet value
+ */
+ public NetworkRuleSet networkRuleSet() {
+ return this.networkRuleSet;
+ }
+
+ /**
+ * Set the network rule set for a container registry.
+ *
+ * @param networkRuleSet the networkRuleSet value to set
+ * @return the RegistryUpdateParameters object itself.
+ */
+ public RegistryUpdateParameters withNetworkRuleSet(NetworkRuleSet networkRuleSet) {
+ this.networkRuleSet = networkRuleSet;
+ return this;
+ }
+
}
diff --git a/containerregistry/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/containerregistry/v2017_10_01/Target.java b/containerregistry/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/containerregistry/v2017_10_01/Target.java
index 0bab8d225b3b..98bed537ae20 100644
--- a/containerregistry/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/containerregistry/v2017_10_01/Target.java
+++ b/containerregistry/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/containerregistry/v2017_10_01/Target.java
@@ -57,6 +57,18 @@ public class Target {
@JsonProperty(value = "tag")
private String tag;
+ /**
+ * The name of the artifact.
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /**
+ * The version of the artifact.
+ */
+ @JsonProperty(value = "version")
+ private String version;
+
/**
* Get the MIME type of the referenced object.
*
@@ -197,4 +209,44 @@ public Target withTag(String tag) {
return this;
}
+ /**
+ * Get the name of the artifact.
+ *
+ * @return the name value
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name of the artifact.
+ *
+ * @param name the name value to set
+ * @return the Target object itself.
+ */
+ public Target withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the version of the artifact.
+ *
+ * @return the version value
+ */
+ public String version() {
+ return this.version;
+ }
+
+ /**
+ * Set the version of the artifact.
+ *
+ * @param version the version value to set
+ * @return the Target object itself.
+ */
+ public Target withVersion(String version) {
+ this.version = version;
+ return this;
+ }
+
}
diff --git a/containerregistry/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/containerregistry/v2017_10_01/VirtualNetworkRule.java b/containerregistry/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/containerregistry/v2017_10_01/VirtualNetworkRule.java
new file mode 100644
index 000000000000..f00b85796be0
--- /dev/null
+++ b/containerregistry/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/containerregistry/v2017_10_01/VirtualNetworkRule.java
@@ -0,0 +1,70 @@
+/**
+ * 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.v2017_10_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Virtual network rule.
+ */
+public class VirtualNetworkRule {
+ /**
+ * The action of virtual network rule. Possible values include: 'Allow'.
+ */
+ @JsonProperty(value = "action")
+ private Action action;
+
+ /**
+ * Resource ID of a subnet, for example:
+ * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.
+ */
+ @JsonProperty(value = "id", required = true)
+ private String virtualNetworkResourceId;
+
+ /**
+ * Get the action of virtual network rule. Possible values include: 'Allow'.
+ *
+ * @return the action value
+ */
+ public Action action() {
+ return this.action;
+ }
+
+ /**
+ * Set the action of virtual network rule. Possible values include: 'Allow'.
+ *
+ * @param action the action value to set
+ * @return the VirtualNetworkRule object itself.
+ */
+ public VirtualNetworkRule withAction(Action action) {
+ this.action = action;
+ return this;
+ }
+
+ /**
+ * Get resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.
+ *
+ * @return the virtualNetworkResourceId value
+ */
+ public String virtualNetworkResourceId() {
+ return this.virtualNetworkResourceId;
+ }
+
+ /**
+ * Set resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.
+ *
+ * @param virtualNetworkResourceId the virtualNetworkResourceId value to set
+ * @return the VirtualNetworkRule object itself.
+ */
+ public VirtualNetworkRule withVirtualNetworkResourceId(String virtualNetworkResourceId) {
+ this.virtualNetworkResourceId = virtualNetworkResourceId;
+ return this;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/containerregistry/v2017_10_01/WebhookAction.java b/containerregistry/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/containerregistry/v2017_10_01/WebhookAction.java
index 0bb9bed9ebf7..64bb26dab957 100644
--- a/containerregistry/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/containerregistry/v2017_10_01/WebhookAction.java
+++ b/containerregistry/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/containerregistry/v2017_10_01/WebhookAction.java
@@ -25,6 +25,12 @@ public final class WebhookAction extends ExpandableStringEnum {
/** Static value quarantine for WebhookAction. */
public static final WebhookAction QUARANTINE = fromString("quarantine");
+ /** Static value chart_push for WebhookAction. */
+ public static final WebhookAction CHART_PUSH = fromString("chart_push");
+
+ /** Static value chart_delete for WebhookAction. */
+ public static final WebhookAction CHART_DELETE = fromString("chart_delete");
+
/**
* Creates or finds a WebhookAction from its string representation.
* @param name a name to look for
diff --git a/containerregistry/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/containerregistry/v2017_10_01/implementation/RegistryImpl.java b/containerregistry/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/containerregistry/v2017_10_01/implementation/RegistryImpl.java
index f8fbda520871..d4bae027bc4b 100644
--- a/containerregistry/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/containerregistry/v2017_10_01/implementation/RegistryImpl.java
+++ b/containerregistry/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/containerregistry/v2017_10_01/implementation/RegistryImpl.java
@@ -17,6 +17,7 @@
import com.microsoft.azure.management.containerregistry.v2017_10_01.ProvisioningState;
import com.microsoft.azure.management.containerregistry.v2017_10_01.Status;
import com.microsoft.azure.management.containerregistry.v2017_10_01.StorageAccountProperties;
+import com.microsoft.azure.management.containerregistry.v2017_10_01.NetworkRuleSet;
import rx.functions.Func1;
class RegistryImpl extends GroupableResourceCoreImpl implements Registry, Registry.Definition, Registry.Update {
@@ -84,6 +85,11 @@ public String loginServer() {
return this.inner().loginServer();
}
+ @Override
+ public NetworkRuleSet networkRuleSet() {
+ return this.inner().networkRuleSet();
+ }
+
@Override
public ProvisioningState provisioningState() {
return this.inner().provisioningState();
@@ -124,6 +130,16 @@ public RegistryImpl withAdminUserEnabled(Boolean adminUserEnabled) {
return this;
}
+ @Override
+ public RegistryImpl withNetworkRuleSet(NetworkRuleSet networkRuleSet) {
+ if (isInCreateMode()) {
+ this.inner().withNetworkRuleSet(networkRuleSet);
+ } else {
+ this.updateParameter.withNetworkRuleSet(networkRuleSet);
+ }
+ return this;
+ }
+
@Override
public RegistryImpl withStorageAccount(StorageAccountProperties storageAccount) {
if (isInCreateMode()) {
diff --git a/containerregistry/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/containerregistry/v2017_10_01/implementation/RegistryInner.java b/containerregistry/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/containerregistry/v2017_10_01/implementation/RegistryInner.java
index 65021b6d8347..eef5e6c53382 100644
--- a/containerregistry/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/containerregistry/v2017_10_01/implementation/RegistryInner.java
+++ b/containerregistry/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/containerregistry/v2017_10_01/implementation/RegistryInner.java
@@ -13,6 +13,7 @@
import com.microsoft.azure.management.containerregistry.v2017_10_01.ProvisioningState;
import com.microsoft.azure.management.containerregistry.v2017_10_01.Status;
import com.microsoft.azure.management.containerregistry.v2017_10_01.StorageAccountProperties;
+import com.microsoft.azure.management.containerregistry.v2017_10_01.NetworkRuleSet;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
import com.microsoft.azure.Resource;
@@ -68,6 +69,12 @@ public class RegistryInner extends Resource {
@JsonProperty(value = "properties.storageAccount")
private StorageAccountProperties storageAccount;
+ /**
+ * The network rule set for a container registry.
+ */
+ @JsonProperty(value = "properties.networkRuleSet")
+ private NetworkRuleSet networkRuleSet;
+
/**
* Get the SKU of the container registry.
*
@@ -164,4 +171,24 @@ public RegistryInner withStorageAccount(StorageAccountProperties storageAccount)
return this;
}
+ /**
+ * Get the network rule set for a container registry.
+ *
+ * @return the networkRuleSet value
+ */
+ public NetworkRuleSet networkRuleSet() {
+ return this.networkRuleSet;
+ }
+
+ /**
+ * Set the network rule set for a container registry.
+ *
+ * @param networkRuleSet the networkRuleSet value to set
+ * @return the RegistryInner object itself.
+ */
+ public RegistryInner withNetworkRuleSet(NetworkRuleSet networkRuleSet) {
+ this.networkRuleSet = networkRuleSet;
+ return this;
+ }
+
}
diff --git a/containerregistry/resource-manager/v2018_02_01_preview/pom.xml b/containerregistry/resource-manager/v2018_02_01_preview/pom.xml
index 7bc1414a6da8..e1671d111049 100644
--- a/containerregistry/resource-manager/v2018_02_01_preview/pom.xml
+++ b/containerregistry/resource-manager/v2018_02_01_preview/pom.xml
@@ -11,7 +11,7 @@
com.microsoft.azureazure-arm-parent
- 1.0.0
+ 0.0.3-beta../../../pom.xmlazure-mgmt-containerregistry
diff --git a/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/Action.java b/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/Action.java
new file mode 100644
index 000000000000..e4756a9b4543
--- /dev/null
+++ b/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/Action.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_02_01_preview;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for Action.
+ */
+public final class Action extends ExpandableStringEnum {
+ /** Static value Allow for Action. */
+ public static final Action ALLOW = fromString("Allow");
+
+ /**
+ * Creates or finds a Action from its string representation.
+ * @param name a name to look for
+ * @return the corresponding Action
+ */
+ @JsonCreator
+ public static Action fromString(String name) {
+ return fromString(name, Action.class);
+ }
+
+ /**
+ * @return known Action values
+ */
+ public static Collection values() {
+ return values(Action.class);
+ }
+}
diff --git a/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/DefaultAction.java b/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/DefaultAction.java
new file mode 100644
index 000000000000..fe0b8fec4d8f
--- /dev/null
+++ b/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/DefaultAction.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_02_01_preview;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for DefaultAction.
+ */
+public final class DefaultAction extends ExpandableStringEnum {
+ /** Static value Allow for DefaultAction. */
+ public static final DefaultAction ALLOW = fromString("Allow");
+
+ /** Static value Deny for DefaultAction. */
+ public static final DefaultAction DENY = fromString("Deny");
+
+ /**
+ * Creates or finds a DefaultAction from its string representation.
+ * @param name a name to look for
+ * @return the corresponding DefaultAction
+ */
+ @JsonCreator
+ public static DefaultAction fromString(String name) {
+ return fromString(name, DefaultAction.class);
+ }
+
+ /**
+ * @return known DefaultAction values
+ */
+ public static Collection values() {
+ return values(DefaultAction.class);
+ }
+}
diff --git a/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/IPRule.java b/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/IPRule.java
new file mode 100644
index 000000000000..2067b99d1e45
--- /dev/null
+++ b/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/IPRule.java
@@ -0,0 +1,70 @@
+/**
+ * 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_02_01_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * IP rule with specific IP or IP range in CIDR format.
+ */
+public class IPRule {
+ /**
+ * The action of IP ACL rule. Possible values include: 'Allow'.
+ */
+ @JsonProperty(value = "action")
+ private Action action;
+
+ /**
+ * Specifies the IP or IP range in CIDR format. Only IPV4 address is
+ * allowed.
+ */
+ @JsonProperty(value = "value", required = true)
+ private String iPAddressOrRange;
+
+ /**
+ * Get the action of IP ACL rule. Possible values include: 'Allow'.
+ *
+ * @return the action value
+ */
+ public Action action() {
+ return this.action;
+ }
+
+ /**
+ * Set the action of IP ACL rule. Possible values include: 'Allow'.
+ *
+ * @param action the action value to set
+ * @return the IPRule object itself.
+ */
+ public IPRule withAction(Action action) {
+ this.action = action;
+ return this;
+ }
+
+ /**
+ * Get specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
+ *
+ * @return the iPAddressOrRange value
+ */
+ public String iPAddressOrRange() {
+ return this.iPAddressOrRange;
+ }
+
+ /**
+ * Set specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
+ *
+ * @param iPAddressOrRange the iPAddressOrRange value to set
+ * @return the IPRule object itself.
+ */
+ public IPRule withIPAddressOrRange(String iPAddressOrRange) {
+ this.iPAddressOrRange = iPAddressOrRange;
+ return this;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/ImportSource.java b/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/ImportSource.java
index 5376d6b36bc6..62c4bb669a82 100644
--- a/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/ImportSource.java
+++ b/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/ImportSource.java
@@ -21,11 +21,17 @@ public class ImportSource {
private String resourceId;
/**
- * The address of the source registry.
+ * The address of the source registry (e.g. 'mcr.microsoft.com').
*/
@JsonProperty(value = "registryUri")
private String registryUri;
+ /**
+ * Credentials used when importing from a registry uri.
+ */
+ @JsonProperty(value = "credentials")
+ private ImportSourceCredentials credentials;
+
/**
* Repository name of the source image.
* Specify an image by repository ('hello-world'). This will use the
@@ -58,7 +64,7 @@ public ImportSource withResourceId(String resourceId) {
}
/**
- * Get the address of the source registry.
+ * Get the address of the source registry (e.g. 'mcr.microsoft.com').
*
* @return the registryUri value
*/
@@ -67,7 +73,7 @@ public String registryUri() {
}
/**
- * Set the address of the source registry.
+ * Set the address of the source registry (e.g. 'mcr.microsoft.com').
*
* @param registryUri the registryUri value to set
* @return the ImportSource object itself.
@@ -77,6 +83,26 @@ public ImportSource withRegistryUri(String registryUri) {
return this;
}
+ /**
+ * Get credentials used when importing from a registry uri.
+ *
+ * @return the credentials value
+ */
+ public ImportSourceCredentials credentials() {
+ return this.credentials;
+ }
+
+ /**
+ * Set credentials used when importing from a registry uri.
+ *
+ * @param credentials the credentials value to set
+ * @return the ImportSource object itself.
+ */
+ public ImportSource withCredentials(ImportSourceCredentials credentials) {
+ this.credentials = credentials;
+ return this;
+ }
+
/**
* Get repository name of the source image.
Specify an image by repository ('hello-world'). This will use the 'latest' tag.
diff --git a/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/ImportSourceCredentials.java b/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/ImportSourceCredentials.java
new file mode 100644
index 000000000000..9f641ddcfe3a
--- /dev/null
+++ b/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/ImportSourceCredentials.java
@@ -0,0 +1,69 @@
+/**
+ * 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_02_01_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The ImportSourceCredentials model.
+ */
+public class ImportSourceCredentials {
+ /**
+ * The username to authenticate with the source registry.
+ */
+ @JsonProperty(value = "username")
+ private String username;
+
+ /**
+ * The password used to authenticate with the source registry.
+ */
+ @JsonProperty(value = "password", required = true)
+ private String password;
+
+ /**
+ * Get the username to authenticate with the source registry.
+ *
+ * @return the username value
+ */
+ public String username() {
+ return this.username;
+ }
+
+ /**
+ * Set the username to authenticate with the source registry.
+ *
+ * @param username the username value to set
+ * @return the ImportSourceCredentials object itself.
+ */
+ public ImportSourceCredentials withUsername(String username) {
+ this.username = username;
+ return this;
+ }
+
+ /**
+ * Get the password used to authenticate with the source registry.
+ *
+ * @return the password value
+ */
+ public String password() {
+ return this.password;
+ }
+
+ /**
+ * Set the password used to authenticate with the source registry.
+ *
+ * @param password the password value to set
+ * @return the ImportSourceCredentials object itself.
+ */
+ public ImportSourceCredentials withPassword(String password) {
+ this.password = password;
+ return this;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/NetworkRuleSet.java b/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/NetworkRuleSet.java
new file mode 100644
index 000000000000..5394c6d54f48
--- /dev/null
+++ b/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/NetworkRuleSet.java
@@ -0,0 +1,97 @@
+/**
+ * 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_02_01_preview;
+
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The network rule set for a container registry.
+ */
+public class NetworkRuleSet {
+ /**
+ * The default action of allow or deny when no other rules match. Possible
+ * values include: 'Allow', 'Deny'.
+ */
+ @JsonProperty(value = "defaultAction", required = true)
+ private DefaultAction defaultAction;
+
+ /**
+ * The virtual network rules.
+ */
+ @JsonProperty(value = "virtualNetworkRules")
+ private List virtualNetworkRules;
+
+ /**
+ * The IP ACL rules.
+ */
+ @JsonProperty(value = "ipRules")
+ private List ipRules;
+
+ /**
+ * Get the default action of allow or deny when no other rules match. Possible values include: 'Allow', 'Deny'.
+ *
+ * @return the defaultAction value
+ */
+ public DefaultAction defaultAction() {
+ return this.defaultAction;
+ }
+
+ /**
+ * Set the default action of allow or deny when no other rules match. Possible values include: 'Allow', 'Deny'.
+ *
+ * @param defaultAction the defaultAction value to set
+ * @return the NetworkRuleSet object itself.
+ */
+ public NetworkRuleSet withDefaultAction(DefaultAction defaultAction) {
+ this.defaultAction = defaultAction;
+ return this;
+ }
+
+ /**
+ * Get the virtual network rules.
+ *
+ * @return the virtualNetworkRules value
+ */
+ public List virtualNetworkRules() {
+ return this.virtualNetworkRules;
+ }
+
+ /**
+ * Set the virtual network rules.
+ *
+ * @param virtualNetworkRules the virtualNetworkRules value to set
+ * @return the NetworkRuleSet object itself.
+ */
+ public NetworkRuleSet withVirtualNetworkRules(List virtualNetworkRules) {
+ this.virtualNetworkRules = virtualNetworkRules;
+ return this;
+ }
+
+ /**
+ * Get the IP ACL rules.
+ *
+ * @return the ipRules value
+ */
+ public List ipRules() {
+ return this.ipRules;
+ }
+
+ /**
+ * Set the IP ACL rules.
+ *
+ * @param ipRules the ipRules value to set
+ * @return the NetworkRuleSet object itself.
+ */
+ public NetworkRuleSet withIpRules(List ipRules) {
+ this.ipRules = ipRules;
+ return this;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/QuickBuildRequest.java b/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/QuickBuildRequest.java
index 4dbbefb40ffb..423432c56652 100644
--- a/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/QuickBuildRequest.java
+++ b/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/QuickBuildRequest.java
@@ -28,7 +28,7 @@ public class QuickBuildRequest extends QueueBuildRequest {
/**
* 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
+ * Docker build, it can be an URL to a tar or github repository as
* supported by Docker.
* If it is relative URL, the relative path should be obtained from calling
* getSourceUploadUrl API.
@@ -95,7 +95,7 @@ public QuickBuildRequest withImageNames(List imageNames) {
}
/**
- * 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.
+ * 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 repository as supported by Docker.
If it is relative URL, the relative path should be obtained from calling getSourceUploadUrl API.
*
* @return the sourceLocation value
@@ -105,7 +105,7 @@ public String 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.
+ * 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 repository 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
diff --git a/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/Registry.java b/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/Registry.java
index 11f8f5fa56c3..9148c906c5aa 100644
--- a/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/Registry.java
+++ b/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/Registry.java
@@ -40,6 +40,11 @@ public interface Registry extends HasInner, Resource, GroupableRe
*/
String loginServer();
+ /**
+ * @return the networkRuleSet value.
+ */
+ NetworkRuleSet networkRuleSet();
+
/**
* @return the provisioningState value.
*/
@@ -106,6 +111,18 @@ interface WithAdminUserEnabled {
WithCreate withAdminUserEnabled(Boolean adminUserEnabled);
}
+ /**
+ * The stage of the registry definition allowing to specify NetworkRuleSet.
+ */
+ interface WithNetworkRuleSet {
+ /**
+ * Specifies networkRuleSet.
+ * @param networkRuleSet The network rule set for a container registry
+ * @return the next definition stage
+ */
+ WithCreate withNetworkRuleSet(NetworkRuleSet networkRuleSet);
+ }
+
/**
* The stage of the registry definition allowing to specify StorageAccount.
*/
@@ -123,13 +140,13 @@ interface WithStorageAccount {
* the resource to be created (via {@link WithCreate#create()}), but also allows
* for any other optional settings to be specified.
*/
- interface WithCreate extends Creatable, Resource.DefinitionWithTags, DefinitionStages.WithAdminUserEnabled, DefinitionStages.WithStorageAccount {
+ interface WithCreate extends Creatable, Resource.DefinitionWithTags, DefinitionStages.WithAdminUserEnabled, DefinitionStages.WithNetworkRuleSet, DefinitionStages.WithStorageAccount {
}
}
/**
* The template for a Registry update operation, containing all the settings that can be modified.
*/
- interface Update extends Appliable, Resource.UpdateWithTags, UpdateStages.WithAdminUserEnabled, UpdateStages.WithSku, UpdateStages.WithStorageAccount {
+ interface Update extends Appliable, Resource.UpdateWithTags, UpdateStages.WithAdminUserEnabled, UpdateStages.WithNetworkRuleSet, UpdateStages.WithSku, UpdateStages.WithStorageAccount {
}
/**
@@ -148,6 +165,18 @@ interface WithAdminUserEnabled {
Update withAdminUserEnabled(Boolean adminUserEnabled);
}
+ /**
+ * The stage of the registry update allowing to specify NetworkRuleSet.
+ */
+ interface WithNetworkRuleSet {
+ /**
+ * Specifies networkRuleSet.
+ * @param networkRuleSet The network rule set for a container registry
+ * @return the next update stage
+ */
+ Update withNetworkRuleSet(NetworkRuleSet networkRuleSet);
+ }
+
/**
* The stage of the registry update allowing to specify Sku.
*/
diff --git a/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/RegistryUpdateParameters.java b/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/RegistryUpdateParameters.java
index 4365c94c85db..fe7c586d0efc 100644
--- a/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/RegistryUpdateParameters.java
+++ b/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/RegistryUpdateParameters.java
@@ -43,6 +43,12 @@ public class RegistryUpdateParameters {
@JsonProperty(value = "properties.storageAccount")
private StorageAccountProperties storageAccount;
+ /**
+ * The network rule set for a container registry.
+ */
+ @JsonProperty(value = "properties.networkRuleSet")
+ private NetworkRuleSet networkRuleSet;
+
/**
* Get the tags for the container registry.
*
@@ -123,4 +129,24 @@ public RegistryUpdateParameters withStorageAccount(StorageAccountProperties stor
return this;
}
+ /**
+ * Get the network rule set for a container registry.
+ *
+ * @return the networkRuleSet value
+ */
+ public NetworkRuleSet networkRuleSet() {
+ return this.networkRuleSet;
+ }
+
+ /**
+ * Set the network rule set for a container registry.
+ *
+ * @param networkRuleSet the networkRuleSet value to set
+ * @return the RegistryUpdateParameters object itself.
+ */
+ public RegistryUpdateParameters withNetworkRuleSet(NetworkRuleSet networkRuleSet) {
+ this.networkRuleSet = networkRuleSet;
+ return this;
+ }
+
}
diff --git a/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/Target.java b/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/Target.java
index af0b61f4dbe1..dc801df962ac 100644
--- a/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/Target.java
+++ b/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/Target.java
@@ -57,6 +57,18 @@ public class Target {
@JsonProperty(value = "tag")
private String tag;
+ /**
+ * The name of the artifact.
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /**
+ * The version of the artifact.
+ */
+ @JsonProperty(value = "version")
+ private String version;
+
/**
* Get the MIME type of the referenced object.
*
@@ -197,4 +209,44 @@ public Target withTag(String tag) {
return this;
}
+ /**
+ * Get the name of the artifact.
+ *
+ * @return the name value
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name of the artifact.
+ *
+ * @param name the name value to set
+ * @return the Target object itself.
+ */
+ public Target withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the version of the artifact.
+ *
+ * @return the version value
+ */
+ public String version() {
+ return this.version;
+ }
+
+ /**
+ * Set the version of the artifact.
+ *
+ * @param version the version value to set
+ * @return the Target object itself.
+ */
+ public Target withVersion(String version) {
+ this.version = version;
+ return this;
+ }
+
}
diff --git a/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/VirtualNetworkRule.java b/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/VirtualNetworkRule.java
new file mode 100644
index 000000000000..78056c58bf8e
--- /dev/null
+++ b/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/VirtualNetworkRule.java
@@ -0,0 +1,70 @@
+/**
+ * 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_02_01_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Virtual network rule.
+ */
+public class VirtualNetworkRule {
+ /**
+ * The action of virtual network rule. Possible values include: 'Allow'.
+ */
+ @JsonProperty(value = "action")
+ private Action action;
+
+ /**
+ * Resource ID of a subnet, for example:
+ * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.
+ */
+ @JsonProperty(value = "id", required = true)
+ private String virtualNetworkResourceId;
+
+ /**
+ * Get the action of virtual network rule. Possible values include: 'Allow'.
+ *
+ * @return the action value
+ */
+ public Action action() {
+ return this.action;
+ }
+
+ /**
+ * Set the action of virtual network rule. Possible values include: 'Allow'.
+ *
+ * @param action the action value to set
+ * @return the VirtualNetworkRule object itself.
+ */
+ public VirtualNetworkRule withAction(Action action) {
+ this.action = action;
+ return this;
+ }
+
+ /**
+ * Get resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.
+ *
+ * @return the virtualNetworkResourceId value
+ */
+ public String virtualNetworkResourceId() {
+ return this.virtualNetworkResourceId;
+ }
+
+ /**
+ * Set resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.
+ *
+ * @param virtualNetworkResourceId the virtualNetworkResourceId value to set
+ * @return the VirtualNetworkRule object itself.
+ */
+ public VirtualNetworkRule withVirtualNetworkResourceId(String virtualNetworkResourceId) {
+ this.virtualNetworkResourceId = virtualNetworkResourceId;
+ return this;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/WebhookAction.java b/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/WebhookAction.java
index 6674ddb71206..0d621980b600 100644
--- a/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/WebhookAction.java
+++ b/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/WebhookAction.java
@@ -25,6 +25,12 @@ public final class WebhookAction extends ExpandableStringEnum {
/** Static value quarantine for WebhookAction. */
public static final WebhookAction QUARANTINE = fromString("quarantine");
+ /** Static value chart_push for WebhookAction. */
+ public static final WebhookAction CHART_PUSH = fromString("chart_push");
+
+ /** Static value chart_delete for WebhookAction. */
+ public static final WebhookAction CHART_DELETE = fromString("chart_delete");
+
/**
* Creates or finds a WebhookAction from its string representation.
* @param name a name to look for
diff --git a/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/implementation/RegistryImpl.java b/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/implementation/RegistryImpl.java
index 74b0ff4737e3..62098ffa445c 100644
--- a/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/implementation/RegistryImpl.java
+++ b/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/implementation/RegistryImpl.java
@@ -17,6 +17,7 @@
import com.microsoft.azure.management.containerregistry.v2018_02_01_preview.ProvisioningState;
import com.microsoft.azure.management.containerregistry.v2018_02_01_preview.Status;
import com.microsoft.azure.management.containerregistry.v2018_02_01_preview.StorageAccountProperties;
+import com.microsoft.azure.management.containerregistry.v2018_02_01_preview.NetworkRuleSet;
import rx.functions.Func1;
class RegistryImpl extends GroupableResourceCoreImpl implements Registry, Registry.Definition, Registry.Update {
@@ -84,6 +85,11 @@ public String loginServer() {
return this.inner().loginServer();
}
+ @Override
+ public NetworkRuleSet networkRuleSet() {
+ return this.inner().networkRuleSet();
+ }
+
@Override
public ProvisioningState provisioningState() {
return this.inner().provisioningState();
@@ -124,6 +130,16 @@ public RegistryImpl withAdminUserEnabled(Boolean adminUserEnabled) {
return this;
}
+ @Override
+ public RegistryImpl withNetworkRuleSet(NetworkRuleSet networkRuleSet) {
+ if (isInCreateMode()) {
+ this.inner().withNetworkRuleSet(networkRuleSet);
+ } else {
+ this.updateParameter.withNetworkRuleSet(networkRuleSet);
+ }
+ return this;
+ }
+
@Override
public RegistryImpl withStorageAccount(StorageAccountProperties storageAccount) {
if (isInCreateMode()) {
diff --git a/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/implementation/RegistryInner.java b/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/implementation/RegistryInner.java
index ebfd71e2d02c..095a323c8a84 100644
--- a/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/implementation/RegistryInner.java
+++ b/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/implementation/RegistryInner.java
@@ -13,6 +13,7 @@
import com.microsoft.azure.management.containerregistry.v2018_02_01_preview.ProvisioningState;
import com.microsoft.azure.management.containerregistry.v2018_02_01_preview.Status;
import com.microsoft.azure.management.containerregistry.v2018_02_01_preview.StorageAccountProperties;
+import com.microsoft.azure.management.containerregistry.v2018_02_01_preview.NetworkRuleSet;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
import com.microsoft.azure.Resource;
@@ -68,6 +69,12 @@ public class RegistryInner extends Resource {
@JsonProperty(value = "properties.storageAccount")
private StorageAccountProperties storageAccount;
+ /**
+ * The network rule set for a container registry.
+ */
+ @JsonProperty(value = "properties.networkRuleSet")
+ private NetworkRuleSet networkRuleSet;
+
/**
* Get the SKU of the container registry.
*
@@ -164,4 +171,24 @@ public RegistryInner withStorageAccount(StorageAccountProperties storageAccount)
return this;
}
+ /**
+ * Get the network rule set for a container registry.
+ *
+ * @return the networkRuleSet value
+ */
+ public NetworkRuleSet networkRuleSet() {
+ return this.networkRuleSet;
+ }
+
+ /**
+ * Set the network rule set for a container registry.
+ *
+ * @param networkRuleSet the networkRuleSet value to set
+ * @return the RegistryInner object itself.
+ */
+ public RegistryInner withNetworkRuleSet(NetworkRuleSet networkRuleSet) {
+ this.networkRuleSet = networkRuleSet;
+ return this;
+ }
+
}
diff --git a/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/implementation/SourceRepositoryPropertiesInner.java b/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/implementation/SourceRepositoryPropertiesInner.java
index 21ebd29b678e..98d8bf121738 100644
--- a/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/implementation/SourceRepositoryPropertiesInner.java
+++ b/containerregistry/resource-manager/v2018_02_01_preview/src/main/java/com/microsoft/azure/management/containerregistry/v2018_02_01_preview/implementation/SourceRepositoryPropertiesInner.java
@@ -24,7 +24,7 @@ public class SourceRepositoryPropertiesInner {
private SourceControlType sourceControlType;
/**
- * The full URL to the source code respository.
+ * The full URL to the source code repository.
*/
@JsonProperty(value = "repositoryUrl", required = true)
private String repositoryUrl;
@@ -63,7 +63,7 @@ public SourceRepositoryPropertiesInner withSourceControlType(SourceControlType s
}
/**
- * Get the full URL to the source code respository.
+ * Get the full URL to the source code repository.
*
* @return the repositoryUrl value
*/
@@ -72,7 +72,7 @@ public String repositoryUrl() {
}
/**
- * Set the full URL to the source code respository.
+ * Set the full URL to the source code repository.
*
* @param repositoryUrl the repositoryUrl value to set
* @return the SourceRepositoryPropertiesInner object itself.
diff --git a/containerregistry/resource-manager/v2018_09_01/pom.xml b/containerregistry/resource-manager/v2018_09_01/pom.xml
index f931be045319..5c4e4055b98e 100644
--- a/containerregistry/resource-manager/v2018_09_01/pom.xml
+++ b/containerregistry/resource-manager/v2018_09_01/pom.xml
@@ -11,11 +11,11 @@
com.microsoft.azureazure-arm-parent
- 1.0.0
+ 0.0.3-beta../../../pom.xmlazure-mgmt-containerregistry
- 1.0.0-beta-1
+ 1.0.0-betajarMicrosoft Azure SDK for ContainerRegistry ManagementThis package contains Microsoft ContainerRegistry Management SDK.
diff --git a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/Action.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/Action.java
new file mode 100644
index 000000000000..f1f6cb1864f5
--- /dev/null
+++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/Action.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 Action.
+ */
+public final class Action extends ExpandableStringEnum {
+ /** Static value Allow for Action. */
+ public static final Action ALLOW = fromString("Allow");
+
+ /**
+ * Creates or finds a Action from its string representation.
+ * @param name a name to look for
+ * @return the corresponding Action
+ */
+ @JsonCreator
+ public static Action fromString(String name) {
+ return fromString(name, Action.class);
+ }
+
+ /**
+ * @return known Action values
+ */
+ public static Collection values() {
+ return values(Action.class);
+ }
+}
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/DefaultAction.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/DefaultAction.java
new file mode 100644
index 000000000000..f7a000a02873
--- /dev/null
+++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/DefaultAction.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 DefaultAction.
+ */
+public final class DefaultAction extends ExpandableStringEnum {
+ /** Static value Allow for DefaultAction. */
+ public static final DefaultAction ALLOW = fromString("Allow");
+
+ /** Static value Deny for DefaultAction. */
+ public static final DefaultAction DENY = fromString("Deny");
+
+ /**
+ * Creates or finds a DefaultAction from its string representation.
+ * @param name a name to look for
+ * @return the corresponding DefaultAction
+ */
+ @JsonCreator
+ public static DefaultAction fromString(String name) {
+ return fromString(name, DefaultAction.class);
+ }
+
+ /**
+ * @return known DefaultAction values
+ */
+ public static Collection values() {
+ return values(DefaultAction.class);
+ }
+}
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 5584232f9184..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.
*/
@@ -71,13 +77,20 @@ public class DockerBuildRequest extends RunRequest {
/**
* The URL(absolute or relative) of the source context. It can be an URL to
- * a tar or git repoistory.
+ * a tar or git repository.
* If it is relative URL, the relative path should be obtained from calling
* listBuildSourceUploadUrl API.
*/
@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.
*
@@ -239,7 +272,7 @@ public DockerBuildRequest withAgentConfiguration(AgentProperties agentConfigurat
}
/**
- * Get the URL(absolute or relative) of the source context. It can be an URL to a tar or git repoistory.
+ * Get the URL(absolute or relative) of the source context. It can be an URL to a tar or git repository.
If it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API.
*
* @return the sourceLocation value
@@ -249,7 +282,7 @@ public String sourceLocation() {
}
/**
- * Set the URL(absolute or relative) of the source context. It can be an URL to a tar or git repoistory.
+ * Set the URL(absolute or relative) of the source context. It can be an URL to a tar or git repository.
If it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API.
*
* @param sourceLocation the sourceLocation value to set
@@ -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 1539de33bbef..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
@@ -58,13 +58,20 @@ public class EncodedTaskRunRequest extends RunRequest {
/**
* The URL(absolute or relative) of the source context. It can be an URL to
- * a tar or git repoistory.
+ * a tar or git repository.
* If it is relative URL, the relative path should be obtained from calling
* listBuildSourceUploadUrl API.
*/
@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.
*
@@ -186,7 +193,7 @@ public EncodedTaskRunRequest withAgentConfiguration(AgentProperties agentConfigu
}
/**
- * Get the URL(absolute or relative) of the source context. It can be an URL to a tar or git repoistory.
+ * Get the URL(absolute or relative) of the source context. It can be an URL to a tar or git repository.
If it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API.
*
* @return the sourceLocation value
@@ -196,7 +203,7 @@ public String sourceLocation() {
}
/**
- * Set the URL(absolute or relative) of the source context. It can be an URL to a tar or git repoistory.
+ * Set the URL(absolute or relative) of the source context. It can be an URL to a tar or git repository.
If it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API.
*
* @param sourceLocation the sourceLocation value to set
@@ -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 31b0901a695b..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
@@ -58,13 +58,20 @@ public class FileTaskRunRequest extends RunRequest {
/**
* The URL(absolute or relative) of the source context. It can be an URL to
- * a tar or git repoistory.
+ * a tar or git repository.
* If it is relative URL, the relative path should be obtained from calling
* listBuildSourceUploadUrl API.
*/
@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.
*
@@ -186,7 +193,7 @@ public FileTaskRunRequest withAgentConfiguration(AgentProperties agentConfigurat
}
/**
- * Get the URL(absolute or relative) of the source context. It can be an URL to a tar or git repoistory.
+ * Get the URL(absolute or relative) of the source context. It can be an URL to a tar or git repository.
If it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API.
*
* @return the sourceLocation value
@@ -196,7 +203,7 @@ public String sourceLocation() {
}
/**
- * Set the URL(absolute or relative) of the source context. It can be an URL to a tar or git repoistory.
+ * Set the URL(absolute or relative) of the source context. It can be an URL to a tar or git repository.
If it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API.
*
* @param sourceLocation the sourceLocation value to set
@@ -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/IPRule.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/IPRule.java
new file mode 100644
index 000000000000..0ccbb4daeff4
--- /dev/null
+++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/IPRule.java
@@ -0,0 +1,70 @@
+/**
+ * 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;
+
+/**
+ * IP rule with specific IP or IP range in CIDR format.
+ */
+public class IPRule {
+ /**
+ * The action of IP ACL rule. Possible values include: 'Allow'.
+ */
+ @JsonProperty(value = "action")
+ private Action action;
+
+ /**
+ * Specifies the IP or IP range in CIDR format. Only IPV4 address is
+ * allowed.
+ */
+ @JsonProperty(value = "value", required = true)
+ private String iPAddressOrRange;
+
+ /**
+ * Get the action of IP ACL rule. Possible values include: 'Allow'.
+ *
+ * @return the action value
+ */
+ public Action action() {
+ return this.action;
+ }
+
+ /**
+ * Set the action of IP ACL rule. Possible values include: 'Allow'.
+ *
+ * @param action the action value to set
+ * @return the IPRule object itself.
+ */
+ public IPRule withAction(Action action) {
+ this.action = action;
+ return this;
+ }
+
+ /**
+ * Get specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
+ *
+ * @return the iPAddressOrRange value
+ */
+ public String iPAddressOrRange() {
+ return this.iPAddressOrRange;
+ }
+
+ /**
+ * Set specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
+ *
+ * @param iPAddressOrRange the iPAddressOrRange value to set
+ * @return the IPRule object itself.
+ */
+ public IPRule withIPAddressOrRange(String iPAddressOrRange) {
+ this.iPAddressOrRange = iPAddressOrRange;
+ return this;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/ImportSource.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/ImportSource.java
index ad69fe0e1df0..8d9f89c45665 100644
--- a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/ImportSource.java
+++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/ImportSource.java
@@ -21,11 +21,17 @@ public class ImportSource {
private String resourceId;
/**
- * The address of the source registry.
+ * The address of the source registry (e.g. 'mcr.microsoft.com').
*/
@JsonProperty(value = "registryUri")
private String registryUri;
+ /**
+ * Credentials used when importing from a registry uri.
+ */
+ @JsonProperty(value = "credentials")
+ private ImportSourceCredentials credentials;
+
/**
* Repository name of the source image.
* Specify an image by repository ('hello-world'). This will use the
@@ -58,7 +64,7 @@ public ImportSource withResourceId(String resourceId) {
}
/**
- * Get the address of the source registry.
+ * Get the address of the source registry (e.g. 'mcr.microsoft.com').
*
* @return the registryUri value
*/
@@ -67,7 +73,7 @@ public String registryUri() {
}
/**
- * Set the address of the source registry.
+ * Set the address of the source registry (e.g. 'mcr.microsoft.com').
*
* @param registryUri the registryUri value to set
* @return the ImportSource object itself.
@@ -77,6 +83,26 @@ public ImportSource withRegistryUri(String registryUri) {
return this;
}
+ /**
+ * Get credentials used when importing from a registry uri.
+ *
+ * @return the credentials value
+ */
+ public ImportSourceCredentials credentials() {
+ return this.credentials;
+ }
+
+ /**
+ * Set credentials used when importing from a registry uri.
+ *
+ * @param credentials the credentials value to set
+ * @return the ImportSource object itself.
+ */
+ public ImportSource withCredentials(ImportSourceCredentials credentials) {
+ this.credentials = credentials;
+ return this;
+ }
+
/**
* Get repository name of the source image.
Specify an image by repository ('hello-world'). This will use the 'latest' tag.
diff --git a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/ImportSourceCredentials.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/ImportSourceCredentials.java
new file mode 100644
index 000000000000..86b39d6e50a9
--- /dev/null
+++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/ImportSourceCredentials.java
@@ -0,0 +1,69 @@
+/**
+ * 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;
+
+/**
+ * The ImportSourceCredentials model.
+ */
+public class ImportSourceCredentials {
+ /**
+ * The username to authenticate with the source registry.
+ */
+ @JsonProperty(value = "username")
+ private String username;
+
+ /**
+ * The password used to authenticate with the source registry.
+ */
+ @JsonProperty(value = "password", required = true)
+ private String password;
+
+ /**
+ * Get the username to authenticate with the source registry.
+ *
+ * @return the username value
+ */
+ public String username() {
+ return this.username;
+ }
+
+ /**
+ * Set the username to authenticate with the source registry.
+ *
+ * @param username the username value to set
+ * @return the ImportSourceCredentials object itself.
+ */
+ public ImportSourceCredentials withUsername(String username) {
+ this.username = username;
+ return this;
+ }
+
+ /**
+ * Get the password used to authenticate with the source registry.
+ *
+ * @return the password value
+ */
+ public String password() {
+ return this.password;
+ }
+
+ /**
+ * Set the password used to authenticate with the source registry.
+ *
+ * @param password the password value to set
+ * @return the ImportSourceCredentials object itself.
+ */
+ public ImportSourceCredentials withPassword(String 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/NetworkRuleSet.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/NetworkRuleSet.java
new file mode 100644
index 000000000000..ed43414afc6a
--- /dev/null
+++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/NetworkRuleSet.java
@@ -0,0 +1,97 @@
+/**
+ * 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;
+
+/**
+ * The network rule set for a container registry.
+ */
+public class NetworkRuleSet {
+ /**
+ * The default action of allow or deny when no other rules match. Possible
+ * values include: 'Allow', 'Deny'.
+ */
+ @JsonProperty(value = "defaultAction", required = true)
+ private DefaultAction defaultAction;
+
+ /**
+ * The virtual network rules.
+ */
+ @JsonProperty(value = "virtualNetworkRules")
+ private List virtualNetworkRules;
+
+ /**
+ * The IP ACL rules.
+ */
+ @JsonProperty(value = "ipRules")
+ private List ipRules;
+
+ /**
+ * Get the default action of allow or deny when no other rules match. Possible values include: 'Allow', 'Deny'.
+ *
+ * @return the defaultAction value
+ */
+ public DefaultAction defaultAction() {
+ return this.defaultAction;
+ }
+
+ /**
+ * Set the default action of allow or deny when no other rules match. Possible values include: 'Allow', 'Deny'.
+ *
+ * @param defaultAction the defaultAction value to set
+ * @return the NetworkRuleSet object itself.
+ */
+ public NetworkRuleSet withDefaultAction(DefaultAction defaultAction) {
+ this.defaultAction = defaultAction;
+ return this;
+ }
+
+ /**
+ * Get the virtual network rules.
+ *
+ * @return the virtualNetworkRules value
+ */
+ public List virtualNetworkRules() {
+ return this.virtualNetworkRules;
+ }
+
+ /**
+ * Set the virtual network rules.
+ *
+ * @param virtualNetworkRules the virtualNetworkRules value to set
+ * @return the NetworkRuleSet object itself.
+ */
+ public NetworkRuleSet withVirtualNetworkRules(List virtualNetworkRules) {
+ this.virtualNetworkRules = virtualNetworkRules;
+ return this;
+ }
+
+ /**
+ * Get the IP ACL rules.
+ *
+ * @return the ipRules value
+ */
+ public List ipRules() {
+ return this.ipRules;
+ }
+
+ /**
+ * Set the IP ACL rules.
+ *
+ * @param ipRules the ipRules value to set
+ * @return the NetworkRuleSet object itself.
+ */
+ public NetworkRuleSet withIpRules(List ipRules) {
+ this.ipRules = ipRules;
+ return this;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/Registry.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/Registry.java
index b0e249cf5ddf..cc5da3ffa3e4 100644
--- a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/Registry.java
+++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/Registry.java
@@ -40,6 +40,11 @@ public interface Registry extends HasInner, Resource, GroupableRe
*/
String loginServer();
+ /**
+ * @return the networkRuleSet value.
+ */
+ NetworkRuleSet networkRuleSet();
+
/**
* @return the provisioningState value.
*/
@@ -106,6 +111,18 @@ interface WithAdminUserEnabled {
WithCreate withAdminUserEnabled(Boolean adminUserEnabled);
}
+ /**
+ * The stage of the registry definition allowing to specify NetworkRuleSet.
+ */
+ interface WithNetworkRuleSet {
+ /**
+ * Specifies networkRuleSet.
+ * @param networkRuleSet The network rule set for a container registry
+ * @return the next definition stage
+ */
+ WithCreate withNetworkRuleSet(NetworkRuleSet networkRuleSet);
+ }
+
/**
* The stage of the registry definition allowing to specify StorageAccount.
*/
@@ -123,13 +140,13 @@ interface WithStorageAccount {
* the resource to be created (via {@link WithCreate#create()}), but also allows
* for any other optional settings to be specified.
*/
- interface WithCreate extends Creatable, Resource.DefinitionWithTags, DefinitionStages.WithAdminUserEnabled, DefinitionStages.WithStorageAccount {
+ interface WithCreate extends Creatable, Resource.DefinitionWithTags, DefinitionStages.WithAdminUserEnabled, DefinitionStages.WithNetworkRuleSet, DefinitionStages.WithStorageAccount {
}
}
/**
* The template for a Registry update operation, containing all the settings that can be modified.
*/
- interface Update extends Appliable, Resource.UpdateWithTags, UpdateStages.WithAdminUserEnabled, UpdateStages.WithSku, UpdateStages.WithStorageAccount {
+ interface Update extends Appliable, Resource.UpdateWithTags, UpdateStages.WithAdminUserEnabled, UpdateStages.WithNetworkRuleSet, UpdateStages.WithSku, UpdateStages.WithStorageAccount {
}
/**
@@ -148,6 +165,18 @@ interface WithAdminUserEnabled {
Update withAdminUserEnabled(Boolean adminUserEnabled);
}
+ /**
+ * The stage of the registry update allowing to specify NetworkRuleSet.
+ */
+ interface WithNetworkRuleSet {
+ /**
+ * Specifies networkRuleSet.
+ * @param networkRuleSet The network rule set for a container registry
+ * @return the next update stage
+ */
+ Update withNetworkRuleSet(NetworkRuleSet networkRuleSet);
+ }
+
/**
* The stage of the registry update allowing to specify Sku.
*/
diff --git a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/RegistryUpdateParameters.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/RegistryUpdateParameters.java
index 97ddffade247..9e42bf8f7199 100644
--- a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/RegistryUpdateParameters.java
+++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/RegistryUpdateParameters.java
@@ -43,6 +43,12 @@ public class RegistryUpdateParameters {
@JsonProperty(value = "properties.storageAccount")
private StorageAccountProperties storageAccount;
+ /**
+ * The network rule set for a container registry.
+ */
+ @JsonProperty(value = "properties.networkRuleSet")
+ private NetworkRuleSet networkRuleSet;
+
/**
* Get the tags for the container registry.
*
@@ -123,4 +129,24 @@ public RegistryUpdateParameters withStorageAccount(StorageAccountProperties stor
return this;
}
+ /**
+ * Get the network rule set for a container registry.
+ *
+ * @return the networkRuleSet value
+ */
+ public NetworkRuleSet networkRuleSet() {
+ return this.networkRuleSet;
+ }
+
+ /**
+ * Set the network rule set for a container registry.
+ *
+ * @param networkRuleSet the networkRuleSet value to set
+ * @return the RegistryUpdateParameters object itself.
+ */
+ public RegistryUpdateParameters withNetworkRuleSet(NetworkRuleSet networkRuleSet) {
+ this.networkRuleSet = networkRuleSet;
+ 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..e50c4d69a04c 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.
*/
@@ -78,6 +83,11 @@ public interface Run extends HasInner, Indexable, Refreshable, Up
*/
ProvisioningState provisioningState();
+ /**
+ * @return the runErrorMessage value.
+ */
+ String runErrorMessage();
+
/**
* @return the runId value.
*/
@@ -88,6 +98,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/SourceProperties.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/SourceProperties.java
index 61ad3f497b13..10a3bc5941ab 100644
--- a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/SourceProperties.java
+++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/SourceProperties.java
@@ -22,7 +22,7 @@ public class SourceProperties {
private SourceControlType sourceControlType;
/**
- * The full URL to the source code respository.
+ * The full URL to the source code repository.
*/
@JsonProperty(value = "repositoryUrl", required = true)
private String repositoryUrl;
@@ -62,7 +62,7 @@ public SourceProperties withSourceControlType(SourceControlType sourceControlTyp
}
/**
- * Get the full URL to the source code respository.
+ * Get the full URL to the source code repository.
*
* @return the repositoryUrl value
*/
@@ -71,7 +71,7 @@ public String repositoryUrl() {
}
/**
- * Set the full URL to the source code respository.
+ * Set the full URL to the source code repository.
*
* @param repositoryUrl the repositoryUrl value to set
* @return the SourceProperties object itself.
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/SourceUpdateParameters.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/SourceUpdateParameters.java
index 73ac21a69f93..6b76c924267b 100644
--- a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/SourceUpdateParameters.java
+++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/SourceUpdateParameters.java
@@ -22,7 +22,7 @@ public class SourceUpdateParameters {
private SourceControlType sourceControlType;
/**
- * The full URL to the source code respository.
+ * The full URL to the source code repository.
*/
@JsonProperty(value = "repositoryUrl")
private String repositoryUrl;
@@ -62,7 +62,7 @@ public SourceUpdateParameters withSourceControlType(SourceControlType sourceCont
}
/**
- * Get the full URL to the source code respository.
+ * Get the full URL to the source code repository.
*
* @return the repositoryUrl value
*/
@@ -71,7 +71,7 @@ public String repositoryUrl() {
}
/**
- * Set the full URL to the source code respository.
+ * Set the full URL to the source code repository.
*
* @param repositoryUrl the repositoryUrl value to set
* @return the SourceUpdateParameters object itself.
diff --git a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/Target.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/Target.java
index 2a66dc67ccaa..f7b7c262a85f 100644
--- a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/Target.java
+++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/Target.java
@@ -57,6 +57,18 @@ public class Target {
@JsonProperty(value = "tag")
private String tag;
+ /**
+ * The name of the artifact.
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /**
+ * The version of the artifact.
+ */
+ @JsonProperty(value = "version")
+ private String version;
+
/**
* Get the MIME type of the referenced object.
*
@@ -197,4 +209,44 @@ public Target withTag(String tag) {
return this;
}
+ /**
+ * Get the name of the artifact.
+ *
+ * @return the name value
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name of the artifact.
+ *
+ * @param name the name value to set
+ * @return the Target object itself.
+ */
+ public Target withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the version of the artifact.
+ *
+ * @return the version value
+ */
+ public String version() {
+ return this.version;
+ }
+
+ /**
+ * Set the version of the artifact.
+ *
+ * @param version the version value to set
+ * @return the Target object itself.
+ */
+ public Target withVersion(String version) {
+ this.version = version;
+ return this;
+ }
+
}
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/TaskStepProperties.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/TaskStepProperties.java
index 15b19a914c8e..b3e0b1f518e0 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
@@ -37,6 +37,13 @@ public class TaskStepProperties {
@JsonProperty(value = "contextPath")
private String contextPath;
+ /**
+ * The token (git PAT or SAS token of storage account blob) associated with
+ * the context for a step.
+ */
+ @JsonProperty(value = "contextAccessToken")
+ private String contextAccessToken;
+
/**
* Get list of base image dependencies for a step.
*
@@ -66,4 +73,24 @@ public TaskStepProperties withContextPath(String contextPath) {
return this;
}
+ /**
+ * Get the token (git PAT or SAS token of storage account blob) associated with the context for a step.
+ *
+ * @return the contextAccessToken value
+ */
+ public String contextAccessToken() {
+ return this.contextAccessToken;
+ }
+
+ /**
+ * Set the token (git PAT or SAS token of storage account blob) associated with the context for a step.
+ *
+ * @param contextAccessToken the contextAccessToken value to set
+ * @return the TaskStepProperties object itself.
+ */
+ public TaskStepProperties withContextAccessToken(String contextAccessToken) {
+ this.contextAccessToken = contextAccessToken;
+ 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 f07e7ee9a569..0e9798d9f5e3 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
@@ -30,6 +30,13 @@ public class TaskStepUpdateParameters {
@JsonProperty(value = "contextPath")
private String contextPath;
+ /**
+ * The token (git PAT or SAS token of storage account blob) associated with
+ * the context for a step.
+ */
+ @JsonProperty(value = "contextAccessToken")
+ private String contextAccessToken;
+
/**
* Get the URL(absolute or relative) of the source context for the task step.
*
@@ -50,4 +57,24 @@ public TaskStepUpdateParameters withContextPath(String contextPath) {
return this;
}
+ /**
+ * Get the token (git PAT or SAS token of storage account blob) associated with the context for a step.
+ *
+ * @return the contextAccessToken value
+ */
+ public String contextAccessToken() {
+ return this.contextAccessToken;
+ }
+
+ /**
+ * Set the token (git PAT or SAS token of storage account blob) associated with the context for a step.
+ *
+ * @param contextAccessToken the contextAccessToken value to set
+ * @return the TaskStepUpdateParameters object itself.
+ */
+ public TaskStepUpdateParameters withContextAccessToken(String contextAccessToken) {
+ this.contextAccessToken = contextAccessToken;
+ return this;
+ }
+
}
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/VirtualNetworkRule.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/VirtualNetworkRule.java
new file mode 100644
index 000000000000..db1cbaceb296
--- /dev/null
+++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/VirtualNetworkRule.java
@@ -0,0 +1,70 @@
+/**
+ * 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;
+
+/**
+ * Virtual network rule.
+ */
+public class VirtualNetworkRule {
+ /**
+ * The action of virtual network rule. Possible values include: 'Allow'.
+ */
+ @JsonProperty(value = "action")
+ private Action action;
+
+ /**
+ * Resource ID of a subnet, for example:
+ * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.
+ */
+ @JsonProperty(value = "id", required = true)
+ private String virtualNetworkResourceId;
+
+ /**
+ * Get the action of virtual network rule. Possible values include: 'Allow'.
+ *
+ * @return the action value
+ */
+ public Action action() {
+ return this.action;
+ }
+
+ /**
+ * Set the action of virtual network rule. Possible values include: 'Allow'.
+ *
+ * @param action the action value to set
+ * @return the VirtualNetworkRule object itself.
+ */
+ public VirtualNetworkRule withAction(Action action) {
+ this.action = action;
+ return this;
+ }
+
+ /**
+ * Get resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.
+ *
+ * @return the virtualNetworkResourceId value
+ */
+ public String virtualNetworkResourceId() {
+ return this.virtualNetworkResourceId;
+ }
+
+ /**
+ * Set resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.
+ *
+ * @param virtualNetworkResourceId the virtualNetworkResourceId value to set
+ * @return the VirtualNetworkRule object itself.
+ */
+ public VirtualNetworkRule withVirtualNetworkResourceId(String virtualNetworkResourceId) {
+ this.virtualNetworkResourceId = virtualNetworkResourceId;
+ return this;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/WebhookAction.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/WebhookAction.java
index 75da739a7b57..70b874156329 100644
--- a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/WebhookAction.java
+++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/WebhookAction.java
@@ -25,6 +25,12 @@ public final class WebhookAction extends ExpandableStringEnum {
/** Static value quarantine for WebhookAction. */
public static final WebhookAction QUARANTINE = fromString("quarantine");
+ /** Static value chart_push for WebhookAction. */
+ public static final WebhookAction CHART_PUSH = fromString("chart_push");
+
+ /** Static value chart_delete for WebhookAction. */
+ public static final WebhookAction CHART_DELETE = fromString("chart_delete");
+
/**
* Creates or finds a WebhookAction 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/implementation/RegistryImpl.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/implementation/RegistryImpl.java
index 83691c502116..54f62869737e 100644
--- a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/implementation/RegistryImpl.java
+++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/implementation/RegistryImpl.java
@@ -17,6 +17,7 @@
import com.microsoft.azure.management.containerregistry.v2018_09_01.ProvisioningState;
import com.microsoft.azure.management.containerregistry.v2018_09_01.Status;
import com.microsoft.azure.management.containerregistry.v2018_09_01.StorageAccountProperties;
+import com.microsoft.azure.management.containerregistry.v2018_09_01.NetworkRuleSet;
import rx.functions.Func1;
class RegistryImpl extends GroupableResourceCoreImpl implements Registry, Registry.Definition, Registry.Update {
@@ -84,6 +85,11 @@ public String loginServer() {
return this.inner().loginServer();
}
+ @Override
+ public NetworkRuleSet networkRuleSet() {
+ return this.inner().networkRuleSet();
+ }
+
@Override
public ProvisioningState provisioningState() {
return this.inner().provisioningState();
@@ -124,6 +130,16 @@ public RegistryImpl withAdminUserEnabled(Boolean adminUserEnabled) {
return this;
}
+ @Override
+ public RegistryImpl withNetworkRuleSet(NetworkRuleSet networkRuleSet) {
+ if (isInCreateMode()) {
+ this.inner().withNetworkRuleSet(networkRuleSet);
+ } else {
+ this.updateParameter.withNetworkRuleSet(networkRuleSet);
+ }
+ return this;
+ }
+
@Override
public RegistryImpl withStorageAccount(StorageAccountProperties storageAccount) {
if (isInCreateMode()) {
diff --git a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/implementation/RegistryInner.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/implementation/RegistryInner.java
index 8ff0a1cbef07..376a284615be 100644
--- a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/implementation/RegistryInner.java
+++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/implementation/RegistryInner.java
@@ -13,6 +13,7 @@
import com.microsoft.azure.management.containerregistry.v2018_09_01.ProvisioningState;
import com.microsoft.azure.management.containerregistry.v2018_09_01.Status;
import com.microsoft.azure.management.containerregistry.v2018_09_01.StorageAccountProperties;
+import com.microsoft.azure.management.containerregistry.v2018_09_01.NetworkRuleSet;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
import com.microsoft.azure.Resource;
@@ -68,6 +69,12 @@ public class RegistryInner extends Resource {
@JsonProperty(value = "properties.storageAccount")
private StorageAccountProperties storageAccount;
+ /**
+ * The network rule set for a container registry.
+ */
+ @JsonProperty(value = "properties.networkRuleSet")
+ private NetworkRuleSet networkRuleSet;
+
/**
* Get the SKU of the container registry.
*
@@ -164,4 +171,24 @@ public RegistryInner withStorageAccount(StorageAccountProperties storageAccount)
return this;
}
+ /**
+ * Get the network rule set for a container registry.
+ *
+ * @return the networkRuleSet value
+ */
+ public NetworkRuleSet networkRuleSet() {
+ return this.networkRuleSet;
+ }
+
+ /**
+ * Set the network rule set for a container registry.
+ *
+ * @param networkRuleSet the networkRuleSet value to set
+ * @return the RegistryInner object itself.
+ */
+ public RegistryInner withNetworkRuleSet(NetworkRuleSet networkRuleSet) {
+ this.networkRuleSet = networkRuleSet;
+ return this;
+ }
+
}
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..cd7c63beffae 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();
@@ -134,6 +139,11 @@ public ProvisioningState provisioningState() {
return this.inner().provisioningState();
}
+ @Override
+ public String runErrorMessage() {
+ return this.inner().runErrorMessage();
+ }
+
@Override
public String runId() {
return this.inner().runId();
@@ -144,6 +154,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..6eb2379d6495 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,26 @@ 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 error message received from backend systems after the run is
+ * scheduled.
+ */
+ @JsonProperty(value = "properties.runErrorMessage", access = JsonProperty.Access.WRITE_ONLY)
+ private String runErrorMessage;
+
/**
* The provisioning state of a run. Possible values include: 'Creating',
* 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled'.
@@ -123,6 +137,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 +363,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 +403,55 @@ 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 error message received from backend systems after the run is scheduled.
+ *
+ * @return the runErrorMessage value
+ */
+ public String runErrorMessage() {
+ return this.runErrorMessage;
+ }
+
/**
* Get the provisioning state of a run. Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled'.
*
@@ -423,4 +472,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 a8ed57f81df9..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,13 +15,14 @@
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;
/**
* The task that has the ARM resource and task properties.
- * The task will have all information to schedule a run against it.
+ * The task will have all information to schedule a run against it.
*/
@JsonFlatten
public class TaskInner extends 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;
+ }
+
}
diff --git a/containerregistry/resource-manager/v2019_04_01/pom.xml b/containerregistry/resource-manager/v2019_04_01/pom.xml
new file mode 100644
index 000000000000..6d8c4059d2be
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/pom.xml
@@ -0,0 +1,133 @@
+
+
+ 4.0.0
+ com.microsoft.azure.containerregistry.v2019_04_01
+
+ com.microsoft.azure
+ azure-arm-parent
+ 0.0.3-beta
+ ../../../pom.xml
+
+ azure-mgmt-containerregistry
+ 1.0.0-beta
+ jar
+ Microsoft Azure SDK for ContainerRegistry Management
+ This package contains Microsoft ContainerRegistry Management SDK.
+ https://github.com/Azure/azure-sdk-for-java
+
+
+ The MIT License (MIT)
+ http://opensource.org/licenses/MIT
+ repo
+
+
+
+ scm:git:https://github.com/Azure/azure-sdk-for-java
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ HEAD
+
+
+ UTF-8
+
+
+
+
+ microsoft
+ Microsoft
+
+
+
+
+ com.microsoft.azure
+ azure-client-runtime
+
+
+ com.microsoft.azure
+ azure-arm-client-runtime
+
+
+ junit
+ junit
+ test
+
+
+ com.microsoft.azure
+ azure-client-authentication
+ test
+
+
+ com.microsoft.azure
+ azure-mgmt-resources
+ test
+
+
+ com.microsoft.azure
+ azure-arm-client-runtime
+ test-jar
+ test
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-jar-plugin
+
+
+
+ true
+ true
+
+
+
+
+
+ org.codehaus.mojo
+ build-helper-maven-plugin
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ 3.1
+
+ 1.7
+ 1.7
+
+
+ com.microsoft.azure.management.apigeneration.LangDefinitionProcessor
+
+
+ true
+ true
+
+ true
+ true
+
+
+
+
+ org.apache.maven.plugins
+ maven-javadoc-plugin
+ 2.8
+
+ *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search
+
+
+ /**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ */
+ ]]>
+
+
+
+
+
+
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/Action.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/Action.java
new file mode 100644
index 000000000000..ca1d0fff2f0e
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/Action.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.v2019_04_01;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for Action.
+ */
+public final class Action extends ExpandableStringEnum {
+ /** Static value Allow for Action. */
+ public static final Action ALLOW = fromString("Allow");
+
+ /**
+ * Creates or finds a Action from its string representation.
+ * @param name a name to look for
+ * @return the corresponding Action
+ */
+ @JsonCreator
+ public static Action fromString(String name) {
+ return fromString(name, Action.class);
+ }
+
+ /**
+ * @return known Action values
+ */
+ public static Collection values() {
+ return values(Action.class);
+ }
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/Actor.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/Actor.java
new file mode 100644
index 000000000000..7ac0ea6dfca7
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/Actor.java
@@ -0,0 +1,45 @@
+/**
+ * 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.v2019_04_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The agent that initiated the event. For most situations, this could be from
+ * the authorization context of the request.
+ */
+public class Actor {
+ /**
+ * The subject or username associated with the request context that
+ * generated the event.
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /**
+ * Get the subject or username associated with the request context that generated the event.
+ *
+ * @return the name value
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the subject or username associated with the request context that generated the event.
+ *
+ * @param name the name value to set
+ * @return the Actor object itself.
+ */
+ public Actor withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/AgentProperties.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/AgentProperties.java
new file mode 100644
index 000000000000..7edb9004454a
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/AgentProperties.java
@@ -0,0 +1,43 @@
+/**
+ * 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.v2019_04_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The properties that determine the run agent configuration.
+ */
+public class AgentProperties {
+ /**
+ * The CPU configuration in terms of number of cores required for the run.
+ */
+ @JsonProperty(value = "cpu")
+ private Integer cpu;
+
+ /**
+ * Get the CPU configuration in terms of number of cores required for the run.
+ *
+ * @return the cpu value
+ */
+ public Integer cpu() {
+ return this.cpu;
+ }
+
+ /**
+ * Set the CPU configuration in terms of number of cores required for the run.
+ *
+ * @param cpu the cpu value to set
+ * @return the AgentProperties object itself.
+ */
+ public AgentProperties withCpu(Integer cpu) {
+ this.cpu = cpu;
+ return this;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/Architecture.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/Architecture.java
new file mode 100644
index 000000000000..8b84c4f82c70
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/Architecture.java
@@ -0,0 +1,44 @@
+/**
+ * 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.v2019_04_01;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for Architecture.
+ */
+public final class Architecture extends ExpandableStringEnum {
+ /** Static value amd64 for Architecture. */
+ public static final Architecture AMD64 = fromString("amd64");
+
+ /** Static value x86 for Architecture. */
+ public static final Architecture X86 = fromString("x86");
+
+ /** Static value arm for Architecture. */
+ public static final Architecture ARM = fromString("arm");
+
+ /**
+ * Creates or finds a Architecture from its string representation.
+ * @param name a name to look for
+ * @return the corresponding Architecture
+ */
+ @JsonCreator
+ public static Architecture fromString(String name) {
+ return fromString(name, Architecture.class);
+ }
+
+ /**
+ * @return known Architecture values
+ */
+ public static Collection values() {
+ return values(Architecture.class);
+ }
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/Argument.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/Argument.java
new file mode 100644
index 000000000000..e2a7533d7da6
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/Argument.java
@@ -0,0 +1,96 @@
+/**
+ * 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.v2019_04_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The properties of a run argument.
+ */
+public class Argument {
+ /**
+ * The name of the argument.
+ */
+ @JsonProperty(value = "name", required = true)
+ private String name;
+
+ /**
+ * The value of the argument.
+ */
+ @JsonProperty(value = "value", required = true)
+ private String value;
+
+ /**
+ * Flag to indicate whether the argument represents a secret and want to be
+ * removed from build logs.
+ */
+ @JsonProperty(value = "isSecret")
+ private Boolean isSecret;
+
+ /**
+ * Get the name of the argument.
+ *
+ * @return the name value
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name of the argument.
+ *
+ * @param name the name value to set
+ * @return the Argument object itself.
+ */
+ public Argument withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the value of the argument.
+ *
+ * @return the value value
+ */
+ public String value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value of the argument.
+ *
+ * @param value the value value to set
+ * @return the Argument object itself.
+ */
+ public Argument withValue(String value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Get flag to indicate whether the argument represents a secret and want to be removed from build logs.
+ *
+ * @return the isSecret value
+ */
+ public Boolean isSecret() {
+ return this.isSecret;
+ }
+
+ /**
+ * Set flag to indicate whether the argument represents a secret and want to be removed from build logs.
+ *
+ * @param isSecret the isSecret value to set
+ * @return the Argument object itself.
+ */
+ public Argument withIsSecret(Boolean isSecret) {
+ this.isSecret = isSecret;
+ return this;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/AuthInfo.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/AuthInfo.java
new file mode 100644
index 000000000000..634188ff965f
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/AuthInfo.java
@@ -0,0 +1,147 @@
+/**
+ * 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.v2019_04_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The authorization properties for accessing the source code repository.
+ */
+public class AuthInfo {
+ /**
+ * The type of Auth token. Possible values include: 'PAT', 'OAuth'.
+ */
+ @JsonProperty(value = "tokenType", required = true)
+ private TokenType tokenType;
+
+ /**
+ * The access token used to access the source control provider.
+ */
+ @JsonProperty(value = "token", required = true)
+ private String token;
+
+ /**
+ * The refresh token used to refresh the access token.
+ */
+ @JsonProperty(value = "refreshToken")
+ private String refreshToken;
+
+ /**
+ * The scope of the access token.
+ */
+ @JsonProperty(value = "scope")
+ private String scope;
+
+ /**
+ * Time in seconds that the token remains valid.
+ */
+ @JsonProperty(value = "expiresIn")
+ private Integer expiresIn;
+
+ /**
+ * Get the type of Auth token. Possible values include: 'PAT', 'OAuth'.
+ *
+ * @return the tokenType value
+ */
+ public TokenType tokenType() {
+ return this.tokenType;
+ }
+
+ /**
+ * Set the type of Auth token. Possible values include: 'PAT', 'OAuth'.
+ *
+ * @param tokenType the tokenType value to set
+ * @return the AuthInfo object itself.
+ */
+ public AuthInfo withTokenType(TokenType tokenType) {
+ this.tokenType = tokenType;
+ return this;
+ }
+
+ /**
+ * Get the access token used to access the source control provider.
+ *
+ * @return the token value
+ */
+ public String token() {
+ return this.token;
+ }
+
+ /**
+ * Set the access token used to access the source control provider.
+ *
+ * @param token the token value to set
+ * @return the AuthInfo object itself.
+ */
+ public AuthInfo withToken(String token) {
+ this.token = token;
+ return this;
+ }
+
+ /**
+ * Get the refresh token used to refresh the access token.
+ *
+ * @return the refreshToken value
+ */
+ public String refreshToken() {
+ return this.refreshToken;
+ }
+
+ /**
+ * Set the refresh token used to refresh the access token.
+ *
+ * @param refreshToken the refreshToken value to set
+ * @return the AuthInfo object itself.
+ */
+ public AuthInfo withRefreshToken(String refreshToken) {
+ this.refreshToken = refreshToken;
+ return this;
+ }
+
+ /**
+ * Get the scope of the access token.
+ *
+ * @return the scope value
+ */
+ public String scope() {
+ return this.scope;
+ }
+
+ /**
+ * Set the scope of the access token.
+ *
+ * @param scope the scope value to set
+ * @return the AuthInfo object itself.
+ */
+ public AuthInfo withScope(String scope) {
+ this.scope = scope;
+ return this;
+ }
+
+ /**
+ * Get time in seconds that the token remains valid.
+ *
+ * @return the expiresIn value
+ */
+ public Integer expiresIn() {
+ return this.expiresIn;
+ }
+
+ /**
+ * Set time in seconds that the token remains valid.
+ *
+ * @param expiresIn the expiresIn value to set
+ * @return the AuthInfo object itself.
+ */
+ public AuthInfo withExpiresIn(Integer expiresIn) {
+ this.expiresIn = expiresIn;
+ return this;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/AuthInfoUpdateParameters.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/AuthInfoUpdateParameters.java
new file mode 100644
index 000000000000..19ac858f31ba
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/AuthInfoUpdateParameters.java
@@ -0,0 +1,147 @@
+/**
+ * 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.v2019_04_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The authorization properties for accessing the source code repository.
+ */
+public class AuthInfoUpdateParameters {
+ /**
+ * The type of Auth token. Possible values include: 'PAT', 'OAuth'.
+ */
+ @JsonProperty(value = "tokenType")
+ private TokenType tokenType;
+
+ /**
+ * The access token used to access the source control provider.
+ */
+ @JsonProperty(value = "token")
+ private String token;
+
+ /**
+ * The refresh token used to refresh the access token.
+ */
+ @JsonProperty(value = "refreshToken")
+ private String refreshToken;
+
+ /**
+ * The scope of the access token.
+ */
+ @JsonProperty(value = "scope")
+ private String scope;
+
+ /**
+ * Time in seconds that the token remains valid.
+ */
+ @JsonProperty(value = "expiresIn")
+ private Integer expiresIn;
+
+ /**
+ * Get the type of Auth token. Possible values include: 'PAT', 'OAuth'.
+ *
+ * @return the tokenType value
+ */
+ public TokenType tokenType() {
+ return this.tokenType;
+ }
+
+ /**
+ * Set the type of Auth token. Possible values include: 'PAT', 'OAuth'.
+ *
+ * @param tokenType the tokenType value to set
+ * @return the AuthInfoUpdateParameters object itself.
+ */
+ public AuthInfoUpdateParameters withTokenType(TokenType tokenType) {
+ this.tokenType = tokenType;
+ return this;
+ }
+
+ /**
+ * Get the access token used to access the source control provider.
+ *
+ * @return the token value
+ */
+ public String token() {
+ return this.token;
+ }
+
+ /**
+ * Set the access token used to access the source control provider.
+ *
+ * @param token the token value to set
+ * @return the AuthInfoUpdateParameters object itself.
+ */
+ public AuthInfoUpdateParameters withToken(String token) {
+ this.token = token;
+ return this;
+ }
+
+ /**
+ * Get the refresh token used to refresh the access token.
+ *
+ * @return the refreshToken value
+ */
+ public String refreshToken() {
+ return this.refreshToken;
+ }
+
+ /**
+ * Set the refresh token used to refresh the access token.
+ *
+ * @param refreshToken the refreshToken value to set
+ * @return the AuthInfoUpdateParameters object itself.
+ */
+ public AuthInfoUpdateParameters withRefreshToken(String refreshToken) {
+ this.refreshToken = refreshToken;
+ return this;
+ }
+
+ /**
+ * Get the scope of the access token.
+ *
+ * @return the scope value
+ */
+ public String scope() {
+ return this.scope;
+ }
+
+ /**
+ * Set the scope of the access token.
+ *
+ * @param scope the scope value to set
+ * @return the AuthInfoUpdateParameters object itself.
+ */
+ public AuthInfoUpdateParameters withScope(String scope) {
+ this.scope = scope;
+ return this;
+ }
+
+ /**
+ * Get time in seconds that the token remains valid.
+ *
+ * @return the expiresIn value
+ */
+ public Integer expiresIn() {
+ return this.expiresIn;
+ }
+
+ /**
+ * Set time in seconds that the token remains valid.
+ *
+ * @param expiresIn the expiresIn value to set
+ * @return the AuthInfoUpdateParameters object itself.
+ */
+ public AuthInfoUpdateParameters withExpiresIn(Integer expiresIn) {
+ this.expiresIn = expiresIn;
+ return this;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/BaseImageDependency.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/BaseImageDependency.java
new file mode 100644
index 000000000000..8b4d01049ef3
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/BaseImageDependency.java
@@ -0,0 +1,148 @@
+/**
+ * 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.v2019_04_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Properties that describe a base image dependency.
+ */
+public class BaseImageDependency {
+ /**
+ * The type of the base image dependency. Possible values include:
+ * 'BuildTime', 'RunTime'.
+ */
+ @JsonProperty(value = "type")
+ private BaseImageDependencyType type;
+
+ /**
+ * The registry login server.
+ */
+ @JsonProperty(value = "registry")
+ private String registry;
+
+ /**
+ * The repository name.
+ */
+ @JsonProperty(value = "repository")
+ private String repository;
+
+ /**
+ * The tag name.
+ */
+ @JsonProperty(value = "tag")
+ private String tag;
+
+ /**
+ * The sha256-based digest of the image manifest.
+ */
+ @JsonProperty(value = "digest")
+ private String digest;
+
+ /**
+ * Get the type of the base image dependency. Possible values include: 'BuildTime', 'RunTime'.
+ *
+ * @return the type value
+ */
+ public BaseImageDependencyType type() {
+ return this.type;
+ }
+
+ /**
+ * Set the type of the base image dependency. Possible values include: 'BuildTime', 'RunTime'.
+ *
+ * @param type the type value to set
+ * @return the BaseImageDependency object itself.
+ */
+ public BaseImageDependency withType(BaseImageDependencyType type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * Get the registry login server.
+ *
+ * @return the registry value
+ */
+ public String registry() {
+ return this.registry;
+ }
+
+ /**
+ * Set the registry login server.
+ *
+ * @param registry the registry value to set
+ * @return the BaseImageDependency object itself.
+ */
+ public BaseImageDependency withRegistry(String registry) {
+ this.registry = registry;
+ return this;
+ }
+
+ /**
+ * Get the repository name.
+ *
+ * @return the repository value
+ */
+ public String repository() {
+ return this.repository;
+ }
+
+ /**
+ * Set the repository name.
+ *
+ * @param repository the repository value to set
+ * @return the BaseImageDependency object itself.
+ */
+ public BaseImageDependency withRepository(String repository) {
+ this.repository = repository;
+ return this;
+ }
+
+ /**
+ * Get the tag name.
+ *
+ * @return the tag value
+ */
+ public String tag() {
+ return this.tag;
+ }
+
+ /**
+ * Set the tag name.
+ *
+ * @param tag the tag value to set
+ * @return the BaseImageDependency object itself.
+ */
+ public BaseImageDependency withTag(String tag) {
+ this.tag = tag;
+ return this;
+ }
+
+ /**
+ * Get the sha256-based digest of the image manifest.
+ *
+ * @return the digest value
+ */
+ public String digest() {
+ return this.digest;
+ }
+
+ /**
+ * Set the sha256-based digest of the image manifest.
+ *
+ * @param digest the digest value to set
+ * @return the BaseImageDependency object itself.
+ */
+ public BaseImageDependency withDigest(String digest) {
+ this.digest = digest;
+ return this;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/BaseImageDependencyType.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/BaseImageDependencyType.java
new file mode 100644
index 000000000000..318cc2dde081
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/BaseImageDependencyType.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.v2019_04_01;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for BaseImageDependencyType.
+ */
+public final class BaseImageDependencyType extends ExpandableStringEnum {
+ /** Static value BuildTime for BaseImageDependencyType. */
+ public static final BaseImageDependencyType BUILD_TIME = fromString("BuildTime");
+
+ /** Static value RunTime for BaseImageDependencyType. */
+ public static final BaseImageDependencyType RUN_TIME = fromString("RunTime");
+
+ /**
+ * Creates or finds a BaseImageDependencyType from its string representation.
+ * @param name a name to look for
+ * @return the corresponding BaseImageDependencyType
+ */
+ @JsonCreator
+ public static BaseImageDependencyType fromString(String name) {
+ return fromString(name, BaseImageDependencyType.class);
+ }
+
+ /**
+ * @return known BaseImageDependencyType values
+ */
+ public static Collection values() {
+ return values(BaseImageDependencyType.class);
+ }
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/BaseImageTrigger.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/BaseImageTrigger.java
new file mode 100644
index 000000000000..724cf4139190
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/BaseImageTrigger.java
@@ -0,0 +1,97 @@
+/**
+ * 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.v2019_04_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The trigger based on base image dependency.
+ */
+public class BaseImageTrigger {
+ /**
+ * The type of the auto trigger for base image dependency updates. Possible
+ * values include: 'All', 'Runtime'.
+ */
+ @JsonProperty(value = "baseImageTriggerType", required = true)
+ private BaseImageTriggerType baseImageTriggerType;
+
+ /**
+ * The current status of trigger. Possible values include: 'Disabled',
+ * 'Enabled'.
+ */
+ @JsonProperty(value = "status")
+ private TriggerStatus status;
+
+ /**
+ * The name of the trigger.
+ */
+ @JsonProperty(value = "name", required = true)
+ private String name;
+
+ /**
+ * Get the type of the auto trigger for base image dependency updates. Possible values include: 'All', 'Runtime'.
+ *
+ * @return the baseImageTriggerType value
+ */
+ public BaseImageTriggerType baseImageTriggerType() {
+ return this.baseImageTriggerType;
+ }
+
+ /**
+ * Set the type of the auto trigger for base image dependency updates. Possible values include: 'All', 'Runtime'.
+ *
+ * @param baseImageTriggerType the baseImageTriggerType value to set
+ * @return the BaseImageTrigger object itself.
+ */
+ public BaseImageTrigger withBaseImageTriggerType(BaseImageTriggerType baseImageTriggerType) {
+ this.baseImageTriggerType = baseImageTriggerType;
+ return this;
+ }
+
+ /**
+ * Get the current status of trigger. Possible values include: 'Disabled', 'Enabled'.
+ *
+ * @return the status value
+ */
+ public TriggerStatus status() {
+ return this.status;
+ }
+
+ /**
+ * Set the current status of trigger. Possible values include: 'Disabled', 'Enabled'.
+ *
+ * @param status the status value to set
+ * @return the BaseImageTrigger object itself.
+ */
+ public BaseImageTrigger withStatus(TriggerStatus status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Get the name of the trigger.
+ *
+ * @return the name value
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name of the trigger.
+ *
+ * @param name the name value to set
+ * @return the BaseImageTrigger object itself.
+ */
+ public BaseImageTrigger withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/BaseImageTriggerType.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/BaseImageTriggerType.java
new file mode 100644
index 000000000000..960524353008
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/BaseImageTriggerType.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.v2019_04_01;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for BaseImageTriggerType.
+ */
+public final class BaseImageTriggerType extends ExpandableStringEnum {
+ /** Static value All for BaseImageTriggerType. */
+ public static final BaseImageTriggerType ALL = fromString("All");
+
+ /** Static value Runtime for BaseImageTriggerType. */
+ public static final BaseImageTriggerType RUNTIME = fromString("Runtime");
+
+ /**
+ * Creates or finds a BaseImageTriggerType from its string representation.
+ * @param name a name to look for
+ * @return the corresponding BaseImageTriggerType
+ */
+ @JsonCreator
+ public static BaseImageTriggerType fromString(String name) {
+ return fromString(name, BaseImageTriggerType.class);
+ }
+
+ /**
+ * @return known BaseImageTriggerType values
+ */
+ public static Collection values() {
+ return values(BaseImageTriggerType.class);
+ }
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/BaseImageTriggerUpdateParameters.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/BaseImageTriggerUpdateParameters.java
new file mode 100644
index 000000000000..9a1366cb390c
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/BaseImageTriggerUpdateParameters.java
@@ -0,0 +1,97 @@
+/**
+ * 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.v2019_04_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The properties for updating base image dependency trigger.
+ */
+public class BaseImageTriggerUpdateParameters {
+ /**
+ * The type of the auto trigger for base image dependency updates. Possible
+ * values include: 'All', 'Runtime'.
+ */
+ @JsonProperty(value = "baseImageTriggerType")
+ private BaseImageTriggerType baseImageTriggerType;
+
+ /**
+ * The current status of trigger. Possible values include: 'Disabled',
+ * 'Enabled'.
+ */
+ @JsonProperty(value = "status")
+ private TriggerStatus status;
+
+ /**
+ * The name of the trigger.
+ */
+ @JsonProperty(value = "name", required = true)
+ private String name;
+
+ /**
+ * Get the type of the auto trigger for base image dependency updates. Possible values include: 'All', 'Runtime'.
+ *
+ * @return the baseImageTriggerType value
+ */
+ public BaseImageTriggerType baseImageTriggerType() {
+ return this.baseImageTriggerType;
+ }
+
+ /**
+ * Set the type of the auto trigger for base image dependency updates. Possible values include: 'All', 'Runtime'.
+ *
+ * @param baseImageTriggerType the baseImageTriggerType value to set
+ * @return the BaseImageTriggerUpdateParameters object itself.
+ */
+ public BaseImageTriggerUpdateParameters withBaseImageTriggerType(BaseImageTriggerType baseImageTriggerType) {
+ this.baseImageTriggerType = baseImageTriggerType;
+ return this;
+ }
+
+ /**
+ * Get the current status of trigger. Possible values include: 'Disabled', 'Enabled'.
+ *
+ * @return the status value
+ */
+ public TriggerStatus status() {
+ return this.status;
+ }
+
+ /**
+ * Set the current status of trigger. Possible values include: 'Disabled', 'Enabled'.
+ *
+ * @param status the status value to set
+ * @return the BaseImageTriggerUpdateParameters object itself.
+ */
+ public BaseImageTriggerUpdateParameters withStatus(TriggerStatus status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Get the name of the trigger.
+ *
+ * @return the name value
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name of the trigger.
+ *
+ * @param name the name value to set
+ * @return the BaseImageTriggerUpdateParameters object itself.
+ */
+ public BaseImageTriggerUpdateParameters withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/CallbackConfig.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/CallbackConfig.java
new file mode 100644
index 000000000000..3c10aea5a69a
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/CallbackConfig.java
@@ -0,0 +1,31 @@
+/**
+ * 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.v2019_04_01;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.containerregistry.v2019_04_01.implementation.ContainerRegistryManager;
+import com.microsoft.azure.management.containerregistry.v2019_04_01.implementation.CallbackConfigInner;
+import java.util.Map;
+
+/**
+ * Type representing CallbackConfig.
+ */
+public interface CallbackConfig extends HasInner, HasManager {
+ /**
+ * @return the customHeaders value.
+ */
+ Map customHeaders();
+
+ /**
+ * @return the serviceUri value.
+ */
+ String serviceUri();
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/Credentials.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/Credentials.java
new file mode 100644
index 000000000000..8098532c852d
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_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.v2019_04_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/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/CustomRegistryCredentials.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/CustomRegistryCredentials.java
new file mode 100644
index 000000000000..531150cbf450
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/CustomRegistryCredentials.java
@@ -0,0 +1,116 @@
+/**
+ * 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.v2019_04_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;
+
+ /**
+ * Indicates the managed identity assigned to the custom credential. If a
+ * user-assigned identity
+ * this value is the Client ID. If a system-assigned identity, the value
+ * will be `system`. In
+ * the case of a system-assigned identity, the Client ID will be determined
+ * by the runner. This
+ * identity may be used to authenticate to key vault to retrieve
+ * credentials or it may be the only
+ * source of authentication used for accessing the registry.
+ */
+ @JsonProperty(value = "identity")
+ private String identity;
+
+ /**
+ * 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;
+ }
+
+ /**
+ * Get indicates the managed identity assigned to the custom credential. If a user-assigned identity
+ this value is the Client ID. If a system-assigned identity, the value will be `system`. In
+ the case of a system-assigned identity, the Client ID will be determined by the runner. This
+ identity may be used to authenticate to key vault to retrieve credentials or it may be the only
+ source of authentication used for accessing the registry.
+ *
+ * @return the identity value
+ */
+ public String identity() {
+ return this.identity;
+ }
+
+ /**
+ * Set indicates the managed identity assigned to the custom credential. If a user-assigned identity
+ this value is the Client ID. If a system-assigned identity, the value will be `system`. In
+ the case of a system-assigned identity, the Client ID will be determined by the runner. This
+ identity may be used to authenticate to key vault to retrieve credentials or it may be the only
+ source of authentication used for accessing the registry.
+ *
+ * @param identity the identity value to set
+ * @return the CustomRegistryCredentials object itself.
+ */
+ public CustomRegistryCredentials withIdentity(String identity) {
+ this.identity = identity;
+ return this;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/DefaultAction.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/DefaultAction.java
new file mode 100644
index 000000000000..1272dc91ef02
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/DefaultAction.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.v2019_04_01;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for DefaultAction.
+ */
+public final class DefaultAction extends ExpandableStringEnum {
+ /** Static value Allow for DefaultAction. */
+ public static final DefaultAction ALLOW = fromString("Allow");
+
+ /** Static value Deny for DefaultAction. */
+ public static final DefaultAction DENY = fromString("Deny");
+
+ /**
+ * Creates or finds a DefaultAction from its string representation.
+ * @param name a name to look for
+ * @return the corresponding DefaultAction
+ */
+ @JsonCreator
+ public static DefaultAction fromString(String name) {
+ return fromString(name, DefaultAction.class);
+ }
+
+ /**
+ * @return known DefaultAction values
+ */
+ public static Collection values() {
+ return values(DefaultAction.class);
+ }
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/DockerBuildRequest.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/DockerBuildRequest.java
new file mode 100644
index 000000000000..7c3d78867cad
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/DockerBuildRequest.java
@@ -0,0 +1,316 @@
+/**
+ * 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.v2019_04_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 docker quick build.
+ */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
+@JsonTypeName("DockerBuildRequest")
+public class DockerBuildRequest extends RunRequest {
+ /**
+ * The fully qualified image names including the repository and tag.
+ */
+ @JsonProperty(value = "imageNames")
+ private List imageNames;
+
+ /**
+ * The value of this property indicates whether the image built should be
+ * pushed to the registry or not.
+ */
+ @JsonProperty(value = "isPushEnabled")
+ private Boolean isPushEnabled;
+
+ /**
+ * The value of this property indicates whether the image cache is enabled
+ * or not.
+ */
+ @JsonProperty(value = "noCache")
+ private Boolean noCache;
+
+ /**
+ * The Docker file path relative to the source location.
+ */
+ @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.
+ */
+ @JsonProperty(value = "arguments")
+ private List arguments;
+
+ /**
+ * Run timeout in seconds.
+ */
+ @JsonProperty(value = "timeout")
+ private Integer timeout;
+
+ /**
+ * The platform properties against which the run has to happen.
+ */
+ @JsonProperty(value = "platform", required = true)
+ private PlatformProperties platform;
+
+ /**
+ * 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 repository.
+ * If it is relative URL, the relative path should be obtained from calling
+ * listBuildSourceUploadUrl API.
+ */
+ @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.
+ *
+ * @return the imageNames value
+ */
+ public List imageNames() {
+ return this.imageNames;
+ }
+
+ /**
+ * Set the fully qualified image names including the repository and tag.
+ *
+ * @param imageNames the imageNames value to set
+ * @return the DockerBuildRequest object itself.
+ */
+ public DockerBuildRequest withImageNames(List imageNames) {
+ this.imageNames = imageNames;
+ return this;
+ }
+
+ /**
+ * Get the value of this property indicates whether the image built should be pushed to the registry or not.
+ *
+ * @return the isPushEnabled value
+ */
+ public Boolean isPushEnabled() {
+ return this.isPushEnabled;
+ }
+
+ /**
+ * Set the value of this property indicates whether the image built should be pushed to the registry or not.
+ *
+ * @param isPushEnabled the isPushEnabled value to set
+ * @return the DockerBuildRequest object itself.
+ */
+ public DockerBuildRequest withIsPushEnabled(Boolean isPushEnabled) {
+ this.isPushEnabled = isPushEnabled;
+ return this;
+ }
+
+ /**
+ * Get the value of this property indicates whether the image cache is enabled or not.
+ *
+ * @return the noCache value
+ */
+ public Boolean noCache() {
+ return this.noCache;
+ }
+
+ /**
+ * Set the value of this property indicates whether the image cache is enabled or not.
+ *
+ * @param noCache the noCache value to set
+ * @return the DockerBuildRequest object itself.
+ */
+ public DockerBuildRequest withNoCache(Boolean noCache) {
+ this.noCache = noCache;
+ return this;
+ }
+
+ /**
+ * Get the Docker file path relative to the source location.
+ *
+ * @return the dockerFilePath value
+ */
+ public String dockerFilePath() {
+ return this.dockerFilePath;
+ }
+
+ /**
+ * Set the Docker file path relative to the source location.
+ *
+ * @param dockerFilePath the dockerFilePath value to set
+ * @return the DockerBuildRequest object itself.
+ */
+ public DockerBuildRequest withDockerFilePath(String dockerFilePath) {
+ this.dockerFilePath = 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.
+ *
+ * @return the arguments value
+ */
+ public List arguments() {
+ return this.arguments;
+ }
+
+ /**
+ * Set the collection of override arguments to be used when executing the run.
+ *
+ * @param arguments the arguments value to set
+ * @return the DockerBuildRequest object itself.
+ */
+ public DockerBuildRequest withArguments(List arguments) {
+ this.arguments = arguments;
+ return this;
+ }
+
+ /**
+ * Get run timeout in seconds.
+ *
+ * @return the timeout value
+ */
+ public Integer timeout() {
+ return this.timeout;
+ }
+
+ /**
+ * Set run timeout in seconds.
+ *
+ * @param timeout the timeout value to set
+ * @return the DockerBuildRequest object itself.
+ */
+ public DockerBuildRequest withTimeout(Integer timeout) {
+ this.timeout = timeout;
+ return this;
+ }
+
+ /**
+ * Get the platform properties against which the run has to happen.
+ *
+ * @return the platform value
+ */
+ public PlatformProperties platform() {
+ return this.platform;
+ }
+
+ /**
+ * Set the platform properties against which the run has to happen.
+ *
+ * @param platform the platform value to set
+ * @return the DockerBuildRequest object itself.
+ */
+ public DockerBuildRequest withPlatform(PlatformProperties platform) {
+ this.platform = platform;
+ return this;
+ }
+
+ /**
+ * Get the machine configuration of the run agent.
+ *
+ * @return the agentConfiguration value
+ */
+ public AgentProperties agentConfiguration() {
+ return this.agentConfiguration;
+ }
+
+ /**
+ * Set the machine configuration of the run agent.
+ *
+ * @param agentConfiguration the agentConfiguration value to set
+ * @return the DockerBuildRequest object itself.
+ */
+ public DockerBuildRequest withAgentConfiguration(AgentProperties agentConfiguration) {
+ this.agentConfiguration = agentConfiguration;
+ return this;
+ }
+
+ /**
+ * Get the URL(absolute or relative) of the source context. It can be an URL to a tar or git repository.
+ 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 repository.
+ 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;
+ }
+
+ /**
+ * 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/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/DockerBuildStep.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/DockerBuildStep.java
new file mode 100644
index 000000000000..9e97052e5454
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/DockerBuildStep.java
@@ -0,0 +1,181 @@
+/**
+ * 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.v2019_04_01;
+
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+
+/**
+ * The Docker build step.
+ */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
+@JsonTypeName("Docker")
+public class DockerBuildStep extends TaskStepProperties {
+ /**
+ * The fully qualified image names including the repository and tag.
+ */
+ @JsonProperty(value = "imageNames")
+ private List imageNames;
+
+ /**
+ * The value of this property indicates whether the image built should be
+ * pushed to the registry or not.
+ */
+ @JsonProperty(value = "isPushEnabled")
+ private Boolean isPushEnabled;
+
+ /**
+ * The value of this property indicates whether the image cache is enabled
+ * or not.
+ */
+ @JsonProperty(value = "noCache")
+ private Boolean noCache;
+
+ /**
+ * The Docker file path relative to the source context.
+ */
+ @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.
+ */
+ @JsonProperty(value = "arguments")
+ private List arguments;
+
+ /**
+ * Get the fully qualified image names including the repository and tag.
+ *
+ * @return the imageNames value
+ */
+ public List imageNames() {
+ return this.imageNames;
+ }
+
+ /**
+ * Set the fully qualified image names including the repository and tag.
+ *
+ * @param imageNames the imageNames value to set
+ * @return the DockerBuildStep object itself.
+ */
+ public DockerBuildStep withImageNames(List imageNames) {
+ this.imageNames = imageNames;
+ return this;
+ }
+
+ /**
+ * Get the value of this property indicates whether the image built should be pushed to the registry or not.
+ *
+ * @return the isPushEnabled value
+ */
+ public Boolean isPushEnabled() {
+ return this.isPushEnabled;
+ }
+
+ /**
+ * Set the value of this property indicates whether the image built should be pushed to the registry or not.
+ *
+ * @param isPushEnabled the isPushEnabled value to set
+ * @return the DockerBuildStep object itself.
+ */
+ public DockerBuildStep withIsPushEnabled(Boolean isPushEnabled) {
+ this.isPushEnabled = isPushEnabled;
+ return this;
+ }
+
+ /**
+ * Get the value of this property indicates whether the image cache is enabled or not.
+ *
+ * @return the noCache value
+ */
+ public Boolean noCache() {
+ return this.noCache;
+ }
+
+ /**
+ * Set the value of this property indicates whether the image cache is enabled or not.
+ *
+ * @param noCache the noCache value to set
+ * @return the DockerBuildStep object itself.
+ */
+ public DockerBuildStep withNoCache(Boolean noCache) {
+ this.noCache = noCache;
+ return this;
+ }
+
+ /**
+ * Get the Docker file path relative to the source context.
+ *
+ * @return the dockerFilePath value
+ */
+ public String dockerFilePath() {
+ return this.dockerFilePath;
+ }
+
+ /**
+ * Set the Docker file path relative to the source context.
+ *
+ * @param dockerFilePath the dockerFilePath value to set
+ * @return the DockerBuildStep object itself.
+ */
+ public DockerBuildStep withDockerFilePath(String dockerFilePath) {
+ this.dockerFilePath = 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.
+ *
+ * @return the arguments value
+ */
+ public List arguments() {
+ return this.arguments;
+ }
+
+ /**
+ * Set the collection of override arguments to be used when executing this build step.
+ *
+ * @param arguments the arguments value to set
+ * @return the DockerBuildStep object itself.
+ */
+ public DockerBuildStep withArguments(List arguments) {
+ this.arguments = arguments;
+ return this;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/DockerBuildStepUpdateParameters.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/DockerBuildStepUpdateParameters.java
new file mode 100644
index 000000000000..49fdd5ee62cc
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/DockerBuildStepUpdateParameters.java
@@ -0,0 +1,181 @@
+/**
+ * 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.v2019_04_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 a docker build step.
+ */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
+@JsonTypeName("Docker")
+public class DockerBuildStepUpdateParameters extends TaskStepUpdateParameters {
+ /**
+ * The fully qualified image names including the repository and tag.
+ */
+ @JsonProperty(value = "imageNames")
+ private List imageNames;
+
+ /**
+ * The value of this property indicates whether the image built should be
+ * pushed to the registry or not.
+ */
+ @JsonProperty(value = "isPushEnabled")
+ private Boolean isPushEnabled;
+
+ /**
+ * The value of this property indicates whether the image cache is enabled
+ * or not.
+ */
+ @JsonProperty(value = "noCache")
+ private Boolean noCache;
+
+ /**
+ * The Docker file path relative to the source context.
+ */
+ @JsonProperty(value = "dockerFilePath")
+ private String dockerFilePath;
+
+ /**
+ * The collection of override arguments to be used when executing this
+ * build step.
+ */
+ @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.
+ *
+ * @return the imageNames value
+ */
+ public List imageNames() {
+ return this.imageNames;
+ }
+
+ /**
+ * Set the fully qualified image names including the repository and tag.
+ *
+ * @param imageNames the imageNames value to set
+ * @return the DockerBuildStepUpdateParameters object itself.
+ */
+ public DockerBuildStepUpdateParameters withImageNames(List imageNames) {
+ this.imageNames = imageNames;
+ return this;
+ }
+
+ /**
+ * Get the value of this property indicates whether the image built should be pushed to the registry or not.
+ *
+ * @return the isPushEnabled value
+ */
+ public Boolean isPushEnabled() {
+ return this.isPushEnabled;
+ }
+
+ /**
+ * Set the value of this property indicates whether the image built should be pushed to the registry or not.
+ *
+ * @param isPushEnabled the isPushEnabled value to set
+ * @return the DockerBuildStepUpdateParameters object itself.
+ */
+ public DockerBuildStepUpdateParameters withIsPushEnabled(Boolean isPushEnabled) {
+ this.isPushEnabled = isPushEnabled;
+ return this;
+ }
+
+ /**
+ * Get the value of this property indicates whether the image cache is enabled or not.
+ *
+ * @return the noCache value
+ */
+ public Boolean noCache() {
+ return this.noCache;
+ }
+
+ /**
+ * Set the value of this property indicates whether the image cache is enabled or not.
+ *
+ * @param noCache the noCache value to set
+ * @return the DockerBuildStepUpdateParameters object itself.
+ */
+ public DockerBuildStepUpdateParameters withNoCache(Boolean noCache) {
+ this.noCache = noCache;
+ return this;
+ }
+
+ /**
+ * Get the Docker file path relative to the source context.
+ *
+ * @return the dockerFilePath value
+ */
+ public String dockerFilePath() {
+ return this.dockerFilePath;
+ }
+
+ /**
+ * Set the Docker file path relative to the source context.
+ *
+ * @param dockerFilePath the dockerFilePath value to set
+ * @return the DockerBuildStepUpdateParameters object itself.
+ */
+ public DockerBuildStepUpdateParameters withDockerFilePath(String dockerFilePath) {
+ this.dockerFilePath = dockerFilePath;
+ return this;
+ }
+
+ /**
+ * Get the collection of override arguments to be used when executing this build step.
+ *
+ * @return the arguments value
+ */
+ public List arguments() {
+ return this.arguments;
+ }
+
+ /**
+ * Set the collection of override arguments to be used when executing this build step.
+ *
+ * @param arguments the arguments value to set
+ * @return the DockerBuildStepUpdateParameters object itself.
+ */
+ public DockerBuildStepUpdateParameters withArguments(List arguments) {
+ this.arguments = 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/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/EncodedTaskRunRequest.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/EncodedTaskRunRequest.java
new file mode 100644
index 000000000000..1eb1ac8ca4e0
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/EncodedTaskRunRequest.java
@@ -0,0 +1,237 @@
+/**
+ * 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.v2019_04_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;
+
+ /**
+ * Run timeout in seconds.
+ */
+ @JsonProperty(value = "timeout")
+ private Integer timeout;
+
+ /**
+ * The platform properties against which the run has to happen.
+ */
+ @JsonProperty(value = "platform", required = true)
+ private PlatformProperties platform;
+
+ /**
+ * 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 repository.
+ * If it is relative URL, the relative path should be obtained from calling
+ * listBuildSourceUploadUrl API.
+ */
+ @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.
+ *
+ * @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 run timeout in seconds.
+ *
+ * @return the timeout value
+ */
+ public Integer timeout() {
+ return this.timeout;
+ }
+
+ /**
+ * Set run 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 run has to happen.
+ *
+ * @return the platform value
+ */
+ public PlatformProperties platform() {
+ return this.platform;
+ }
+
+ /**
+ * Set the platform properties against which the run has to 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 run agent.
+ *
+ * @return the agentConfiguration value
+ */
+ public AgentProperties agentConfiguration() {
+ return this.agentConfiguration;
+ }
+
+ /**
+ * Set the machine configuration of the run agent.
+ *
+ * @param agentConfiguration the agentConfiguration value to set
+ * @return the EncodedTaskRunRequest object itself.
+ */
+ public EncodedTaskRunRequest withAgentConfiguration(AgentProperties agentConfiguration) {
+ this.agentConfiguration = agentConfiguration;
+ return this;
+ }
+
+ /**
+ * Get the URL(absolute or relative) of the source context. It can be an URL to a tar or git repository.
+ 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 repository.
+ 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;
+ }
+
+ /**
+ * 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/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/EncodedTaskStep.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/EncodedTaskStep.java
new file mode 100644
index 000000000000..ce127ea8aec9
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_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.v2019_04_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/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/EncodedTaskStepUpdateParameters.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/EncodedTaskStepUpdateParameters.java
new file mode 100644
index 000000000000..c12676d1bcda
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_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.v2019_04_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/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/Event.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/Event.java
new file mode 100644
index 000000000000..0f0123577cba
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/Event.java
@@ -0,0 +1,35 @@
+/**
+ * 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.v2019_04_01;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.containerregistry.v2019_04_01.implementation.ContainerRegistryManager;
+import com.microsoft.azure.management.containerregistry.v2019_04_01.implementation.EventInner;
+
+/**
+ * Type representing Event.
+ */
+public interface Event extends HasInner, HasManager {
+ /**
+ * @return the eventRequestMessage value.
+ */
+ EventRequestMessage eventRequestMessage();
+
+ /**
+ * @return the eventResponseMessage value.
+ */
+ EventResponseMessage eventResponseMessage();
+
+ /**
+ * @return the id value.
+ */
+ String id();
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/EventContent.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/EventContent.java
new file mode 100644
index 000000000000..3e259d539372
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/EventContent.java
@@ -0,0 +1,202 @@
+/**
+ * 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.v2019_04_01;
+
+import org.joda.time.DateTime;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The content of the event request message.
+ */
+public class EventContent {
+ /**
+ * The event ID.
+ */
+ @JsonProperty(value = "id")
+ private String id;
+
+ /**
+ * The time at which the event occurred.
+ */
+ @JsonProperty(value = "timestamp")
+ private DateTime timestamp;
+
+ /**
+ * The action that encompasses the provided event.
+ */
+ @JsonProperty(value = "action")
+ private String action;
+
+ /**
+ * The target of the event.
+ */
+ @JsonProperty(value = "target")
+ private Target target;
+
+ /**
+ * The request that generated the event.
+ */
+ @JsonProperty(value = "request")
+ private Request request;
+
+ /**
+ * The agent that initiated the event. For most situations, this could be
+ * from the authorization context of the request.
+ */
+ @JsonProperty(value = "actor")
+ private Actor actor;
+
+ /**
+ * The registry node that generated the event. Put differently, while the
+ * actor initiates the event, the source generates it.
+ */
+ @JsonProperty(value = "source")
+ private Source source;
+
+ /**
+ * Get the event ID.
+ *
+ * @return the id value
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Set the event ID.
+ *
+ * @param id the id value to set
+ * @return the EventContent object itself.
+ */
+ public EventContent withId(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Get the time at which the event occurred.
+ *
+ * @return the timestamp value
+ */
+ public DateTime timestamp() {
+ return this.timestamp;
+ }
+
+ /**
+ * Set the time at which the event occurred.
+ *
+ * @param timestamp the timestamp value to set
+ * @return the EventContent object itself.
+ */
+ public EventContent withTimestamp(DateTime timestamp) {
+ this.timestamp = timestamp;
+ return this;
+ }
+
+ /**
+ * Get the action that encompasses the provided event.
+ *
+ * @return the action value
+ */
+ public String action() {
+ return this.action;
+ }
+
+ /**
+ * Set the action that encompasses the provided event.
+ *
+ * @param action the action value to set
+ * @return the EventContent object itself.
+ */
+ public EventContent withAction(String action) {
+ this.action = action;
+ return this;
+ }
+
+ /**
+ * Get the target of the event.
+ *
+ * @return the target value
+ */
+ public Target target() {
+ return this.target;
+ }
+
+ /**
+ * Set the target of the event.
+ *
+ * @param target the target value to set
+ * @return the EventContent object itself.
+ */
+ public EventContent withTarget(Target target) {
+ this.target = target;
+ return this;
+ }
+
+ /**
+ * Get the request that generated the event.
+ *
+ * @return the request value
+ */
+ public Request request() {
+ return this.request;
+ }
+
+ /**
+ * Set the request that generated the event.
+ *
+ * @param request the request value to set
+ * @return the EventContent object itself.
+ */
+ public EventContent withRequest(Request request) {
+ this.request = request;
+ return this;
+ }
+
+ /**
+ * Get the agent that initiated the event. For most situations, this could be from the authorization context of the request.
+ *
+ * @return the actor value
+ */
+ public Actor actor() {
+ return this.actor;
+ }
+
+ /**
+ * Set the agent that initiated the event. For most situations, this could be from the authorization context of the request.
+ *
+ * @param actor the actor value to set
+ * @return the EventContent object itself.
+ */
+ public EventContent withActor(Actor actor) {
+ this.actor = actor;
+ return this;
+ }
+
+ /**
+ * Get the registry node that generated the event. Put differently, while the actor initiates the event, the source generates it.
+ *
+ * @return the source value
+ */
+ public Source source() {
+ return this.source;
+ }
+
+ /**
+ * Set the registry node that generated the event. Put differently, while the actor initiates the event, the source generates it.
+ *
+ * @param source the source value to set
+ * @return the EventContent object itself.
+ */
+ public EventContent withSource(Source source) {
+ this.source = source;
+ return this;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/EventInfo.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/EventInfo.java
new file mode 100644
index 000000000000..ef1c41fb408d
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/EventInfo.java
@@ -0,0 +1,25 @@
+/**
+ * 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.v2019_04_01;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.containerregistry.v2019_04_01.implementation.ContainerRegistryManager;
+import com.microsoft.azure.management.containerregistry.v2019_04_01.implementation.EventInfoInner;
+
+/**
+ * Type representing EventInfo.
+ */
+public interface EventInfo extends HasInner, HasManager {
+ /**
+ * @return the id value.
+ */
+ String id();
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/EventRequestMessage.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/EventRequestMessage.java
new file mode 100644
index 000000000000..3b0315c9eb18
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/EventRequestMessage.java
@@ -0,0 +1,148 @@
+/**
+ * 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.v2019_04_01;
+
+import java.util.Map;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The event request message sent to the service URI.
+ */
+public class EventRequestMessage {
+ /**
+ * The content of the event request message.
+ */
+ @JsonProperty(value = "content")
+ private EventContent content;
+
+ /**
+ * The headers of the event request message.
+ */
+ @JsonProperty(value = "headers")
+ private Map headers;
+
+ /**
+ * The HTTP method used to send the event request message.
+ */
+ @JsonProperty(value = "method")
+ private String method;
+
+ /**
+ * The URI used to send the event request message.
+ */
+ @JsonProperty(value = "requestUri")
+ private String requestUri;
+
+ /**
+ * The HTTP message version.
+ */
+ @JsonProperty(value = "version")
+ private String version;
+
+ /**
+ * Get the content of the event request message.
+ *
+ * @return the content value
+ */
+ public EventContent content() {
+ return this.content;
+ }
+
+ /**
+ * Set the content of the event request message.
+ *
+ * @param content the content value to set
+ * @return the EventRequestMessage object itself.
+ */
+ public EventRequestMessage withContent(EventContent content) {
+ this.content = content;
+ return this;
+ }
+
+ /**
+ * Get the headers of the event request message.
+ *
+ * @return the headers value
+ */
+ public Map headers() {
+ return this.headers;
+ }
+
+ /**
+ * Set the headers of the event request message.
+ *
+ * @param headers the headers value to set
+ * @return the EventRequestMessage object itself.
+ */
+ public EventRequestMessage withHeaders(Map headers) {
+ this.headers = headers;
+ return this;
+ }
+
+ /**
+ * Get the HTTP method used to send the event request message.
+ *
+ * @return the method value
+ */
+ public String method() {
+ return this.method;
+ }
+
+ /**
+ * Set the HTTP method used to send the event request message.
+ *
+ * @param method the method value to set
+ * @return the EventRequestMessage object itself.
+ */
+ public EventRequestMessage withMethod(String method) {
+ this.method = method;
+ return this;
+ }
+
+ /**
+ * Get the URI used to send the event request message.
+ *
+ * @return the requestUri value
+ */
+ public String requestUri() {
+ return this.requestUri;
+ }
+
+ /**
+ * Set the URI used to send the event request message.
+ *
+ * @param requestUri the requestUri value to set
+ * @return the EventRequestMessage object itself.
+ */
+ public EventRequestMessage withRequestUri(String requestUri) {
+ this.requestUri = requestUri;
+ return this;
+ }
+
+ /**
+ * Get the HTTP message version.
+ *
+ * @return the version value
+ */
+ public String version() {
+ return this.version;
+ }
+
+ /**
+ * Set the HTTP message version.
+ *
+ * @param version the version value to set
+ * @return the EventRequestMessage object itself.
+ */
+ public EventRequestMessage withVersion(String version) {
+ this.version = version;
+ return this;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/EventResponseMessage.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/EventResponseMessage.java
new file mode 100644
index 000000000000..9c1aafeaddbd
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/EventResponseMessage.java
@@ -0,0 +1,148 @@
+/**
+ * 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.v2019_04_01;
+
+import java.util.Map;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The event response message received from the service URI.
+ */
+public class EventResponseMessage {
+ /**
+ * The content of the event response message.
+ */
+ @JsonProperty(value = "content")
+ private String content;
+
+ /**
+ * The headers of the event response message.
+ */
+ @JsonProperty(value = "headers")
+ private Map headers;
+
+ /**
+ * The reason phrase of the event response message.
+ */
+ @JsonProperty(value = "reasonPhrase")
+ private String reasonPhrase;
+
+ /**
+ * The status code of the event response message.
+ */
+ @JsonProperty(value = "statusCode")
+ private String statusCode;
+
+ /**
+ * The HTTP message version.
+ */
+ @JsonProperty(value = "version")
+ private String version;
+
+ /**
+ * Get the content of the event response message.
+ *
+ * @return the content value
+ */
+ public String content() {
+ return this.content;
+ }
+
+ /**
+ * Set the content of the event response message.
+ *
+ * @param content the content value to set
+ * @return the EventResponseMessage object itself.
+ */
+ public EventResponseMessage withContent(String content) {
+ this.content = content;
+ return this;
+ }
+
+ /**
+ * Get the headers of the event response message.
+ *
+ * @return the headers value
+ */
+ public Map headers() {
+ return this.headers;
+ }
+
+ /**
+ * Set the headers of the event response message.
+ *
+ * @param headers the headers value to set
+ * @return the EventResponseMessage object itself.
+ */
+ public EventResponseMessage withHeaders(Map headers) {
+ this.headers = headers;
+ return this;
+ }
+
+ /**
+ * Get the reason phrase of the event response message.
+ *
+ * @return the reasonPhrase value
+ */
+ public String reasonPhrase() {
+ return this.reasonPhrase;
+ }
+
+ /**
+ * Set the reason phrase of the event response message.
+ *
+ * @param reasonPhrase the reasonPhrase value to set
+ * @return the EventResponseMessage object itself.
+ */
+ public EventResponseMessage withReasonPhrase(String reasonPhrase) {
+ this.reasonPhrase = reasonPhrase;
+ return this;
+ }
+
+ /**
+ * Get the status code of the event response message.
+ *
+ * @return the statusCode value
+ */
+ public String statusCode() {
+ return this.statusCode;
+ }
+
+ /**
+ * Set the status code of the event response message.
+ *
+ * @param statusCode the statusCode value to set
+ * @return the EventResponseMessage object itself.
+ */
+ public EventResponseMessage withStatusCode(String statusCode) {
+ this.statusCode = statusCode;
+ return this;
+ }
+
+ /**
+ * Get the HTTP message version.
+ *
+ * @return the version value
+ */
+ public String version() {
+ return this.version;
+ }
+
+ /**
+ * Set the HTTP message version.
+ *
+ * @param version the version value to set
+ * @return the EventResponseMessage object itself.
+ */
+ public EventResponseMessage withVersion(String version) {
+ this.version = version;
+ return this;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/FileTaskRunRequest.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/FileTaskRunRequest.java
new file mode 100644
index 000000000000..76243a1a6fae
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/FileTaskRunRequest.java
@@ -0,0 +1,237 @@
+/**
+ * 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.v2019_04_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;
+
+ /**
+ * Run timeout in seconds.
+ */
+ @JsonProperty(value = "timeout")
+ private Integer timeout;
+
+ /**
+ * The platform properties against which the run has to happen.
+ */
+ @JsonProperty(value = "platform", required = true)
+ private PlatformProperties platform;
+
+ /**
+ * 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 repository.
+ * If it is relative URL, the relative path should be obtained from calling
+ * listBuildSourceUploadUrl API.
+ */
+ @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.
+ *
+ * @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 run timeout in seconds.
+ *
+ * @return the timeout value
+ */
+ public Integer timeout() {
+ return this.timeout;
+ }
+
+ /**
+ * Set run 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 run has to happen.
+ *
+ * @return the platform value
+ */
+ public PlatformProperties platform() {
+ return this.platform;
+ }
+
+ /**
+ * Set the platform properties against which the run has to 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 run agent.
+ *
+ * @return the agentConfiguration value
+ */
+ public AgentProperties agentConfiguration() {
+ return this.agentConfiguration;
+ }
+
+ /**
+ * Set the machine configuration of the run agent.
+ *
+ * @param agentConfiguration the agentConfiguration value to set
+ * @return the FileTaskRunRequest object itself.
+ */
+ public FileTaskRunRequest withAgentConfiguration(AgentProperties agentConfiguration) {
+ this.agentConfiguration = agentConfiguration;
+ return this;
+ }
+
+ /**
+ * Get the URL(absolute or relative) of the source context. It can be an URL to a tar or git repository.
+ 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 repository.
+ 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;
+ }
+
+ /**
+ * 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/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/FileTaskStep.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/FileTaskStep.java
new file mode 100644
index 000000000000..85ce43007095
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/FileTaskStep.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.v2019_04_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;
+
+ /**
+ * 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;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/FileTaskStepUpdateParameters.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/FileTaskStepUpdateParameters.java
new file mode 100644
index 000000000000..4f5f583c746f
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/FileTaskStepUpdateParameters.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.v2019_04_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;
+
+ /**
+ * 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;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/IPRule.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/IPRule.java
new file mode 100644
index 000000000000..69cfec448971
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/IPRule.java
@@ -0,0 +1,70 @@
+/**
+ * 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.v2019_04_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * IP rule with specific IP or IP range in CIDR format.
+ */
+public class IPRule {
+ /**
+ * The action of IP ACL rule. Possible values include: 'Allow'.
+ */
+ @JsonProperty(value = "action")
+ private Action action;
+
+ /**
+ * Specifies the IP or IP range in CIDR format. Only IPV4 address is
+ * allowed.
+ */
+ @JsonProperty(value = "value", required = true)
+ private String iPAddressOrRange;
+
+ /**
+ * Get the action of IP ACL rule. Possible values include: 'Allow'.
+ *
+ * @return the action value
+ */
+ public Action action() {
+ return this.action;
+ }
+
+ /**
+ * Set the action of IP ACL rule. Possible values include: 'Allow'.
+ *
+ * @param action the action value to set
+ * @return the IPRule object itself.
+ */
+ public IPRule withAction(Action action) {
+ this.action = action;
+ return this;
+ }
+
+ /**
+ * Get specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
+ *
+ * @return the iPAddressOrRange value
+ */
+ public String iPAddressOrRange() {
+ return this.iPAddressOrRange;
+ }
+
+ /**
+ * Set specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
+ *
+ * @param iPAddressOrRange the iPAddressOrRange value to set
+ * @return the IPRule object itself.
+ */
+ public IPRule withIPAddressOrRange(String iPAddressOrRange) {
+ this.iPAddressOrRange = iPAddressOrRange;
+ return this;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/IdentityProperties.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/IdentityProperties.java
new file mode 100644
index 000000000000..2b45457092d5
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/IdentityProperties.java
@@ -0,0 +1,133 @@
+/**
+ * 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.v2019_04_01;
+
+import java.util.Map;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Managed identity for the resource.
+ */
+public class IdentityProperties {
+ /**
+ * The principal ID of resource identity.
+ */
+ @JsonProperty(value = "principalId")
+ private String principalId;
+
+ /**
+ * The tenant ID of resource.
+ */
+ @JsonProperty(value = "tenantId")
+ private String tenantId;
+
+ /**
+ * The identity type. Possible values include: 'SystemAssigned',
+ * 'UserAssigned', 'SystemAssigned, UserAssigned', 'None'.
+ */
+ @JsonProperty(value = "type")
+ private ResourceIdentityType type;
+
+ /**
+ * The list of user identities associated with the resource. The user
+ * identity
+ * dictionary key references will be ARM resource ids in the form:
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/
+ * providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
+ */
+ @JsonProperty(value = "userAssignedIdentities")
+ private Map userAssignedIdentities;
+
+ /**
+ * Get the principal ID of resource identity.
+ *
+ * @return the principalId value
+ */
+ public String principalId() {
+ return this.principalId;
+ }
+
+ /**
+ * Set the principal ID of resource identity.
+ *
+ * @param principalId the principalId value to set
+ * @return the IdentityProperties object itself.
+ */
+ public IdentityProperties withPrincipalId(String principalId) {
+ this.principalId = principalId;
+ return this;
+ }
+
+ /**
+ * Get the tenant ID of resource.
+ *
+ * @return the tenantId value
+ */
+ public String tenantId() {
+ return this.tenantId;
+ }
+
+ /**
+ * Set the tenant ID of resource.
+ *
+ * @param tenantId the tenantId value to set
+ * @return the IdentityProperties object itself.
+ */
+ public IdentityProperties withTenantId(String tenantId) {
+ this.tenantId = tenantId;
+ return this;
+ }
+
+ /**
+ * Get the identity type. Possible values include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', 'None'.
+ *
+ * @return the type value
+ */
+ public ResourceIdentityType type() {
+ return this.type;
+ }
+
+ /**
+ * Set the identity type. Possible values include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', 'None'.
+ *
+ * @param type the type value to set
+ * @return the IdentityProperties object itself.
+ */
+ public IdentityProperties withType(ResourceIdentityType type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * Get the list of user identities associated with the resource. The user identity
+ dictionary key references will be ARM resource ids in the form:
+ '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/
+ providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
+ *
+ * @return the userAssignedIdentities value
+ */
+ public Map userAssignedIdentities() {
+ return this.userAssignedIdentities;
+ }
+
+ /**
+ * Set the list of user identities associated with the resource. The user identity
+ dictionary key references will be ARM resource ids in the form:
+ '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/
+ providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
+ *
+ * @param userAssignedIdentities the userAssignedIdentities value to set
+ * @return the IdentityProperties object itself.
+ */
+ public IdentityProperties withUserAssignedIdentities(Map userAssignedIdentities) {
+ this.userAssignedIdentities = userAssignedIdentities;
+ return this;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/ImageDescriptor.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/ImageDescriptor.java
new file mode 100644
index 000000000000..31f398c7ba76
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/ImageDescriptor.java
@@ -0,0 +1,121 @@
+/**
+ * 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.v2019_04_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Properties for a registry image.
+ */
+public class ImageDescriptor {
+ /**
+ * The registry login server.
+ */
+ @JsonProperty(value = "registry")
+ private String registry;
+
+ /**
+ * The repository name.
+ */
+ @JsonProperty(value = "repository")
+ private String repository;
+
+ /**
+ * The tag name.
+ */
+ @JsonProperty(value = "tag")
+ private String tag;
+
+ /**
+ * The sha256-based digest of the image manifest.
+ */
+ @JsonProperty(value = "digest")
+ private String digest;
+
+ /**
+ * Get the registry login server.
+ *
+ * @return the registry value
+ */
+ public String registry() {
+ return this.registry;
+ }
+
+ /**
+ * Set the registry login server.
+ *
+ * @param registry the registry value to set
+ * @return the ImageDescriptor object itself.
+ */
+ public ImageDescriptor withRegistry(String registry) {
+ this.registry = registry;
+ return this;
+ }
+
+ /**
+ * Get the repository name.
+ *
+ * @return the repository value
+ */
+ public String repository() {
+ return this.repository;
+ }
+
+ /**
+ * Set the repository name.
+ *
+ * @param repository the repository value to set
+ * @return the ImageDescriptor object itself.
+ */
+ public ImageDescriptor withRepository(String repository) {
+ this.repository = repository;
+ return this;
+ }
+
+ /**
+ * Get the tag name.
+ *
+ * @return the tag value
+ */
+ public String tag() {
+ return this.tag;
+ }
+
+ /**
+ * Set the tag name.
+ *
+ * @param tag the tag value to set
+ * @return the ImageDescriptor object itself.
+ */
+ public ImageDescriptor withTag(String tag) {
+ this.tag = tag;
+ return this;
+ }
+
+ /**
+ * Get the sha256-based digest of the image manifest.
+ *
+ * @return the digest value
+ */
+ public String digest() {
+ return this.digest;
+ }
+
+ /**
+ * Set the sha256-based digest of the image manifest.
+ *
+ * @param digest the digest value to set
+ * @return the ImageDescriptor object itself.
+ */
+ public ImageDescriptor withDigest(String digest) {
+ this.digest = digest;
+ return this;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/ImageUpdateTrigger.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/ImageUpdateTrigger.java
new file mode 100644
index 000000000000..e8b207bb386e
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/ImageUpdateTrigger.java
@@ -0,0 +1,97 @@
+/**
+ * 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.v2019_04_01;
+
+import org.joda.time.DateTime;
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The image update trigger that caused a build.
+ */
+public class ImageUpdateTrigger {
+ /**
+ * The unique ID of the trigger.
+ */
+ @JsonProperty(value = "id")
+ private String id;
+
+ /**
+ * The timestamp when the image update happened.
+ */
+ @JsonProperty(value = "timestamp")
+ private DateTime timestamp;
+
+ /**
+ * The list of image updates that caused the build.
+ */
+ @JsonProperty(value = "images")
+ private List images;
+
+ /**
+ * Get the unique ID of the trigger.
+ *
+ * @return the id value
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Set the unique ID of the trigger.
+ *
+ * @param id the id value to set
+ * @return the ImageUpdateTrigger object itself.
+ */
+ public ImageUpdateTrigger withId(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Get the timestamp when the image update happened.
+ *
+ * @return the timestamp value
+ */
+ public DateTime timestamp() {
+ return this.timestamp;
+ }
+
+ /**
+ * Set the timestamp when the image update happened.
+ *
+ * @param timestamp the timestamp value to set
+ * @return the ImageUpdateTrigger object itself.
+ */
+ public ImageUpdateTrigger withTimestamp(DateTime timestamp) {
+ this.timestamp = timestamp;
+ return this;
+ }
+
+ /**
+ * Get the list of image updates that caused the build.
+ *
+ * @return the images value
+ */
+ public List images() {
+ return this.images;
+ }
+
+ /**
+ * Set the list of image updates that caused the build.
+ *
+ * @param images the images value to set
+ * @return the ImageUpdateTrigger object itself.
+ */
+ public ImageUpdateTrigger withImages(List images) {
+ this.images = images;
+ return this;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/ImportImageParameters.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/ImportImageParameters.java
new file mode 100644
index 000000000000..2c2d7f0f636e
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/ImportImageParameters.java
@@ -0,0 +1,126 @@
+/**
+ * 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.v2019_04_01;
+
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The ImportImageParameters model.
+ */
+public class ImportImageParameters {
+ /**
+ * The source of the image.
+ */
+ @JsonProperty(value = "source", required = true)
+ private ImportSource source;
+
+ /**
+ * List of strings of the form repo[:tag]. When tag is omitted the source
+ * will be used (or 'latest' if source tag is also omitted).
+ */
+ @JsonProperty(value = "targetTags")
+ private List targetTags;
+
+ /**
+ * List of strings of repository names to do a manifest only copy. No tag
+ * will be created.
+ */
+ @JsonProperty(value = "untaggedTargetRepositories")
+ private List untaggedTargetRepositories;
+
+ /**
+ * When Force, any existing target tags will be overwritten. When NoForce,
+ * any existing target tags will fail the operation before any copying
+ * begins. Possible values include: 'NoForce', 'Force'.
+ */
+ @JsonProperty(value = "mode")
+ private ImportMode mode;
+
+ /**
+ * Get the source of the image.
+ *
+ * @return the source value
+ */
+ public ImportSource source() {
+ return this.source;
+ }
+
+ /**
+ * Set the source of the image.
+ *
+ * @param source the source value to set
+ * @return the ImportImageParameters object itself.
+ */
+ public ImportImageParameters withSource(ImportSource source) {
+ this.source = source;
+ return this;
+ }
+
+ /**
+ * Get list of strings of the form repo[:tag]. When tag is omitted the source will be used (or 'latest' if source tag is also omitted).
+ *
+ * @return the targetTags value
+ */
+ public List targetTags() {
+ return this.targetTags;
+ }
+
+ /**
+ * Set list of strings of the form repo[:tag]. When tag is omitted the source will be used (or 'latest' if source tag is also omitted).
+ *
+ * @param targetTags the targetTags value to set
+ * @return the ImportImageParameters object itself.
+ */
+ public ImportImageParameters withTargetTags(List targetTags) {
+ this.targetTags = targetTags;
+ return this;
+ }
+
+ /**
+ * Get list of strings of repository names to do a manifest only copy. No tag will be created.
+ *
+ * @return the untaggedTargetRepositories value
+ */
+ public List untaggedTargetRepositories() {
+ return this.untaggedTargetRepositories;
+ }
+
+ /**
+ * Set list of strings of repository names to do a manifest only copy. No tag will be created.
+ *
+ * @param untaggedTargetRepositories the untaggedTargetRepositories value to set
+ * @return the ImportImageParameters object itself.
+ */
+ public ImportImageParameters withUntaggedTargetRepositories(List untaggedTargetRepositories) {
+ this.untaggedTargetRepositories = untaggedTargetRepositories;
+ return this;
+ }
+
+ /**
+ * Get when Force, any existing target tags will be overwritten. When NoForce, any existing target tags will fail the operation before any copying begins. Possible values include: 'NoForce', 'Force'.
+ *
+ * @return the mode value
+ */
+ public ImportMode mode() {
+ return this.mode;
+ }
+
+ /**
+ * Set when Force, any existing target tags will be overwritten. When NoForce, any existing target tags will fail the operation before any copying begins. Possible values include: 'NoForce', 'Force'.
+ *
+ * @param mode the mode value to set
+ * @return the ImportImageParameters object itself.
+ */
+ public ImportImageParameters withMode(ImportMode mode) {
+ this.mode = mode;
+ return this;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/ImportMode.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/ImportMode.java
new file mode 100644
index 000000000000..3e7ee4d20359
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/ImportMode.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.v2019_04_01;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for ImportMode.
+ */
+public final class ImportMode extends ExpandableStringEnum {
+ /** Static value NoForce for ImportMode. */
+ public static final ImportMode NO_FORCE = fromString("NoForce");
+
+ /** Static value Force for ImportMode. */
+ public static final ImportMode FORCE = fromString("Force");
+
+ /**
+ * Creates or finds a ImportMode from its string representation.
+ * @param name a name to look for
+ * @return the corresponding ImportMode
+ */
+ @JsonCreator
+ public static ImportMode fromString(String name) {
+ return fromString(name, ImportMode.class);
+ }
+
+ /**
+ * @return known ImportMode values
+ */
+ public static Collection values() {
+ return values(ImportMode.class);
+ }
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/ImportSource.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/ImportSource.java
new file mode 100644
index 000000000000..906cef0af406
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/ImportSource.java
@@ -0,0 +1,132 @@
+/**
+ * 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.v2019_04_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The ImportSource model.
+ */
+public class ImportSource {
+ /**
+ * The resource identifier of the source Azure Container Registry.
+ */
+ @JsonProperty(value = "resourceId")
+ private String resourceId;
+
+ /**
+ * The address of the source registry (e.g. 'mcr.microsoft.com').
+ */
+ @JsonProperty(value = "registryUri")
+ private String registryUri;
+
+ /**
+ * Credentials used when importing from a registry uri.
+ */
+ @JsonProperty(value = "credentials")
+ private ImportSourceCredentials credentials;
+
+ /**
+ * Repository name of the source image.
+ * Specify an image by repository ('hello-world'). This will use the
+ * 'latest' tag.
+ * Specify an image by tag ('hello-world:latest').
+ * Specify an image by sha256-based manifest digest
+ * ('hello-world@sha256:abc123').
+ */
+ @JsonProperty(value = "sourceImage", required = true)
+ private String sourceImage;
+
+ /**
+ * Get the resource identifier of the source Azure Container Registry.
+ *
+ * @return the resourceId value
+ */
+ public String resourceId() {
+ return this.resourceId;
+ }
+
+ /**
+ * Set the resource identifier of the source Azure Container Registry.
+ *
+ * @param resourceId the resourceId value to set
+ * @return the ImportSource object itself.
+ */
+ public ImportSource withResourceId(String resourceId) {
+ this.resourceId = resourceId;
+ return this;
+ }
+
+ /**
+ * Get the address of the source registry (e.g. 'mcr.microsoft.com').
+ *
+ * @return the registryUri value
+ */
+ public String registryUri() {
+ return this.registryUri;
+ }
+
+ /**
+ * Set the address of the source registry (e.g. 'mcr.microsoft.com').
+ *
+ * @param registryUri the registryUri value to set
+ * @return the ImportSource object itself.
+ */
+ public ImportSource withRegistryUri(String registryUri) {
+ this.registryUri = registryUri;
+ return this;
+ }
+
+ /**
+ * Get credentials used when importing from a registry uri.
+ *
+ * @return the credentials value
+ */
+ public ImportSourceCredentials credentials() {
+ return this.credentials;
+ }
+
+ /**
+ * Set credentials used when importing from a registry uri.
+ *
+ * @param credentials the credentials value to set
+ * @return the ImportSource object itself.
+ */
+ public ImportSource withCredentials(ImportSourceCredentials credentials) {
+ this.credentials = credentials;
+ return this;
+ }
+
+ /**
+ * Get repository name of the source image.
+ Specify an image by repository ('hello-world'). This will use the 'latest' tag.
+ Specify an image by tag ('hello-world:latest').
+ Specify an image by sha256-based manifest digest ('hello-world@sha256:abc123').
+ *
+ * @return the sourceImage value
+ */
+ public String sourceImage() {
+ return this.sourceImage;
+ }
+
+ /**
+ * Set repository name of the source image.
+ Specify an image by repository ('hello-world'). This will use the 'latest' tag.
+ Specify an image by tag ('hello-world:latest').
+ Specify an image by sha256-based manifest digest ('hello-world@sha256:abc123').
+ *
+ * @param sourceImage the sourceImage value to set
+ * @return the ImportSource object itself.
+ */
+ public ImportSource withSourceImage(String sourceImage) {
+ this.sourceImage = sourceImage;
+ return this;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/ImportSourceCredentials.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/ImportSourceCredentials.java
new file mode 100644
index 000000000000..2849dd319162
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/ImportSourceCredentials.java
@@ -0,0 +1,69 @@
+/**
+ * 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.v2019_04_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The ImportSourceCredentials model.
+ */
+public class ImportSourceCredentials {
+ /**
+ * The username to authenticate with the source registry.
+ */
+ @JsonProperty(value = "username")
+ private String username;
+
+ /**
+ * The password used to authenticate with the source registry.
+ */
+ @JsonProperty(value = "password", required = true)
+ private String password;
+
+ /**
+ * Get the username to authenticate with the source registry.
+ *
+ * @return the username value
+ */
+ public String username() {
+ return this.username;
+ }
+
+ /**
+ * Set the username to authenticate with the source registry.
+ *
+ * @param username the username value to set
+ * @return the ImportSourceCredentials object itself.
+ */
+ public ImportSourceCredentials withUsername(String username) {
+ this.username = username;
+ return this;
+ }
+
+ /**
+ * Get the password used to authenticate with the source registry.
+ *
+ * @return the password value
+ */
+ public String password() {
+ return this.password;
+ }
+
+ /**
+ * Set the password used to authenticate with the source registry.
+ *
+ * @param password the password value to set
+ * @return the ImportSourceCredentials object itself.
+ */
+ public ImportSourceCredentials withPassword(String password) {
+ this.password = password;
+ return this;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/NetworkRuleSet.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/NetworkRuleSet.java
new file mode 100644
index 000000000000..02807b2b797a
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/NetworkRuleSet.java
@@ -0,0 +1,97 @@
+/**
+ * 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.v2019_04_01;
+
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The network rule set for a container registry.
+ */
+public class NetworkRuleSet {
+ /**
+ * The default action of allow or deny when no other rules match. Possible
+ * values include: 'Allow', 'Deny'.
+ */
+ @JsonProperty(value = "defaultAction", required = true)
+ private DefaultAction defaultAction;
+
+ /**
+ * The virtual network rules.
+ */
+ @JsonProperty(value = "virtualNetworkRules")
+ private List virtualNetworkRules;
+
+ /**
+ * The IP ACL rules.
+ */
+ @JsonProperty(value = "ipRules")
+ private List ipRules;
+
+ /**
+ * Get the default action of allow or deny when no other rules match. Possible values include: 'Allow', 'Deny'.
+ *
+ * @return the defaultAction value
+ */
+ public DefaultAction defaultAction() {
+ return this.defaultAction;
+ }
+
+ /**
+ * Set the default action of allow or deny when no other rules match. Possible values include: 'Allow', 'Deny'.
+ *
+ * @param defaultAction the defaultAction value to set
+ * @return the NetworkRuleSet object itself.
+ */
+ public NetworkRuleSet withDefaultAction(DefaultAction defaultAction) {
+ this.defaultAction = defaultAction;
+ return this;
+ }
+
+ /**
+ * Get the virtual network rules.
+ *
+ * @return the virtualNetworkRules value
+ */
+ public List virtualNetworkRules() {
+ return this.virtualNetworkRules;
+ }
+
+ /**
+ * Set the virtual network rules.
+ *
+ * @param virtualNetworkRules the virtualNetworkRules value to set
+ * @return the NetworkRuleSet object itself.
+ */
+ public NetworkRuleSet withVirtualNetworkRules(List virtualNetworkRules) {
+ this.virtualNetworkRules = virtualNetworkRules;
+ return this;
+ }
+
+ /**
+ * Get the IP ACL rules.
+ *
+ * @return the ipRules value
+ */
+ public List ipRules() {
+ return this.ipRules;
+ }
+
+ /**
+ * Set the IP ACL rules.
+ *
+ * @param ipRules the ipRules value to set
+ * @return the NetworkRuleSet object itself.
+ */
+ public NetworkRuleSet withIpRules(List ipRules) {
+ this.ipRules = ipRules;
+ return this;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/OS.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/OS.java
new file mode 100644
index 000000000000..c6b50c506a0e
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/OS.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.v2019_04_01;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for OS.
+ */
+public final class OS extends ExpandableStringEnum {
+ /** Static value Windows for OS. */
+ public static final OS WINDOWS = fromString("Windows");
+
+ /** Static value Linux for OS. */
+ public static final OS LINUX = fromString("Linux");
+
+ /**
+ * Creates or finds a OS from its string representation.
+ * @param name a name to look for
+ * @return the corresponding OS
+ */
+ @JsonCreator
+ public static OS fromString(String name) {
+ return fromString(name, OS.class);
+ }
+
+ /**
+ * @return known OS values
+ */
+ public static Collection values() {
+ return values(OS.class);
+ }
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/OperationDefinition.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/OperationDefinition.java
new file mode 100644
index 000000000000..8a02d3c76f17
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/OperationDefinition.java
@@ -0,0 +1,40 @@
+/**
+ * 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.v2019_04_01;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.containerregistry.v2019_04_01.implementation.ContainerRegistryManager;
+import com.microsoft.azure.management.containerregistry.v2019_04_01.implementation.OperationDefinitionInner;
+
+/**
+ * Type representing OperationDefinition.
+ */
+public interface OperationDefinition extends HasInner, HasManager {
+ /**
+ * @return the display value.
+ */
+ OperationDisplayDefinition display();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the origin value.
+ */
+ String origin();
+
+ /**
+ * @return the serviceSpecification value.
+ */
+ OperationServiceSpecificationDefinition serviceSpecification();
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/OperationDisplayDefinition.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/OperationDisplayDefinition.java
new file mode 100644
index 000000000000..75b34bf154c6
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/OperationDisplayDefinition.java
@@ -0,0 +1,121 @@
+/**
+ * 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.v2019_04_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The display information for a container registry operation.
+ */
+public class OperationDisplayDefinition {
+ /**
+ * The resource provider name: Microsoft.ContainerRegistry.
+ */
+ @JsonProperty(value = "provider")
+ private String provider;
+
+ /**
+ * The resource on which the operation is performed.
+ */
+ @JsonProperty(value = "resource")
+ private String resource;
+
+ /**
+ * The operation that users can perform.
+ */
+ @JsonProperty(value = "operation")
+ private String operation;
+
+ /**
+ * The description for the operation.
+ */
+ @JsonProperty(value = "description")
+ private String description;
+
+ /**
+ * Get the resource provider name: Microsoft.ContainerRegistry.
+ *
+ * @return the provider value
+ */
+ public String provider() {
+ return this.provider;
+ }
+
+ /**
+ * Set the resource provider name: Microsoft.ContainerRegistry.
+ *
+ * @param provider the provider value to set
+ * @return the OperationDisplayDefinition object itself.
+ */
+ public OperationDisplayDefinition withProvider(String provider) {
+ this.provider = provider;
+ return this;
+ }
+
+ /**
+ * Get the resource on which the operation is performed.
+ *
+ * @return the resource value
+ */
+ public String resource() {
+ return this.resource;
+ }
+
+ /**
+ * Set the resource on which the operation is performed.
+ *
+ * @param resource the resource value to set
+ * @return the OperationDisplayDefinition object itself.
+ */
+ public OperationDisplayDefinition withResource(String resource) {
+ this.resource = resource;
+ return this;
+ }
+
+ /**
+ * Get the operation that users can perform.
+ *
+ * @return the operation value
+ */
+ public String operation() {
+ return this.operation;
+ }
+
+ /**
+ * Set the operation that users can perform.
+ *
+ * @param operation the operation value to set
+ * @return the OperationDisplayDefinition object itself.
+ */
+ public OperationDisplayDefinition withOperation(String operation) {
+ this.operation = operation;
+ return this;
+ }
+
+ /**
+ * Get the description for the operation.
+ *
+ * @return the description value
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Set the description for the operation.
+ *
+ * @param description the description value to set
+ * @return the OperationDisplayDefinition object itself.
+ */
+ public OperationDisplayDefinition withDescription(String description) {
+ this.description = description;
+ return this;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/OperationMetricSpecificationDefinition.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/OperationMetricSpecificationDefinition.java
new file mode 100644
index 000000000000..79809f132191
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/OperationMetricSpecificationDefinition.java
@@ -0,0 +1,173 @@
+/**
+ * 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.v2019_04_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The definition of Azure Monitoring metric.
+ */
+public class OperationMetricSpecificationDefinition {
+ /**
+ * Metric name.
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /**
+ * Metric display name.
+ */
+ @JsonProperty(value = "displayName")
+ private String displayName;
+
+ /**
+ * Metric description.
+ */
+ @JsonProperty(value = "displayDescription")
+ private String displayDescription;
+
+ /**
+ * Metric unit.
+ */
+ @JsonProperty(value = "unit")
+ private String unit;
+
+ /**
+ * Metric aggregation type.
+ */
+ @JsonProperty(value = "aggregationType")
+ private String aggregationType;
+
+ /**
+ * Internal metric name.
+ */
+ @JsonProperty(value = "internalMetricName")
+ private String internalMetricName;
+
+ /**
+ * Get metric name.
+ *
+ * @return the name value
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set metric name.
+ *
+ * @param name the name value to set
+ * @return the OperationMetricSpecificationDefinition object itself.
+ */
+ public OperationMetricSpecificationDefinition withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get metric display name.
+ *
+ * @return the displayName value
+ */
+ public String displayName() {
+ return this.displayName;
+ }
+
+ /**
+ * Set metric display name.
+ *
+ * @param displayName the displayName value to set
+ * @return the OperationMetricSpecificationDefinition object itself.
+ */
+ public OperationMetricSpecificationDefinition withDisplayName(String displayName) {
+ this.displayName = displayName;
+ return this;
+ }
+
+ /**
+ * Get metric description.
+ *
+ * @return the displayDescription value
+ */
+ public String displayDescription() {
+ return this.displayDescription;
+ }
+
+ /**
+ * Set metric description.
+ *
+ * @param displayDescription the displayDescription value to set
+ * @return the OperationMetricSpecificationDefinition object itself.
+ */
+ public OperationMetricSpecificationDefinition withDisplayDescription(String displayDescription) {
+ this.displayDescription = displayDescription;
+ return this;
+ }
+
+ /**
+ * Get metric unit.
+ *
+ * @return the unit value
+ */
+ public String unit() {
+ return this.unit;
+ }
+
+ /**
+ * Set metric unit.
+ *
+ * @param unit the unit value to set
+ * @return the OperationMetricSpecificationDefinition object itself.
+ */
+ public OperationMetricSpecificationDefinition withUnit(String unit) {
+ this.unit = unit;
+ return this;
+ }
+
+ /**
+ * Get metric aggregation type.
+ *
+ * @return the aggregationType value
+ */
+ public String aggregationType() {
+ return this.aggregationType;
+ }
+
+ /**
+ * Set metric aggregation type.
+ *
+ * @param aggregationType the aggregationType value to set
+ * @return the OperationMetricSpecificationDefinition object itself.
+ */
+ public OperationMetricSpecificationDefinition withAggregationType(String aggregationType) {
+ this.aggregationType = aggregationType;
+ return this;
+ }
+
+ /**
+ * Get internal metric name.
+ *
+ * @return the internalMetricName value
+ */
+ public String internalMetricName() {
+ return this.internalMetricName;
+ }
+
+ /**
+ * Set internal metric name.
+ *
+ * @param internalMetricName the internalMetricName value to set
+ * @return the OperationMetricSpecificationDefinition object itself.
+ */
+ public OperationMetricSpecificationDefinition withInternalMetricName(String internalMetricName) {
+ this.internalMetricName = internalMetricName;
+ return this;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/OperationServiceSpecificationDefinition.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/OperationServiceSpecificationDefinition.java
new file mode 100644
index 000000000000..b7b56a5c89d9
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/OperationServiceSpecificationDefinition.java
@@ -0,0 +1,44 @@
+/**
+ * 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.v2019_04_01;
+
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The definition of Azure Monitoring metrics list.
+ */
+public class OperationServiceSpecificationDefinition {
+ /**
+ * A list of Azure Monitoring metrics definition.
+ */
+ @JsonProperty(value = "metricSpecifications")
+ private List metricSpecifications;
+
+ /**
+ * Get a list of Azure Monitoring metrics definition.
+ *
+ * @return the metricSpecifications value
+ */
+ public List metricSpecifications() {
+ return this.metricSpecifications;
+ }
+
+ /**
+ * Set a list of Azure Monitoring metrics definition.
+ *
+ * @param metricSpecifications the metricSpecifications value to set
+ * @return the OperationServiceSpecificationDefinition object itself.
+ */
+ public OperationServiceSpecificationDefinition withMetricSpecifications(List metricSpecifications) {
+ this.metricSpecifications = metricSpecifications;
+ return this;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/Operations.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/Operations.java
new file mode 100644
index 000000000000..5c01ced9a6e3
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/Operations.java
@@ -0,0 +1,27 @@
+/**
+ * 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.v2019_04_01;
+
+import rx.Observable;
+import com.microsoft.azure.management.containerregistry.v2019_04_01.implementation.OperationsInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing Operations.
+ */
+public interface Operations extends HasInner {
+ /**
+ * Lists all of the available Azure Container Registry REST API operations.
+ *
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listAsync();
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/PasswordName.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/PasswordName.java
new file mode 100644
index 000000000000..510a2ba47d06
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/PasswordName.java
@@ -0,0 +1,53 @@
+/**
+ * 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.v2019_04_01;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+/**
+ * Defines values for PasswordName.
+ */
+public enum PasswordName {
+ /** Enum value password. */
+ PASSWORD("password"),
+
+ /** Enum value password2. */
+ PASSWORD2("password2");
+
+ /** The actual serialized value for a PasswordName instance. */
+ private String value;
+
+ PasswordName(String value) {
+ this.value = value;
+ }
+
+ /**
+ * Parses a serialized value to a PasswordName instance.
+ *
+ * @param value the serialized value to parse.
+ * @return the parsed PasswordName object, or null if unable to parse.
+ */
+ @JsonCreator
+ public static PasswordName fromString(String value) {
+ PasswordName[] items = PasswordName.values();
+ for (PasswordName item : items) {
+ if (item.toString().equalsIgnoreCase(value)) {
+ return item;
+ }
+ }
+ return null;
+ }
+
+ @JsonValue
+ @Override
+ public String toString() {
+ return this.value;
+ }
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/PlatformProperties.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/PlatformProperties.java
new file mode 100644
index 000000000000..4965339c20cc
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/PlatformProperties.java
@@ -0,0 +1,96 @@
+/**
+ * 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.v2019_04_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The platform properties against which the run has to happen.
+ */
+public class PlatformProperties {
+ /**
+ * The operating system type required for the run. Possible values include:
+ * 'Windows', 'Linux'.
+ */
+ @JsonProperty(value = "os", required = true)
+ private OS os;
+
+ /**
+ * The OS architecture. Possible values include: 'amd64', 'x86', 'arm'.
+ */
+ @JsonProperty(value = "architecture")
+ private Architecture architecture;
+
+ /**
+ * Variant of the CPU. Possible values include: 'v6', 'v7', 'v8'.
+ */
+ @JsonProperty(value = "variant")
+ private Variant variant;
+
+ /**
+ * Get the operating system type required for the run. Possible values include: 'Windows', 'Linux'.
+ *
+ * @return the os value
+ */
+ public OS os() {
+ return this.os;
+ }
+
+ /**
+ * Set the operating system type required for the run. Possible values include: 'Windows', 'Linux'.
+ *
+ * @param os the os value to set
+ * @return the PlatformProperties object itself.
+ */
+ public PlatformProperties withOs(OS os) {
+ this.os = os;
+ return this;
+ }
+
+ /**
+ * Get the OS architecture. Possible values include: 'amd64', 'x86', 'arm'.
+ *
+ * @return the architecture value
+ */
+ public Architecture architecture() {
+ return this.architecture;
+ }
+
+ /**
+ * Set the OS architecture. Possible values include: 'amd64', 'x86', 'arm'.
+ *
+ * @param architecture the architecture value to set
+ * @return the PlatformProperties object itself.
+ */
+ public PlatformProperties withArchitecture(Architecture architecture) {
+ this.architecture = architecture;
+ return this;
+ }
+
+ /**
+ * Get variant of the CPU. Possible values include: 'v6', 'v7', 'v8'.
+ *
+ * @return the variant value
+ */
+ public Variant variant() {
+ return this.variant;
+ }
+
+ /**
+ * Set variant of the CPU. Possible values include: 'v6', 'v7', 'v8'.
+ *
+ * @param variant the variant value to set
+ * @return the PlatformProperties object itself.
+ */
+ public PlatformProperties withVariant(Variant variant) {
+ this.variant = variant;
+ return this;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/PlatformUpdateParameters.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/PlatformUpdateParameters.java
new file mode 100644
index 000000000000..6d9bed89b3b6
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/PlatformUpdateParameters.java
@@ -0,0 +1,96 @@
+/**
+ * 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.v2019_04_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The properties for updating the platform configuration.
+ */
+public class PlatformUpdateParameters {
+ /**
+ * The operating system type required for the run. Possible values include:
+ * 'Windows', 'Linux'.
+ */
+ @JsonProperty(value = "os")
+ private OS os;
+
+ /**
+ * The OS architecture. Possible values include: 'amd64', 'x86', 'arm'.
+ */
+ @JsonProperty(value = "architecture")
+ private Architecture architecture;
+
+ /**
+ * Variant of the CPU. Possible values include: 'v6', 'v7', 'v8'.
+ */
+ @JsonProperty(value = "variant")
+ private Variant variant;
+
+ /**
+ * Get the operating system type required for the run. Possible values include: 'Windows', 'Linux'.
+ *
+ * @return the os value
+ */
+ public OS os() {
+ return this.os;
+ }
+
+ /**
+ * Set the operating system type required for the run. Possible values include: 'Windows', 'Linux'.
+ *
+ * @param os the os value to set
+ * @return the PlatformUpdateParameters object itself.
+ */
+ public PlatformUpdateParameters withOs(OS os) {
+ this.os = os;
+ return this;
+ }
+
+ /**
+ * Get the OS architecture. Possible values include: 'amd64', 'x86', 'arm'.
+ *
+ * @return the architecture value
+ */
+ public Architecture architecture() {
+ return this.architecture;
+ }
+
+ /**
+ * Set the OS architecture. Possible values include: 'amd64', 'x86', 'arm'.
+ *
+ * @param architecture the architecture value to set
+ * @return the PlatformUpdateParameters object itself.
+ */
+ public PlatformUpdateParameters withArchitecture(Architecture architecture) {
+ this.architecture = architecture;
+ return this;
+ }
+
+ /**
+ * Get variant of the CPU. Possible values include: 'v6', 'v7', 'v8'.
+ *
+ * @return the variant value
+ */
+ public Variant variant() {
+ return this.variant;
+ }
+
+ /**
+ * Set variant of the CPU. Possible values include: 'v6', 'v7', 'v8'.
+ *
+ * @param variant the variant value to set
+ * @return the PlatformUpdateParameters object itself.
+ */
+ public PlatformUpdateParameters withVariant(Variant variant) {
+ this.variant = variant;
+ return this;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/PolicyStatus.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/PolicyStatus.java
new file mode 100644
index 000000000000..ffd45718f9ec
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/PolicyStatus.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.v2019_04_01;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for PolicyStatus.
+ */
+public final class PolicyStatus extends ExpandableStringEnum {
+ /** Static value enabled for PolicyStatus. */
+ public static final PolicyStatus ENABLED = fromString("enabled");
+
+ /** Static value disabled for PolicyStatus. */
+ public static final PolicyStatus DISABLED = fromString("disabled");
+
+ /**
+ * Creates or finds a PolicyStatus from its string representation.
+ * @param name a name to look for
+ * @return the corresponding PolicyStatus
+ */
+ @JsonCreator
+ public static PolicyStatus fromString(String name) {
+ return fromString(name, PolicyStatus.class);
+ }
+
+ /**
+ * @return known PolicyStatus values
+ */
+ public static Collection values() {
+ return values(PolicyStatus.class);
+ }
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/ProvisioningState.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/ProvisioningState.java
new file mode 100644
index 000000000000..9cae64288d8d
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/ProvisioningState.java
@@ -0,0 +1,53 @@
+/**
+ * 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.v2019_04_01;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for ProvisioningState.
+ */
+public final class ProvisioningState extends ExpandableStringEnum {
+ /** Static value Creating for ProvisioningState. */
+ public static final ProvisioningState CREATING = fromString("Creating");
+
+ /** Static value Updating for ProvisioningState. */
+ public static final ProvisioningState UPDATING = fromString("Updating");
+
+ /** Static value Deleting for ProvisioningState. */
+ public static final ProvisioningState DELETING = fromString("Deleting");
+
+ /** Static value Succeeded for ProvisioningState. */
+ public static final ProvisioningState SUCCEEDED = fromString("Succeeded");
+
+ /** Static value Failed for ProvisioningState. */
+ public static final ProvisioningState FAILED = fromString("Failed");
+
+ /** Static value Canceled for ProvisioningState. */
+ public static final ProvisioningState CANCELED = fromString("Canceled");
+
+ /**
+ * Creates or finds a ProvisioningState from its string representation.
+ * @param name a name to look for
+ * @return the corresponding ProvisioningState
+ */
+ @JsonCreator
+ public static ProvisioningState fromString(String name) {
+ return fromString(name, ProvisioningState.class);
+ }
+
+ /**
+ * @return known ProvisioningState values
+ */
+ public static Collection values() {
+ return values(ProvisioningState.class);
+ }
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/QuarantinePolicy.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/QuarantinePolicy.java
new file mode 100644
index 000000000000..a33fb7aac073
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/QuarantinePolicy.java
@@ -0,0 +1,44 @@
+/**
+ * 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.v2019_04_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * An object that represents quarantine policy for a container registry.
+ */
+public class QuarantinePolicy {
+ /**
+ * The value that indicates whether the policy is enabled or not. Possible
+ * values include: 'enabled', 'disabled'.
+ */
+ @JsonProperty(value = "status")
+ private PolicyStatus status;
+
+ /**
+ * Get the value that indicates whether the policy is enabled or not. Possible values include: 'enabled', 'disabled'.
+ *
+ * @return the status value
+ */
+ public PolicyStatus status() {
+ return this.status;
+ }
+
+ /**
+ * Set the value that indicates whether the policy is enabled or not. Possible values include: 'enabled', 'disabled'.
+ *
+ * @param status the status value to set
+ * @return the QuarantinePolicy object itself.
+ */
+ public QuarantinePolicy withStatus(PolicyStatus status) {
+ this.status = status;
+ return this;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/RegenerateCredentialParameters.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/RegenerateCredentialParameters.java
new file mode 100644
index 000000000000..30d62dcbcd96
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/RegenerateCredentialParameters.java
@@ -0,0 +1,44 @@
+/**
+ * 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.v2019_04_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The parameters used to regenerate the login credential.
+ */
+public class RegenerateCredentialParameters {
+ /**
+ * Specifies name of the password which should be regenerated -- password
+ * or password2. Possible values include: 'password', 'password2'.
+ */
+ @JsonProperty(value = "name", required = true)
+ private PasswordName name;
+
+ /**
+ * Get specifies name of the password which should be regenerated -- password or password2. Possible values include: 'password', 'password2'.
+ *
+ * @return the name value
+ */
+ public PasswordName name() {
+ return this.name;
+ }
+
+ /**
+ * Set specifies name of the password which should be regenerated -- password or password2. Possible values include: 'password', 'password2'.
+ *
+ * @param name the name value to set
+ * @return the RegenerateCredentialParameters object itself.
+ */
+ public RegenerateCredentialParameters withName(PasswordName name) {
+ this.name = name;
+ return this;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/Registries.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/Registries.java
new file mode 100644
index 000000000000..8ca4dc46f66e
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/Registries.java
@@ -0,0 +1,120 @@
+/**
+ * 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.v2019_04_01;
+
+import com.microsoft.azure.arm.collection.SupportsCreating;
+import com.microsoft.azure.arm.resources.collection.SupportsDeletingByResourceGroup;
+import com.microsoft.azure.arm.resources.collection.SupportsBatchDeletion;
+import com.microsoft.azure.arm.resources.collection.SupportsGettingByResourceGroup;
+import rx.Observable;
+import com.microsoft.azure.arm.resources.collection.SupportsListingByResourceGroup;
+import com.microsoft.azure.arm.collection.SupportsListing;
+import rx.Completable;
+import com.microsoft.azure.management.containerregistry.v2019_04_01.implementation.RegistryPoliciesInner;
+import com.microsoft.azure.management.containerregistry.v2019_04_01.implementation.RegistriesInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing Registries.
+ */
+public interface Registries extends SupportsCreating, SupportsDeletingByResourceGroup, SupportsBatchDeletion, SupportsGettingByResourceGroup, SupportsListingByResourceGroup, SupportsListing, HasInner {
+ /**
+ * Copies an image to this container registry from the specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param parameters The parameters specifying the image to copy and the source container registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Completable importImageAsync(String resourceGroupName, String registryName, ImportImageParameters parameters);
+
+ /**
+ * Lists the login credentials for the specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listCredentialsAsync(String resourceGroupName, String registryName);
+
+ /**
+ * Regenerates one of the login credentials for the specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param name Specifies name of the password which should be regenerated -- password or password2. Possible values include: 'password', 'password2'
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable regenerateCredentialAsync(String resourceGroupName, String registryName, PasswordName name);
+
+ /**
+ * Updates the policies for the specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param registryPoliciesUpdateParameters The parameters for updating policies of a container registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable updatePoliciesAsync(String resourceGroupName, String registryName, RegistryPoliciesInner registryPoliciesUpdateParameters);
+
+ /**
+ * Schedules a new run based on the request parameters and add it to the run queue.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runRequest The parameters of a run that needs to scheduled.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable scheduleRunAsync(String resourceGroupName, String registryName, RunRequest runRequest);
+
+ /**
+ * Get the upload location for the user to be able to upload the source.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getBuildSourceUploadUrlAsync(String resourceGroupName, String registryName);
+
+ /**
+ * Checks whether the container registry name is available for use. The name must contain only alphanumeric characters, be globally unique, and between 5 and 50 characters in length.
+ *
+ * @param name The name of the container registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable checkNameAvailabilityAsync(String name);
+
+ /**
+ * Gets the quota usages for the specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listUsagesAsync(String resourceGroupName, String registryName);
+
+ /**
+ * Lists the policies for the specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listPoliciesAsync(String resourceGroupName, String registryName);
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/Registry.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/Registry.java
new file mode 100644
index 000000000000..d51bdee939a3
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/Registry.java
@@ -0,0 +1,205 @@
+/**
+ * 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.v2019_04_01;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.arm.resources.models.Resource;
+import com.microsoft.azure.arm.resources.models.GroupableResourceCore;
+import com.microsoft.azure.arm.resources.models.HasResourceGroup;
+import com.microsoft.azure.arm.model.Refreshable;
+import com.microsoft.azure.arm.model.Updatable;
+import com.microsoft.azure.arm.model.Appliable;
+import com.microsoft.azure.arm.model.Creatable;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.containerregistry.v2019_04_01.implementation.ContainerRegistryManager;
+import org.joda.time.DateTime;
+import com.microsoft.azure.management.containerregistry.v2019_04_01.implementation.RegistryInner;
+
+/**
+ * Type representing Registry.
+ */
+public interface Registry extends HasInner, Resource, GroupableResourceCore, HasResourceGroup, Refreshable, Updatable, HasManager {
+ /**
+ * @return the adminUserEnabled value.
+ */
+ Boolean adminUserEnabled();
+
+ /**
+ * @return the creationDate value.
+ */
+ DateTime creationDate();
+
+ /**
+ * @return the loginServer value.
+ */
+ String loginServer();
+
+ /**
+ * @return the networkRuleSet value.
+ */
+ NetworkRuleSet networkRuleSet();
+
+ /**
+ * @return the provisioningState value.
+ */
+ ProvisioningState provisioningState();
+
+ /**
+ * @return the sku value.
+ */
+ Sku sku();
+
+ /**
+ * @return the status value.
+ */
+ Status status();
+
+ /**
+ * @return the storageAccount value.
+ */
+ StorageAccountProperties storageAccount();
+
+ /**
+ * The entirety of the Registry definition.
+ */
+ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithGroup, DefinitionStages.WithSku, DefinitionStages.WithCreate {
+ }
+
+ /**
+ * Grouping of Registry definition stages.
+ */
+ interface DefinitionStages {
+ /**
+ * The first stage of a Registry definition.
+ */
+ interface Blank extends GroupableResourceCore.DefinitionWithRegion {
+ }
+
+ /**
+ * The stage of the Registry definition allowing to specify the resource group.
+ */
+ interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup {
+ }
+
+ /**
+ * The stage of the registry definition allowing to specify Sku.
+ */
+ interface WithSku {
+ /**
+ * Specifies sku.
+ * @param sku The SKU of the container registry
+ * @return the next definition stage
+*/
+ WithCreate withSku(Sku sku);
+ }
+
+ /**
+ * The stage of the registry definition allowing to specify AdminUserEnabled.
+ */
+ interface WithAdminUserEnabled {
+ /**
+ * Specifies adminUserEnabled.
+ * @param adminUserEnabled The value that indicates whether the admin user is enabled
+ * @return the next definition stage
+ */
+ WithCreate withAdminUserEnabled(Boolean adminUserEnabled);
+ }
+
+ /**
+ * The stage of the registry definition allowing to specify NetworkRuleSet.
+ */
+ interface WithNetworkRuleSet {
+ /**
+ * Specifies networkRuleSet.
+ * @param networkRuleSet The network rule set for a container registry
+ * @return the next definition stage
+ */
+ WithCreate withNetworkRuleSet(NetworkRuleSet networkRuleSet);
+ }
+
+ /**
+ * The stage of the registry definition allowing to specify StorageAccount.
+ */
+ interface WithStorageAccount {
+ /**
+ * Specifies storageAccount.
+ * @param storageAccount The properties of the storage account for the container registry. Only applicable to Classic SKU
+ * @return the next definition stage
+ */
+ WithCreate withStorageAccount(StorageAccountProperties storageAccount);
+ }
+
+ /**
+ * The stage of the definition which contains all the minimum required inputs for
+ * the resource to be created (via {@link WithCreate#create()}), but also allows
+ * for any other optional settings to be specified.
+ */
+ interface WithCreate extends Creatable, Resource.DefinitionWithTags, DefinitionStages.WithAdminUserEnabled, DefinitionStages.WithNetworkRuleSet, DefinitionStages.WithStorageAccount {
+ }
+ }
+ /**
+ * The template for a Registry update operation, containing all the settings that can be modified.
+ */
+ interface Update extends Appliable, Resource.UpdateWithTags, UpdateStages.WithAdminUserEnabled, UpdateStages.WithNetworkRuleSet, UpdateStages.WithSku, UpdateStages.WithStorageAccount {
+ }
+
+ /**
+ * Grouping of Registry update stages.
+ */
+ interface UpdateStages {
+ /**
+ * The stage of the registry update allowing to specify AdminUserEnabled.
+ */
+ interface WithAdminUserEnabled {
+ /**
+ * Specifies adminUserEnabled.
+ * @param adminUserEnabled The value that indicates whether the admin user is enabled
+ * @return the next update stage
+ */
+ Update withAdminUserEnabled(Boolean adminUserEnabled);
+ }
+
+ /**
+ * The stage of the registry update allowing to specify NetworkRuleSet.
+ */
+ interface WithNetworkRuleSet {
+ /**
+ * Specifies networkRuleSet.
+ * @param networkRuleSet The network rule set for a container registry
+ * @return the next update stage
+ */
+ Update withNetworkRuleSet(NetworkRuleSet networkRuleSet);
+ }
+
+ /**
+ * The stage of the registry update allowing to specify Sku.
+ */
+ interface WithSku {
+ /**
+ * Specifies sku.
+ * @param sku The SKU of the container registry
+ * @return the next update stage
+ */
+ Update withSku(Sku sku);
+ }
+
+ /**
+ * The stage of the registry update allowing to specify StorageAccount.
+ */
+ interface WithStorageAccount {
+ /**
+ * Specifies storageAccount.
+ * @param storageAccount The parameters of a storage account for the container registry. Only applicable to Classic SKU. If specified, the storage account must be in the same physical location as the container registry
+ * @return the next update stage
+ */
+ Update withStorageAccount(StorageAccountProperties storageAccount);
+ }
+
+ }
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/RegistryListCredentialsResult.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/RegistryListCredentialsResult.java
new file mode 100644
index 000000000000..fd16a426d0f7
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/RegistryListCredentialsResult.java
@@ -0,0 +1,31 @@
+/**
+ * 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.v2019_04_01;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.containerregistry.v2019_04_01.implementation.ContainerRegistryManager;
+import com.microsoft.azure.management.containerregistry.v2019_04_01.implementation.RegistryListCredentialsResultInner;
+import java.util.List;
+
+/**
+ * Type representing RegistryListCredentialsResult.
+ */
+public interface RegistryListCredentialsResult extends HasInner, HasManager {
+ /**
+ * @return the passwords value.
+ */
+ List passwords();
+
+ /**
+ * @return the username value.
+ */
+ String username();
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/RegistryNameCheckRequest.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/RegistryNameCheckRequest.java
new file mode 100644
index 000000000000..988cf1bfadfa
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/RegistryNameCheckRequest.java
@@ -0,0 +1,78 @@
+/**
+ * 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.v2019_04_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * A request to check whether a container registry name is available.
+ */
+public class RegistryNameCheckRequest {
+ /**
+ * The name of the container registry.
+ */
+ @JsonProperty(value = "name", required = true)
+ private String name;
+
+ /**
+ * The resource type of the container registry. This field must be set to
+ * 'Microsoft.ContainerRegistry/registries'.
+ */
+ @JsonProperty(value = "type", required = true)
+ private String type;
+
+ /**
+ * Creates an instance of RegistryNameCheckRequest class.
+ * @param name the name of the container registry.
+ */
+ public RegistryNameCheckRequest() {
+ type = "Microsoft.ContainerRegistry/registries";
+ }
+
+ /**
+ * Get the name of the container registry.
+ *
+ * @return the name value
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name of the container registry.
+ *
+ * @param name the name value to set
+ * @return the RegistryNameCheckRequest object itself.
+ */
+ public RegistryNameCheckRequest withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the resource type of the container registry. This field must be set to 'Microsoft.ContainerRegistry/registries'.
+ *
+ * @return the type value
+ */
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Set the resource type of the container registry. This field must be set to 'Microsoft.ContainerRegistry/registries'.
+ *
+ * @param type the type value to set
+ * @return the RegistryNameCheckRequest object itself.
+ */
+ public RegistryNameCheckRequest withType(String type) {
+ this.type = type;
+ return this;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/RegistryNameStatus.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/RegistryNameStatus.java
new file mode 100644
index 000000000000..d9a515ddd480
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/RegistryNameStatus.java
@@ -0,0 +1,35 @@
+/**
+ * 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.v2019_04_01;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.containerregistry.v2019_04_01.implementation.ContainerRegistryManager;
+import com.microsoft.azure.management.containerregistry.v2019_04_01.implementation.RegistryNameStatusInner;
+
+/**
+ * Type representing RegistryNameStatus.
+ */
+public interface RegistryNameStatus extends HasInner, HasManager {
+ /**
+ * @return the message value.
+ */
+ String message();
+
+ /**
+ * @return the nameAvailable value.
+ */
+ Boolean nameAvailable();
+
+ /**
+ * @return the reason value.
+ */
+ String reason();
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/RegistryPassword.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/RegistryPassword.java
new file mode 100644
index 000000000000..52266ab441b9
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/RegistryPassword.java
@@ -0,0 +1,69 @@
+/**
+ * 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.v2019_04_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The login password for the container registry.
+ */
+public class RegistryPassword {
+ /**
+ * The password name. Possible values include: 'password', 'password2'.
+ */
+ @JsonProperty(value = "name")
+ private PasswordName name;
+
+ /**
+ * The password value.
+ */
+ @JsonProperty(value = "value")
+ private String value;
+
+ /**
+ * Get the password name. Possible values include: 'password', 'password2'.
+ *
+ * @return the name value
+ */
+ public PasswordName name() {
+ return this.name;
+ }
+
+ /**
+ * Set the password name. Possible values include: 'password', 'password2'.
+ *
+ * @param name the name value to set
+ * @return the RegistryPassword object itself.
+ */
+ public RegistryPassword withName(PasswordName name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the password value.
+ *
+ * @return the value value
+ */
+ public String value() {
+ return this.value;
+ }
+
+ /**
+ * Set the password value.
+ *
+ * @param value the value value to set
+ * @return the RegistryPassword object itself.
+ */
+ public RegistryPassword withValue(String value) {
+ this.value = value;
+ return this;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/RegistryPolicies.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/RegistryPolicies.java
new file mode 100644
index 000000000000..5c9a50e2e5d3
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/RegistryPolicies.java
@@ -0,0 +1,30 @@
+/**
+ * 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.v2019_04_01;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.containerregistry.v2019_04_01.implementation.ContainerRegistryManager;
+import com.microsoft.azure.management.containerregistry.v2019_04_01.implementation.RegistryPoliciesInner;
+
+/**
+ * Type representing RegistryPolicies.
+ */
+public interface RegistryPolicies extends HasInner, HasManager {
+ /**
+ * @return the quarantinePolicy value.
+ */
+ QuarantinePolicy quarantinePolicy();
+
+ /**
+ * @return the trustPolicy value.
+ */
+ TrustPolicy trustPolicy();
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/RegistryUpdateParameters.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/RegistryUpdateParameters.java
new file mode 100644
index 000000000000..a074795e3544
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/RegistryUpdateParameters.java
@@ -0,0 +1,152 @@
+/**
+ * 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.v2019_04_01;
+
+import java.util.Map;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.microsoft.rest.serializer.JsonFlatten;
+
+/**
+ * The parameters for updating a container registry.
+ */
+@JsonFlatten
+public class RegistryUpdateParameters {
+ /**
+ * The tags for the container registry.
+ */
+ @JsonProperty(value = "tags")
+ private Map tags;
+
+ /**
+ * The SKU of the container registry.
+ */
+ @JsonProperty(value = "sku")
+ private Sku sku;
+
+ /**
+ * The value that indicates whether the admin user is enabled.
+ */
+ @JsonProperty(value = "properties.adminUserEnabled")
+ private Boolean adminUserEnabled;
+
+ /**
+ * The parameters of a storage account for the container registry. Only
+ * applicable to Classic SKU. If specified, the storage account must be in
+ * the same physical location as the container registry.
+ */
+ @JsonProperty(value = "properties.storageAccount")
+ private StorageAccountProperties storageAccount;
+
+ /**
+ * The network rule set for a container registry.
+ */
+ @JsonProperty(value = "properties.networkRuleSet")
+ private NetworkRuleSet networkRuleSet;
+
+ /**
+ * Get the tags for the container registry.
+ *
+ * @return the tags value
+ */
+ public Map tags() {
+ return this.tags;
+ }
+
+ /**
+ * Set the tags for the container registry.
+ *
+ * @param tags the tags value to set
+ * @return the RegistryUpdateParameters object itself.
+ */
+ public RegistryUpdateParameters withTags(Map tags) {
+ this.tags = tags;
+ return this;
+ }
+
+ /**
+ * Get the SKU of the container registry.
+ *
+ * @return the sku value
+ */
+ public Sku sku() {
+ return this.sku;
+ }
+
+ /**
+ * Set the SKU of the container registry.
+ *
+ * @param sku the sku value to set
+ * @return the RegistryUpdateParameters object itself.
+ */
+ public RegistryUpdateParameters withSku(Sku sku) {
+ this.sku = sku;
+ return this;
+ }
+
+ /**
+ * Get the value that indicates whether the admin user is enabled.
+ *
+ * @return the adminUserEnabled value
+ */
+ public Boolean adminUserEnabled() {
+ return this.adminUserEnabled;
+ }
+
+ /**
+ * Set the value that indicates whether the admin user is enabled.
+ *
+ * @param adminUserEnabled the adminUserEnabled value to set
+ * @return the RegistryUpdateParameters object itself.
+ */
+ public RegistryUpdateParameters withAdminUserEnabled(Boolean adminUserEnabled) {
+ this.adminUserEnabled = adminUserEnabled;
+ return this;
+ }
+
+ /**
+ * Get the parameters of a storage account for the container registry. Only applicable to Classic SKU. If specified, the storage account must be in the same physical location as the container registry.
+ *
+ * @return the storageAccount value
+ */
+ public StorageAccountProperties storageAccount() {
+ return this.storageAccount;
+ }
+
+ /**
+ * Set the parameters of a storage account for the container registry. Only applicable to Classic SKU. If specified, the storage account must be in the same physical location as the container registry.
+ *
+ * @param storageAccount the storageAccount value to set
+ * @return the RegistryUpdateParameters object itself.
+ */
+ public RegistryUpdateParameters withStorageAccount(StorageAccountProperties storageAccount) {
+ this.storageAccount = storageAccount;
+ return this;
+ }
+
+ /**
+ * Get the network rule set for a container registry.
+ *
+ * @return the networkRuleSet value
+ */
+ public NetworkRuleSet networkRuleSet() {
+ return this.networkRuleSet;
+ }
+
+ /**
+ * Set the network rule set for a container registry.
+ *
+ * @param networkRuleSet the networkRuleSet value to set
+ * @return the RegistryUpdateParameters object itself.
+ */
+ public RegistryUpdateParameters withNetworkRuleSet(NetworkRuleSet networkRuleSet) {
+ this.networkRuleSet = networkRuleSet;
+ return this;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/RegistryUsage.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/RegistryUsage.java
new file mode 100644
index 000000000000..9d5bd90c6df0
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/RegistryUsage.java
@@ -0,0 +1,121 @@
+/**
+ * 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.v2019_04_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The quota usage for a container registry.
+ */
+public class RegistryUsage {
+ /**
+ * The name of the usage.
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /**
+ * The limit of the usage.
+ */
+ @JsonProperty(value = "limit")
+ private Long limit;
+
+ /**
+ * The current value of the usage.
+ */
+ @JsonProperty(value = "currentValue")
+ private Long currentValue;
+
+ /**
+ * The unit of measurement. Possible values include: 'Count', 'Bytes'.
+ */
+ @JsonProperty(value = "unit")
+ private RegistryUsageUnit unit;
+
+ /**
+ * Get the name of the usage.
+ *
+ * @return the name value
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name of the usage.
+ *
+ * @param name the name value to set
+ * @return the RegistryUsage object itself.
+ */
+ public RegistryUsage withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the limit of the usage.
+ *
+ * @return the limit value
+ */
+ public Long limit() {
+ return this.limit;
+ }
+
+ /**
+ * Set the limit of the usage.
+ *
+ * @param limit the limit value to set
+ * @return the RegistryUsage object itself.
+ */
+ public RegistryUsage withLimit(Long limit) {
+ this.limit = limit;
+ return this;
+ }
+
+ /**
+ * Get the current value of the usage.
+ *
+ * @return the currentValue value
+ */
+ public Long currentValue() {
+ return this.currentValue;
+ }
+
+ /**
+ * Set the current value of the usage.
+ *
+ * @param currentValue the currentValue value to set
+ * @return the RegistryUsage object itself.
+ */
+ public RegistryUsage withCurrentValue(Long currentValue) {
+ this.currentValue = currentValue;
+ return this;
+ }
+
+ /**
+ * Get the unit of measurement. Possible values include: 'Count', 'Bytes'.
+ *
+ * @return the unit value
+ */
+ public RegistryUsageUnit unit() {
+ return this.unit;
+ }
+
+ /**
+ * Set the unit of measurement. Possible values include: 'Count', 'Bytes'.
+ *
+ * @param unit the unit value to set
+ * @return the RegistryUsage object itself.
+ */
+ public RegistryUsage withUnit(RegistryUsageUnit unit) {
+ this.unit = unit;
+ return this;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/RegistryUsageListResult.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/RegistryUsageListResult.java
new file mode 100644
index 000000000000..949cd7cb1fe5
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/RegistryUsageListResult.java
@@ -0,0 +1,26 @@
+/**
+ * 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.v2019_04_01;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.containerregistry.v2019_04_01.implementation.ContainerRegistryManager;
+import com.microsoft.azure.management.containerregistry.v2019_04_01.implementation.RegistryUsageListResultInner;
+import java.util.List;
+
+/**
+ * Type representing RegistryUsageListResult.
+ */
+public interface RegistryUsageListResult extends HasInner, HasManager {
+ /**
+ * @return the value value.
+ */
+ List value();
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/RegistryUsageUnit.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/RegistryUsageUnit.java
new file mode 100644
index 000000000000..db9d7d1acd75
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/RegistryUsageUnit.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.v2019_04_01;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for RegistryUsageUnit.
+ */
+public final class RegistryUsageUnit extends ExpandableStringEnum {
+ /** Static value Count for RegistryUsageUnit. */
+ public static final RegistryUsageUnit COUNT = fromString("Count");
+
+ /** Static value Bytes for RegistryUsageUnit. */
+ public static final RegistryUsageUnit BYTES = fromString("Bytes");
+
+ /**
+ * Creates or finds a RegistryUsageUnit from its string representation.
+ * @param name a name to look for
+ * @return the corresponding RegistryUsageUnit
+ */
+ @JsonCreator
+ public static RegistryUsageUnit fromString(String name) {
+ return fromString(name, RegistryUsageUnit.class);
+ }
+
+ /**
+ * @return known RegistryUsageUnit values
+ */
+ public static Collection values() {
+ return values(RegistryUsageUnit.class);
+ }
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/Replication.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/Replication.java
new file mode 100644
index 000000000000..9e17a41851a4
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/Replication.java
@@ -0,0 +1,145 @@
+/**
+ * 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.v2019_04_01;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.containerregistry.v2019_04_01.implementation.ReplicationInner;
+import com.microsoft.azure.arm.model.Indexable;
+import com.microsoft.azure.arm.model.Refreshable;
+import com.microsoft.azure.arm.model.Updatable;
+import com.microsoft.azure.arm.model.Appliable;
+import com.microsoft.azure.arm.model.Creatable;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.containerregistry.v2019_04_01.implementation.ContainerRegistryManager;
+import java.util.Map;
+
+/**
+ * Type representing Replication.
+ */
+public interface Replication extends HasInner, Indexable, Refreshable, Updatable, HasManager {
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the location value.
+ */
+ String location();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the provisioningState value.
+ */
+ ProvisioningState provisioningState();
+
+ /**
+ * @return the status value.
+ */
+ Status status();
+
+ /**
+ * @return the tags value.
+ */
+ Map tags();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+ /**
+ * The entirety of the Replication definition.
+ */
+ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithRegistry, DefinitionStages.WithLocation, DefinitionStages.WithCreate {
+ }
+
+ /**
+ * Grouping of Replication definition stages.
+ */
+ interface DefinitionStages {
+ /**
+ * The first stage of a Replication definition.
+ */
+ interface Blank extends WithRegistry {
+ }
+
+ /**
+ * The stage of the replication definition allowing to specify Registry.
+ */
+ interface WithRegistry {
+ /**
+ * Specifies resourceGroupName, registryName.
+ * @param resourceGroupName The name of the resource group to which the container registry belongs
+ * @param registryName The name of the container registry
+ * @return the next definition stage
+ */
+ WithLocation withExistingRegistry(String resourceGroupName, String registryName);
+ }
+
+ /**
+ * The stage of the replication definition allowing to specify Location.
+ */
+ interface WithLocation {
+ /**
+ * Specifies location.
+ * @param location The location of the resource. This cannot be changed after the resource is created
+ * @return the next definition stage
+ */
+ WithCreate withLocation(String location);
+ }
+
+ /**
+ * The stage of the replication definition allowing to specify Tags.
+ */
+ interface WithTags {
+ /**
+ * Specifies tags.
+ * @param tags The tags of the resource
+ * @return the next definition stage
+ */
+ WithCreate withTags(Map tags);
+ }
+
+ /**
+ * The stage of the definition which contains all the minimum required inputs for
+ * 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.WithTags {
+ }
+ }
+ /**
+ * The template for a Replication update operation, containing all the settings that can be modified.
+ */
+ interface Update extends Appliable, UpdateStages.WithTags {
+ }
+
+ /**
+ * Grouping of Replication update stages.
+ */
+ interface UpdateStages {
+ /**
+ * The stage of the replication update allowing to specify Tags.
+ */
+ interface WithTags {
+ /**
+ * Specifies tags.
+ * @param tags The tags of the resource
+ * @return the next update stage
+ */
+ Update withTags(Map tags);
+ }
+
+ }
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/ReplicationUpdateParameters.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/ReplicationUpdateParameters.java
new file mode 100644
index 000000000000..5436497677f3
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/ReplicationUpdateParameters.java
@@ -0,0 +1,44 @@
+/**
+ * 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.v2019_04_01;
+
+import java.util.Map;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The parameters for updating a replication.
+ */
+public class ReplicationUpdateParameters {
+ /**
+ * The tags for the replication.
+ */
+ @JsonProperty(value = "tags")
+ private Map tags;
+
+ /**
+ * Get the tags for the replication.
+ *
+ * @return the tags value
+ */
+ public Map tags() {
+ return this.tags;
+ }
+
+ /**
+ * Set the tags for the replication.
+ *
+ * @param tags the tags value to set
+ * @return the ReplicationUpdateParameters object itself.
+ */
+ public ReplicationUpdateParameters withTags(Map tags) {
+ this.tags = tags;
+ return this;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/Replications.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/Replications.java
new file mode 100644
index 000000000000..713332b27c37
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/Replications.java
@@ -0,0 +1,53 @@
+/**
+ * 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.v2019_04_01;
+
+import com.microsoft.azure.arm.collection.SupportsCreating;
+import rx.Completable;
+import rx.Observable;
+import com.microsoft.azure.management.containerregistry.v2019_04_01.implementation.ReplicationsInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing Replications.
+ */
+public interface Replications extends SupportsCreating, HasInner {
+ /**
+ * Gets the properties of the specified replication.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param replicationName The name of the replication.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getAsync(String resourceGroupName, String registryName, String replicationName);
+
+ /**
+ * Lists all the replications for the specified container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listAsync(final String resourceGroupName, final String registryName);
+
+ /**
+ * Deletes a replication from a container registry.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param replicationName The name of the replication.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Completable deleteAsync(String resourceGroupName, String registryName, String replicationName);
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/Request.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/Request.java
new file mode 100644
index 000000000000..0003f24cc2a5
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/Request.java
@@ -0,0 +1,150 @@
+/**
+ * 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.v2019_04_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The request that generated the event.
+ */
+public class Request {
+ /**
+ * The ID of the request that initiated the event.
+ */
+ @JsonProperty(value = "id")
+ private String id;
+
+ /**
+ * The IP or hostname and possibly port of the client connection that
+ * initiated the event. This is the RemoteAddr from the standard http
+ * request.
+ */
+ @JsonProperty(value = "addr")
+ private String addr;
+
+ /**
+ * The externally accessible hostname of the registry instance, as
+ * specified by the http host header on incoming requests.
+ */
+ @JsonProperty(value = "host")
+ private String host;
+
+ /**
+ * The request method that generated the event.
+ */
+ @JsonProperty(value = "method")
+ private String method;
+
+ /**
+ * The user agent header of the request.
+ */
+ @JsonProperty(value = "useragent")
+ private String useragent;
+
+ /**
+ * Get the ID of the request that initiated the event.
+ *
+ * @return the id value
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Set the ID of the request that initiated the event.
+ *
+ * @param id the id value to set
+ * @return the Request object itself.
+ */
+ public Request withId(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Get the IP or hostname and possibly port of the client connection that initiated the event. This is the RemoteAddr from the standard http request.
+ *
+ * @return the addr value
+ */
+ public String addr() {
+ return this.addr;
+ }
+
+ /**
+ * Set the IP or hostname and possibly port of the client connection that initiated the event. This is the RemoteAddr from the standard http request.
+ *
+ * @param addr the addr value to set
+ * @return the Request object itself.
+ */
+ public Request withAddr(String addr) {
+ this.addr = addr;
+ return this;
+ }
+
+ /**
+ * Get the externally accessible hostname of the registry instance, as specified by the http host header on incoming requests.
+ *
+ * @return the host value
+ */
+ public String host() {
+ return this.host;
+ }
+
+ /**
+ * Set the externally accessible hostname of the registry instance, as specified by the http host header on incoming requests.
+ *
+ * @param host the host value to set
+ * @return the Request object itself.
+ */
+ public Request withHost(String host) {
+ this.host = host;
+ return this;
+ }
+
+ /**
+ * Get the request method that generated the event.
+ *
+ * @return the method value
+ */
+ public String method() {
+ return this.method;
+ }
+
+ /**
+ * Set the request method that generated the event.
+ *
+ * @param method the method value to set
+ * @return the Request object itself.
+ */
+ public Request withMethod(String method) {
+ this.method = method;
+ return this;
+ }
+
+ /**
+ * Get the user agent header of the request.
+ *
+ * @return the useragent value
+ */
+ public String useragent() {
+ return this.useragent;
+ }
+
+ /**
+ * Set the user agent header of the request.
+ *
+ * @param useragent the useragent value to set
+ * @return the Request object itself.
+ */
+ public Request withUseragent(String useragent) {
+ this.useragent = useragent;
+ return this;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/ResourceIdentityType.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/ResourceIdentityType.java
new file mode 100644
index 000000000000..892645c32dad
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/ResourceIdentityType.java
@@ -0,0 +1,59 @@
+/**
+ * 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.v2019_04_01;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+/**
+ * Defines values for ResourceIdentityType.
+ */
+public enum ResourceIdentityType {
+ /** Enum value SystemAssigned. */
+ SYSTEM_ASSIGNED("SystemAssigned"),
+
+ /** Enum value UserAssigned. */
+ USER_ASSIGNED("UserAssigned"),
+
+ /** Enum value SystemAssigned, UserAssigned. */
+ SYSTEM_ASSIGNED_USER_ASSIGNED("SystemAssigned, UserAssigned"),
+
+ /** Enum value None. */
+ NONE("None");
+
+ /** The actual serialized value for a ResourceIdentityType instance. */
+ private String value;
+
+ ResourceIdentityType(String value) {
+ this.value = value;
+ }
+
+ /**
+ * Parses a serialized value to a ResourceIdentityType instance.
+ *
+ * @param value the serialized value to parse.
+ * @return the parsed ResourceIdentityType object, or null if unable to parse.
+ */
+ @JsonCreator
+ public static ResourceIdentityType fromString(String value) {
+ ResourceIdentityType[] items = ResourceIdentityType.values();
+ for (ResourceIdentityType item : items) {
+ if (item.toString().equalsIgnoreCase(value)) {
+ return item;
+ }
+ }
+ return null;
+ }
+
+ @JsonValue
+ @Override
+ public String toString() {
+ return this.value;
+ }
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/Run.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/Run.java
new file mode 100644
index 000000000000..77bcace55ac9
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/Run.java
@@ -0,0 +1,159 @@
+/**
+ * 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.v2019_04_01;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.containerregistry.v2019_04_01.implementation.RunInner;
+import com.microsoft.azure.arm.model.Indexable;
+import com.microsoft.azure.arm.model.Refreshable;
+import com.microsoft.azure.arm.model.Updatable;
+import com.microsoft.azure.arm.model.Appliable;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.containerregistry.v2019_04_01.implementation.ContainerRegistryManager;
+import org.joda.time.DateTime;
+import java.util.List;
+
+/**
+ * Type representing Run.
+ */
+public interface Run extends HasInner, Indexable, Refreshable, Updatable, HasManager {
+ /**
+ * @return the agentConfiguration value.
+ */
+ AgentProperties agentConfiguration();
+
+ /**
+ * @return the createTime value.
+ */
+ DateTime createTime();
+
+ /**
+ * @return the customRegistries value.
+ */
+ List customRegistries();
+
+ /**
+ * @return the finishTime value.
+ */
+ DateTime finishTime();
+
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the imageUpdateTrigger value.
+ */
+ ImageUpdateTrigger imageUpdateTrigger();
+
+ /**
+ * @return the isArchiveEnabled value.
+ */
+ Boolean isArchiveEnabled();
+
+ /**
+ * @return the lastUpdatedTime value.
+ */
+ DateTime lastUpdatedTime();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the outputImages value.
+ */
+ List outputImages();
+
+ /**
+ * @return the platform value.
+ */
+ PlatformProperties platform();
+
+ /**
+ * @return the provisioningState value.
+ */
+ ProvisioningState provisioningState();
+
+ /**
+ * @return the runErrorMessage value.
+ */
+ String runErrorMessage();
+
+ /**
+ * @return the runId value.
+ */
+ String runId();
+
+ /**
+ * @return the runType value.
+ */
+ RunType runType();
+
+ /**
+ * @return the sourceRegistryAuth value.
+ */
+ String sourceRegistryAuth();
+
+ /**
+ * @return the sourceTrigger value.
+ */
+ SourceTriggerDescriptor sourceTrigger();
+
+ /**
+ * @return the startTime value.
+ */
+ DateTime startTime();
+
+ /**
+ * @return the status value.
+ */
+ RunStatus status();
+
+ /**
+ * @return the task value.
+ */
+ String task();
+
+ /**
+ * @return the timerTrigger value.
+ */
+ TimerTriggerDescriptor timerTrigger();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+ /**
+ * The template for a Run update operation, containing all the settings that can be modified.
+ */
+ interface Update extends Appliable, UpdateStages.WithIsArchiveEnabled {
+ }
+
+ /**
+ * Grouping of Run update stages.
+ */
+ interface UpdateStages {
+ /**
+ * The stage of the run update allowing to specify IsArchiveEnabled.
+ */
+ interface WithIsArchiveEnabled {
+ /**
+ * Specifies isArchiveEnabled.
+ * @param isArchiveEnabled The value that indicates whether archiving is enabled or not
+ * @return the next update stage
+ */
+ Update withIsArchiveEnabled(Boolean isArchiveEnabled);
+ }
+
+ }
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/RunFilter.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/RunFilter.java
new file mode 100644
index 000000000000..a6ab2cdfdd87
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/RunFilter.java
@@ -0,0 +1,233 @@
+/**
+ * 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.v2019_04_01;
+
+import org.joda.time.DateTime;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Properties that are enabled for Odata querying on runs.
+ */
+public class RunFilter {
+ /**
+ * The unique identifier for the run.
+ */
+ @JsonProperty(value = "runId")
+ private String runId;
+
+ /**
+ * The type of run. Possible values include: 'QuickBuild', 'QuickRun',
+ * 'AutoBuild', 'AutoRun'.
+ */
+ @JsonProperty(value = "runType")
+ private RunType runType;
+
+ /**
+ * The current status of the run. Possible values include: 'Queued',
+ * 'Started', 'Running', 'Succeeded', 'Failed', 'Canceled', 'Error',
+ * 'Timeout'.
+ */
+ @JsonProperty(value = "status")
+ private RunStatus status;
+
+ /**
+ * The create time for a run.
+ */
+ @JsonProperty(value = "createTime")
+ private DateTime createTime;
+
+ /**
+ * The time the run finished.
+ */
+ @JsonProperty(value = "finishTime")
+ private DateTime finishTime;
+
+ /**
+ * The list of comma-separated image manifests that were generated from the
+ * run. This is applicable if the run is of
+ * build type.
+ */
+ @JsonProperty(value = "outputImageManifests")
+ private String outputImageManifests;
+
+ /**
+ * The value that indicates whether archiving is enabled or not.
+ */
+ @JsonProperty(value = "isArchiveEnabled")
+ private Boolean isArchiveEnabled;
+
+ /**
+ * The name of the task that the run corresponds to.
+ */
+ @JsonProperty(value = "taskName")
+ private String taskName;
+
+ /**
+ * Get the unique identifier for the run.
+ *
+ * @return the runId value
+ */
+ public String runId() {
+ return this.runId;
+ }
+
+ /**
+ * Set the unique identifier for the run.
+ *
+ * @param runId the runId value to set
+ * @return the RunFilter object itself.
+ */
+ public RunFilter withRunId(String runId) {
+ this.runId = runId;
+ return this;
+ }
+
+ /**
+ * Get the type of run. Possible values include: 'QuickBuild', 'QuickRun', 'AutoBuild', 'AutoRun'.
+ *
+ * @return the runType value
+ */
+ public RunType runType() {
+ return this.runType;
+ }
+
+ /**
+ * Set the type of run. Possible values include: 'QuickBuild', 'QuickRun', 'AutoBuild', 'AutoRun'.
+ *
+ * @param runType the runType value to set
+ * @return the RunFilter object itself.
+ */
+ public RunFilter withRunType(RunType runType) {
+ this.runType = runType;
+ return this;
+ }
+
+ /**
+ * Get the current status of the run. Possible values include: 'Queued', 'Started', 'Running', 'Succeeded', 'Failed', 'Canceled', 'Error', 'Timeout'.
+ *
+ * @return the status value
+ */
+ public RunStatus status() {
+ return this.status;
+ }
+
+ /**
+ * Set the current status of the run. Possible values include: 'Queued', 'Started', 'Running', 'Succeeded', 'Failed', 'Canceled', 'Error', 'Timeout'.
+ *
+ * @param status the status value to set
+ * @return the RunFilter object itself.
+ */
+ public RunFilter withStatus(RunStatus status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Get the create time for a run.
+ *
+ * @return the createTime value
+ */
+ public DateTime createTime() {
+ return this.createTime;
+ }
+
+ /**
+ * Set the create time for a run.
+ *
+ * @param createTime the createTime value to set
+ * @return the RunFilter object itself.
+ */
+ public RunFilter withCreateTime(DateTime createTime) {
+ this.createTime = createTime;
+ return this;
+ }
+
+ /**
+ * Get the time the run finished.
+ *
+ * @return the finishTime value
+ */
+ public DateTime finishTime() {
+ return this.finishTime;
+ }
+
+ /**
+ * Set the time the run finished.
+ *
+ * @param finishTime the finishTime value to set
+ * @return the RunFilter object itself.
+ */
+ public RunFilter withFinishTime(DateTime finishTime) {
+ this.finishTime = finishTime;
+ return this;
+ }
+
+ /**
+ * Get the list of comma-separated image manifests that were generated from the run. This is applicable if the run is of
+ build type.
+ *
+ * @return the outputImageManifests value
+ */
+ public String outputImageManifests() {
+ return this.outputImageManifests;
+ }
+
+ /**
+ * Set the list of comma-separated image manifests that were generated from the run. This is applicable if the run is of
+ build type.
+ *
+ * @param outputImageManifests the outputImageManifests value to set
+ * @return the RunFilter object itself.
+ */
+ public RunFilter withOutputImageManifests(String outputImageManifests) {
+ this.outputImageManifests = outputImageManifests;
+ 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 RunFilter object itself.
+ */
+ public RunFilter withIsArchiveEnabled(Boolean isArchiveEnabled) {
+ this.isArchiveEnabled = isArchiveEnabled;
+ return this;
+ }
+
+ /**
+ * Get the name of the task that the run corresponds to.
+ *
+ * @return the taskName value
+ */
+ public String taskName() {
+ return this.taskName;
+ }
+
+ /**
+ * Set the name of the task that the run corresponds to.
+ *
+ * @param taskName the taskName value to set
+ * @return the RunFilter object itself.
+ */
+ public RunFilter withTaskName(String taskName) {
+ this.taskName = taskName;
+ return this;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/RunGetLogResult.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/RunGetLogResult.java
new file mode 100644
index 000000000000..57e1fb2420bb
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/RunGetLogResult.java
@@ -0,0 +1,25 @@
+/**
+ * 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.v2019_04_01;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.containerregistry.v2019_04_01.implementation.ContainerRegistryManager;
+import com.microsoft.azure.management.containerregistry.v2019_04_01.implementation.RunGetLogResultInner;
+
+/**
+ * Type representing RunGetLogResult.
+ */
+public interface RunGetLogResult extends HasInner, HasManager {
+ /**
+ * @return the logLink value.
+ */
+ String logLink();
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/RunRequest.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/RunRequest.java
new file mode 100644
index 000000000000..45669f961ec7
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/RunRequest.java
@@ -0,0 +1,55 @@
+/**
+ * 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.v2019_04_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;
+
+/**
+ * The request parameters for scheduling a run.
+ */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
+@JsonTypeName("RunRequest")
+@JsonSubTypes({
+ @JsonSubTypes.Type(name = "DockerBuildRequest", value = DockerBuildRequest.class),
+ @JsonSubTypes.Type(name = "FileTaskRunRequest", value = FileTaskRunRequest.class),
+ @JsonSubTypes.Type(name = "TaskRunRequest", value = TaskRunRequest.class),
+ @JsonSubTypes.Type(name = "EncodedTaskRunRequest", value = EncodedTaskRunRequest.class)
+})
+public class RunRequest {
+ /**
+ * The value that indicates whether archiving is enabled for the run or
+ * not.
+ */
+ @JsonProperty(value = "isArchiveEnabled")
+ private Boolean isArchiveEnabled;
+
+ /**
+ * Get the value that indicates whether archiving is enabled for the run or not.
+ *
+ * @return the isArchiveEnabled value
+ */
+ public Boolean isArchiveEnabled() {
+ return this.isArchiveEnabled;
+ }
+
+ /**
+ * Set the value that indicates whether archiving is enabled for the run or not.
+ *
+ * @param isArchiveEnabled the isArchiveEnabled value to set
+ * @return the RunRequest object itself.
+ */
+ public RunRequest withIsArchiveEnabled(Boolean isArchiveEnabled) {
+ this.isArchiveEnabled = isArchiveEnabled;
+ return this;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/RunStatus.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/RunStatus.java
new file mode 100644
index 000000000000..444f2a045726
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/RunStatus.java
@@ -0,0 +1,59 @@
+/**
+ * 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.v2019_04_01;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for RunStatus.
+ */
+public final class RunStatus extends ExpandableStringEnum {
+ /** Static value Queued for RunStatus. */
+ public static final RunStatus QUEUED = fromString("Queued");
+
+ /** Static value Started for RunStatus. */
+ public static final RunStatus STARTED = fromString("Started");
+
+ /** Static value Running for RunStatus. */
+ public static final RunStatus RUNNING = fromString("Running");
+
+ /** Static value Succeeded for RunStatus. */
+ public static final RunStatus SUCCEEDED = fromString("Succeeded");
+
+ /** Static value Failed for RunStatus. */
+ public static final RunStatus FAILED = fromString("Failed");
+
+ /** Static value Canceled for RunStatus. */
+ public static final RunStatus CANCELED = fromString("Canceled");
+
+ /** Static value Error for RunStatus. */
+ public static final RunStatus ERROR = fromString("Error");
+
+ /** Static value Timeout for RunStatus. */
+ public static final RunStatus TIMEOUT = fromString("Timeout");
+
+ /**
+ * Creates or finds a RunStatus from its string representation.
+ * @param name a name to look for
+ * @return the corresponding RunStatus
+ */
+ @JsonCreator
+ public static RunStatus fromString(String name) {
+ return fromString(name, RunStatus.class);
+ }
+
+ /**
+ * @return known RunStatus values
+ */
+ public static Collection values() {
+ return values(RunStatus.class);
+ }
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/RunType.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/RunType.java
new file mode 100644
index 000000000000..7abf5438b83d
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/RunType.java
@@ -0,0 +1,47 @@
+/**
+ * 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.v2019_04_01;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for RunType.
+ */
+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
+ * @return the corresponding RunType
+ */
+ @JsonCreator
+ public static RunType fromString(String name) {
+ return fromString(name, RunType.class);
+ }
+
+ /**
+ * @return known RunType values
+ */
+ public static Collection values() {
+ return values(RunType.class);
+ }
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/RunUpdateParameters.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/RunUpdateParameters.java
new file mode 100644
index 000000000000..79cba007a260
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/RunUpdateParameters.java
@@ -0,0 +1,43 @@
+/**
+ * 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.v2019_04_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The set of run properties that can be updated.
+ */
+public class RunUpdateParameters {
+ /**
+ * The value that indicates whether archiving is enabled or not.
+ */
+ @JsonProperty(value = "isArchiveEnabled")
+ private Boolean isArchiveEnabled;
+
+ /**
+ * 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 RunUpdateParameters object itself.
+ */
+ public RunUpdateParameters withIsArchiveEnabled(Boolean isArchiveEnabled) {
+ this.isArchiveEnabled = isArchiveEnabled;
+ return this;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/Runs.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/Runs.java
new file mode 100644
index 000000000000..2e8ac62f0012
--- /dev/null
+++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/Runs.java
@@ -0,0 +1,63 @@
+/**
+ * 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.v2019_04_01;
+
+import rx.Observable;
+import rx.Completable;
+import com.microsoft.azure.management.containerregistry.v2019_04_01.implementation.RunsInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing Runs.
+ */
+public interface Runs extends HasInner {
+ /**
+ * Gets a link to download the run logs.
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runId The run ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable