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.azure
azure-arm-parent
- 1.0.0
+ 0.0.3-beta
../../../pom.xml
azure-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.azure
azure-arm-parent
- 1.0.0
+ 0.0.3-beta
../../../pom.xml
azure-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.azure
azure-arm-parent
- 1.0.0
+ 0.0.3-beta
../../../pom.xml
azure-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.azure
azure-arm-parent
- 1.0.0
+ 0.0.3-beta
../../../pom.xml
azure-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.azure
azure-arm-parent
- 1.0.0
+ 0.0.3-beta
../../../pom.xml
azure-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.azure
azure-arm-parent
- 1.0.0
+ 0.0.3-beta
../../../pom.xml
azure-mgmt-containerregistry
- 1.0.0-beta-1
+ 1.0.0-beta
jar
Microsoft Azure SDK for ContainerRegistry Management
This 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..f06586d0e3aa 100644
--- a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/Run.java
+++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/Run.java
@@ -33,6 +33,11 @@ public interface Run extends HasInner, Indexable, Refreshable, Up
*/
DateTime createTime();
+ /**
+ * @return the customRegistries value.
+ */
+ List customRegistries();
+
/**
* @return the finishTime value.
*/
@@ -88,6 +93,11 @@ public interface Run extends HasInner, Indexable, Refreshable, Up
*/
RunType runType();
+ /**
+ * @return the sourceRegistryAuth value.
+ */
+ String sourceRegistryAuth();
+
/**
* @return the sourceTrigger value.
*/
diff --git a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/SecretObject.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/SecretObject.java
new file mode 100644
index 000000000000..8f5ee8620f57
--- /dev/null
+++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/SecretObject.java
@@ -0,0 +1,80 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.containerregistry.v2018_09_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Describes the properties of a secret object value.
+ */
+public class SecretObject {
+ /**
+ * The value of the secret. The format of this value will be determined
+ * based on the type of the secret object. If the type is Opaque, the value
+ * will be
+ * used as is without any modification.
+ */
+ @JsonProperty(value = "value")
+ private String value;
+
+ /**
+ * The type of the secret object which determines how the value of the
+ * secret object has to be
+ * interpreted. Possible values include: 'Opaque'.
+ */
+ @JsonProperty(value = "type")
+ private SecretObjectType type;
+
+ /**
+ * Get the value of the secret. The format of this value will be determined
+ based on the type of the secret object. If the type is Opaque, the value will be
+ used as is without any modification.
+ *
+ * @return the value value
+ */
+ public String value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value of the secret. The format of this value will be determined
+ based on the type of the secret object. If the type is Opaque, the value will be
+ used as is without any modification.
+ *
+ * @param value the value value to set
+ * @return the SecretObject object itself.
+ */
+ public SecretObject withValue(String value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Get the type of the secret object which determines how the value of the secret object has to be
+ interpreted. Possible values include: 'Opaque'.
+ *
+ * @return the type value
+ */
+ public SecretObjectType type() {
+ return this.type;
+ }
+
+ /**
+ * Set the type of the secret object which determines how the value of the secret object has to be
+ interpreted. Possible values include: 'Opaque'.
+ *
+ * @param type the type value to set
+ * @return the SecretObject object itself.
+ */
+ public SecretObject withType(SecretObjectType type) {
+ this.type = type;
+ return this;
+ }
+
+}
diff --git a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/SecretObjectType.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/SecretObjectType.java
new file mode 100644
index 000000000000..6b9244e8ecc2
--- /dev/null
+++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/SecretObjectType.java
@@ -0,0 +1,38 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.containerregistry.v2018_09_01;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for SecretObjectType.
+ */
+public final class SecretObjectType extends ExpandableStringEnum {
+ /** Static value Opaque for SecretObjectType. */
+ public static final SecretObjectType OPAQUE = fromString("Opaque");
+
+ /**
+ * Creates or finds a SecretObjectType from its string representation.
+ * @param name a name to look for
+ * @return the corresponding SecretObjectType
+ */
+ @JsonCreator
+ public static SecretObjectType fromString(String name) {
+ return fromString(name, SecretObjectType.class);
+ }
+
+ /**
+ * @return known SecretObjectType values
+ */
+ public static Collection values() {
+ return values(SecretObjectType.class);
+ }
+}
diff --git a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/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..75d8200da58a 100644
--- a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/implementation/RunImpl.java
+++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/implementation/RunImpl.java
@@ -13,8 +13,8 @@
import rx.Observable;
import com.microsoft.azure.management.containerregistry.v2018_09_01.AgentProperties;
import org.joda.time.DateTime;
-import com.microsoft.azure.management.containerregistry.v2018_09_01.ImageUpdateTrigger;
import java.util.List;
+import com.microsoft.azure.management.containerregistry.v2018_09_01.ImageUpdateTrigger;
import com.microsoft.azure.management.containerregistry.v2018_09_01.ImageDescriptor;
import com.microsoft.azure.management.containerregistry.v2018_09_01.PlatformProperties;
import com.microsoft.azure.management.containerregistry.v2018_09_01.ProvisioningState;
@@ -89,6 +89,11 @@ public DateTime createTime() {
return this.inner().createTime();
}
+ @Override
+ public List customRegistries() {
+ return this.inner().customRegistries();
+ }
+
@Override
public DateTime finishTime() {
return this.inner().finishTime();
@@ -144,6 +149,11 @@ public RunType runType() {
return this.inner().runType();
}
+ @Override
+ public String sourceRegistryAuth() {
+ return this.inner().sourceRegistryAuth();
+ }
+
@Override
public SourceTriggerDescriptor sourceTrigger() {
return this.inner().sourceTrigger();
diff --git a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/implementation/RunInner.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/implementation/RunInner.java
index e892261af122..991e6bb5b593 100644
--- a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/implementation/RunInner.java
+++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/implementation/RunInner.java
@@ -98,12 +98,6 @@ public class RunInner extends ProxyResource {
@JsonProperty(value = "properties.sourceTrigger")
private SourceTriggerDescriptor sourceTrigger;
- /**
- * The value that indicates whether archiving is enabled or not.
- */
- @JsonProperty(value = "properties.isArchiveEnabled")
- private Boolean isArchiveEnabled;
-
/**
* The platform properties against which the run will happen.
*/
@@ -116,6 +110,19 @@ public class RunInner extends ProxyResource {
@JsonProperty(value = "properties.agentConfiguration")
private AgentProperties agentConfiguration;
+ /**
+ * The scope of the credentials that were used to login to the source
+ * registry during this run.
+ */
+ @JsonProperty(value = "properties.sourceRegistryAuth")
+ private String sourceRegistryAuth;
+
+ /**
+ * The list of custom registries that were logged in during this run.
+ */
+ @JsonProperty(value = "properties.customRegistries")
+ private List customRegistries;
+
/**
* The provisioning state of a run. Possible values include: 'Creating',
* 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled'.
@@ -123,6 +130,12 @@ public class RunInner extends ProxyResource {
@JsonProperty(value = "properties.provisioningState")
private ProvisioningState provisioningState;
+ /**
+ * The value that indicates whether archiving is enabled or not.
+ */
+ @JsonProperty(value = "properties.isArchiveEnabled")
+ private Boolean isArchiveEnabled;
+
/**
* Get the unique identifier for the run.
*
@@ -343,26 +356,6 @@ public RunInner withSourceTrigger(SourceTriggerDescriptor sourceTrigger) {
return this;
}
- /**
- * Get the value that indicates whether archiving is enabled or not.
- *
- * @return the isArchiveEnabled value
- */
- public Boolean isArchiveEnabled() {
- return this.isArchiveEnabled;
- }
-
- /**
- * Set the value that indicates whether archiving is enabled or not.
- *
- * @param isArchiveEnabled the isArchiveEnabled value to set
- * @return the RunInner object itself.
- */
- public RunInner withIsArchiveEnabled(Boolean isArchiveEnabled) {
- this.isArchiveEnabled = isArchiveEnabled;
- return this;
- }
-
/**
* Get the platform properties against which the run will happen.
*
@@ -403,6 +396,46 @@ public RunInner withAgentConfiguration(AgentProperties agentConfiguration) {
return this;
}
+ /**
+ * Get the scope of the credentials that were used to login to the source registry during this run.
+ *
+ * @return the sourceRegistryAuth value
+ */
+ public String sourceRegistryAuth() {
+ return this.sourceRegistryAuth;
+ }
+
+ /**
+ * Set the scope of the credentials that were used to login to the source registry during this run.
+ *
+ * @param sourceRegistryAuth the sourceRegistryAuth value to set
+ * @return the RunInner object itself.
+ */
+ public RunInner withSourceRegistryAuth(String sourceRegistryAuth) {
+ this.sourceRegistryAuth = sourceRegistryAuth;
+ return this;
+ }
+
+ /**
+ * Get the list of custom registries that were logged in during this run.
+ *
+ * @return the customRegistries value
+ */
+ public List customRegistries() {
+ return this.customRegistries;
+ }
+
+ /**
+ * Set the list of custom registries that were logged in during this run.
+ *
+ * @param customRegistries the customRegistries value to set
+ * @return the RunInner object itself.
+ */
+ public RunInner withCustomRegistries(List customRegistries) {
+ this.customRegistries = customRegistries;
+ return this;
+ }
+
/**
* Get the provisioning state of a run. Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled'.
*
@@ -423,4 +456,24 @@ public RunInner withProvisioningState(ProvisioningState provisioningState) {
return this;
}
+ /**
+ * Get the value that indicates whether archiving is enabled or not.
+ *
+ * @return the isArchiveEnabled value
+ */
+ public Boolean isArchiveEnabled() {
+ return this.isArchiveEnabled;
+ }
+
+ /**
+ * Set the value that indicates whether archiving is enabled or not.
+ *
+ * @param isArchiveEnabled the isArchiveEnabled value to set
+ * @return the RunInner object itself.
+ */
+ public RunInner withIsArchiveEnabled(Boolean isArchiveEnabled) {
+ this.isArchiveEnabled = isArchiveEnabled;
+ return this;
+ }
+
}
diff --git a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/implementation/TaskImpl.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/implementation/TaskImpl.java
index 8be39a27a7ad..68b33e8f0f91 100644
--- a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/implementation/TaskImpl.java
+++ b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/implementation/TaskImpl.java
@@ -20,6 +20,7 @@
import com.microsoft.azure.management.containerregistry.v2018_09_01.AgentProperties;
import com.microsoft.azure.management.containerregistry.v2018_09_01.TaskStepProperties;
import com.microsoft.azure.management.containerregistry.v2018_09_01.TriggerProperties;
+import com.microsoft.azure.management.containerregistry.v2018_09_01.Credentials;
import com.microsoft.azure.management.containerregistry.v2018_09_01.PlatformUpdateParameters;
import com.microsoft.azure.management.containerregistry.v2018_09_01.TaskStepUpdateParameters;
import com.microsoft.azure.management.containerregistry.v2018_09_01.TriggerUpdateParameters;
@@ -112,6 +113,11 @@ public DateTime creationDate() {
return this.inner().creationDate();
}
+ @Override
+ public Credentials credentials() {
+ return this.inner().credentials();
+ }
+
@Override
public String id() {
return this.inner().id();
@@ -226,6 +232,16 @@ public TaskImpl withAgentConfiguration(AgentProperties agentConfiguration) {
return this;
}
+ @Override
+ public TaskImpl withCredentials(Credentials credentials) {
+ if (isInCreateMode()) {
+ this.inner().withCredentials(credentials);
+ } else {
+ this.updateParameter.withCredentials(credentials);
+ }
+ return this;
+ }
+
@Override
public TaskImpl withStatus(TaskStatus status) {
if (isInCreateMode()) {
diff --git a/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/implementation/TaskInner.java b/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/implementation/TaskInner.java
index 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;
+ }
+
}