diff --git a/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/ApplicationOperations.cs b/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/ApplicationOperations.cs
index ccf751792438..fb3344152ab3 100644
--- a/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/ApplicationOperations.cs
+++ b/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/ApplicationOperations.cs
@@ -106,9 +106,9 @@ internal ApplicationOperations(BatchManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-zA-Z0-9]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
+ throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9]+$");
}
}
if (applicationName == null)
@@ -345,9 +345,9 @@ internal ApplicationOperations(BatchManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-zA-Z0-9]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
+ throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9]+$");
}
}
if (applicationName == null)
@@ -562,9 +562,9 @@ internal ApplicationOperations(BatchManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-zA-Z0-9]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
+ throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9]+$");
}
}
if (applicationName == null)
@@ -800,9 +800,9 @@ internal ApplicationOperations(BatchManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-zA-Z0-9]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
+ throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9]+$");
}
}
if (applicationName == null)
@@ -1046,9 +1046,9 @@ internal ApplicationOperations(BatchManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-zA-Z0-9]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
+ throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9]+$");
}
}
if (Client.ApiVersion == null)
diff --git a/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/ApplicationPackageOperations.cs b/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/ApplicationPackageOperations.cs
index d4dfdfa7e2e1..085edd7da4aa 100644
--- a/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/ApplicationPackageOperations.cs
+++ b/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/ApplicationPackageOperations.cs
@@ -111,9 +111,9 @@ internal ApplicationPackageOperations(BatchManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-zA-Z0-9]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
+ throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9]+$");
}
}
if (applicationName == null)
@@ -389,9 +389,9 @@ internal ApplicationPackageOperations(BatchManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-zA-Z0-9]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
+ throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9]+$");
}
}
if (applicationName == null)
@@ -653,9 +653,9 @@ internal ApplicationPackageOperations(BatchManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-zA-Z0-9]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
+ throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9]+$");
}
}
if (applicationName == null)
@@ -894,9 +894,9 @@ internal ApplicationPackageOperations(BatchManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-zA-Z0-9]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
+ throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9]+$");
}
}
if (applicationName == null)
@@ -1153,9 +1153,9 @@ internal ApplicationPackageOperations(BatchManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-zA-Z0-9]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
+ throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9]+$");
}
}
if (applicationName == null)
diff --git a/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/BatchAccountOperations.cs b/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/BatchAccountOperations.cs
index 8ce29d76ab8d..295637f218b7 100644
--- a/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/BatchAccountOperations.cs
+++ b/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/BatchAccountOperations.cs
@@ -135,9 +135,9 @@ internal BatchAccountOperations(BatchManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-zA-Z0-9]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
+ throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9]+$");
}
}
if (parameters == null)
@@ -379,9 +379,9 @@ internal BatchAccountOperations(BatchManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-zA-Z0-9]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
+ throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9]+$");
}
}
if (Client.ApiVersion == null)
@@ -954,9 +954,9 @@ internal BatchAccountOperations(BatchManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-zA-Z0-9]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
+ throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9]+$");
}
}
if (Client.ApiVersion == null)
@@ -1151,9 +1151,9 @@ internal BatchAccountOperations(BatchManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-zA-Z0-9]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
+ throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9]+$");
}
}
if (Client.ApiVersion == null)
@@ -1378,9 +1378,9 @@ internal BatchAccountOperations(BatchManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-zA-Z0-9]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
+ throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9]+$");
}
}
if (Client.ApiVersion == null)
@@ -1835,9 +1835,9 @@ internal BatchAccountOperations(BatchManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-zA-Z0-9]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
+ throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9]+$");
}
}
if (Client.ApiVersion == null)
diff --git a/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/CertificateOperations.cs b/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/CertificateOperations.cs
index fcc00cb2ce8c..6ba37009fe8a 100644
--- a/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/CertificateOperations.cs
+++ b/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/CertificateOperations.cs
@@ -113,9 +113,9 @@ internal CertificateOperations(BatchManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-zA-Z0-9]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
+ throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9]+$");
}
}
if (Client.ApiVersion == null)
@@ -390,9 +390,9 @@ internal CertificateOperations(BatchManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-zA-Z0-9]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
+ throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9]+$");
}
}
if (certificateName == null)
@@ -687,9 +687,9 @@ internal CertificateOperations(BatchManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-zA-Z0-9]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
+ throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9]+$");
}
}
if (certificateName == null)
@@ -946,9 +946,9 @@ internal CertificateOperations(BatchManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-zA-Z0-9]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
+ throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9]+$");
}
}
if (certificateName == null)
@@ -1208,9 +1208,9 @@ internal CertificateOperations(BatchManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-zA-Z0-9]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
+ throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9]+$");
}
}
if (certificateName == null)
@@ -1488,9 +1488,9 @@ internal CertificateOperations(BatchManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-zA-Z0-9]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
+ throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9]+$");
}
}
if (certificateName == null)
diff --git a/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/Models/BatchAccount.cs b/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/Models/BatchAccount.cs
index 097334d92411..5dd517196ed6 100644
--- a/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/Models/BatchAccount.cs
+++ b/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/Models/BatchAccount.cs
@@ -50,6 +50,8 @@ public BatchAccount()
/// associated with the Batch account.
/// The network interface type for
/// accessing Azure Batch service and Batch account operations.
+ /// List of private endpoint
+ /// connections associated with the Batch account
/// The properties and status of any
/// auto-storage account associated with the Batch account.
/// The encryption configuration for the Batch
@@ -69,7 +71,7 @@ public BatchAccount()
/// account.
/// The active job and job
/// schedule quota for the Batch account.
- public BatchAccount(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), string accountEndpoint = default(string), ProvisioningState provisioningState = default(ProvisioningState), PoolAllocationMode? poolAllocationMode = default(PoolAllocationMode?), KeyVaultReference keyVaultReference = default(KeyVaultReference), PublicNetworkAccessType? publicNetworkAccess = default(PublicNetworkAccessType?), AutoStorageProperties autoStorage = default(AutoStorageProperties), EncryptionProperties encryption = default(EncryptionProperties), int? dedicatedCoreQuota = default(int?), int? lowPriorityCoreQuota = default(int?), IList dedicatedCoreQuotaPerVMFamily = default(IList), bool dedicatedCoreQuotaPerVMFamilyEnforced = default(bool), int poolQuota = default(int), int activeJobAndJobScheduleQuota = default(int))
+ public BatchAccount(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), string accountEndpoint = default(string), ProvisioningState provisioningState = default(ProvisioningState), PoolAllocationMode? poolAllocationMode = default(PoolAllocationMode?), KeyVaultReference keyVaultReference = default(KeyVaultReference), PublicNetworkAccessType? publicNetworkAccess = default(PublicNetworkAccessType?), IList privateEndpointConnections = default(IList), AutoStorageProperties autoStorage = default(AutoStorageProperties), EncryptionProperties encryption = default(EncryptionProperties), int? dedicatedCoreQuota = default(int?), int? lowPriorityCoreQuota = default(int?), IList dedicatedCoreQuotaPerVMFamily = default(IList), bool dedicatedCoreQuotaPerVMFamilyEnforced = default(bool), int poolQuota = default(int), int activeJobAndJobScheduleQuota = default(int))
: base(id, name, type, location, tags)
{
AccountEndpoint = accountEndpoint;
@@ -77,6 +79,7 @@ public BatchAccount()
PoolAllocationMode = poolAllocationMode;
KeyVaultReference = keyVaultReference;
PublicNetworkAccess = publicNetworkAccess;
+ PrivateEndpointConnections = privateEndpointConnections;
AutoStorage = autoStorage;
Encryption = encryption;
DedicatedCoreQuota = dedicatedCoreQuota;
@@ -135,6 +138,13 @@ public BatchAccount()
[JsonProperty(PropertyName = "properties.publicNetworkAccess")]
public PublicNetworkAccessType? PublicNetworkAccess { get; private set; }
+ ///
+ /// Gets list of private endpoint connections associated with the Batch
+ /// account
+ ///
+ [JsonProperty(PropertyName = "properties.privateEndpointConnections")]
+ public IList PrivateEndpointConnections { get; private set; }
+
///
/// Gets the properties and status of any auto-storage account
/// associated with the Batch account.
@@ -219,6 +229,16 @@ public virtual void Validate()
{
KeyVaultReference.Validate();
}
+ if (PrivateEndpointConnections != null)
+ {
+ foreach (var element in PrivateEndpointConnections)
+ {
+ if (element != null)
+ {
+ element.Validate();
+ }
+ }
+ }
if (AutoStorage != null)
{
AutoStorage.Validate();
diff --git a/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/Models/BatchAccountCreateParameters.cs b/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/Models/BatchAccountCreateParameters.cs
index 9d98512b412a..2de874ac253e 100644
--- a/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/Models/BatchAccountCreateParameters.cs
+++ b/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/Models/BatchAccountCreateParameters.cs
@@ -112,7 +112,8 @@ public BatchAccountCreateParameters()
/// account.
///
///
- /// Possible values include: 'Enabled', 'Disabled'
+ /// If not specified, the default value is 'enabled'. Possible values
+ /// include: 'Enabled', 'Disabled'
///
[JsonProperty(PropertyName = "properties.publicNetworkAccess")]
public PublicNetworkAccessType? PublicNetworkAccess { get; set; }
diff --git a/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/Models/FixedScaleSettings.cs b/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/Models/FixedScaleSettings.cs
index 007c89c819c1..229fab3c66e7 100644
--- a/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/Models/FixedScaleSettings.cs
+++ b/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/Models/FixedScaleSettings.cs
@@ -71,7 +71,7 @@ public FixedScaleSettings()
/// pool.
///
///
- /// At least one of targetDedicatedNodes, targetLowPriority nodes must
+ /// At least one of targetDedicatedNodes, targetLowPriorityNodes must
/// be set.
///
[JsonProperty(PropertyName = "targetDedicatedNodes")]
@@ -82,7 +82,7 @@ public FixedScaleSettings()
/// the pool.
///
///
- /// At least one of targetDedicatedNodes, targetLowPriority nodes must
+ /// At least one of targetDedicatedNodes, targetLowPriorityNodes must
/// be set.
///
[JsonProperty(PropertyName = "targetLowPriorityNodes")]
diff --git a/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/Models/PrivateEndpointConnection.cs b/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/Models/PrivateEndpointConnection.cs
index 4e07db556d2a..306ade1cd985 100644
--- a/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/Models/PrivateEndpointConnection.cs
+++ b/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/Models/PrivateEndpointConnection.cs
@@ -80,5 +80,18 @@ public PrivateEndpointConnection()
[JsonProperty(PropertyName = "properties.privateLinkServiceConnectionState")]
public PrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get; set; }
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (PrivateLinkServiceConnectionState != null)
+ {
+ PrivateLinkServiceConnectionState.Validate();
+ }
+ }
}
}
diff --git a/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/Models/PrivateLinkResource.cs b/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/Models/PrivateLinkResource.cs
index 4673299088ab..321ef4a5ac15 100644
--- a/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/Models/PrivateLinkResource.cs
+++ b/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/Models/PrivateLinkResource.cs
@@ -43,11 +43,14 @@ public PrivateLinkResource()
/// resource.
/// The list of required members that are
/// used to establish the private link connection.
- public PrivateLinkResource(string id = default(string), string name = default(string), string type = default(string), string etag = default(string), string groupId = default(string), IList requiredMembers = default(IList))
+ /// The list of required zone names for
+ /// the private DNS resource name
+ public PrivateLinkResource(string id = default(string), string name = default(string), string type = default(string), string etag = default(string), string groupId = default(string), IList requiredMembers = default(IList), IList requiredZoneNames = default(IList))
: base(id, name, type, etag)
{
GroupId = groupId;
RequiredMembers = requiredMembers;
+ RequiredZoneNames = requiredZoneNames;
CustomInit();
}
@@ -72,5 +75,12 @@ public PrivateLinkResource()
[JsonProperty(PropertyName = "properties.requiredMembers")]
public IList RequiredMembers { get; private set; }
+ ///
+ /// Gets the list of required zone names for the private DNS resource
+ /// name
+ ///
+ [JsonProperty(PropertyName = "properties.requiredZoneNames")]
+ public IList RequiredZoneNames { get; private set; }
+
}
}
diff --git a/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/Models/PrivateLinkServiceConnectionState.cs b/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/Models/PrivateLinkServiceConnectionState.cs
index 72d879cb26e2..b9f10e001768 100644
--- a/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/Models/PrivateLinkServiceConnectionState.cs
+++ b/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/Models/PrivateLinkServiceConnectionState.cs
@@ -38,7 +38,7 @@ public PrivateLinkServiceConnectionState()
/// state
/// Action required on the private
/// connection state
- public PrivateLinkServiceConnectionState(PrivateLinkServiceConnectionStatus? status = default(PrivateLinkServiceConnectionStatus?), string description = default(string), string actionRequired = default(string))
+ public PrivateLinkServiceConnectionState(PrivateLinkServiceConnectionStatus status, string description = default(string), string actionRequired = default(string))
{
Status = status;
Description = description;
@@ -60,7 +60,7 @@ public PrivateLinkServiceConnectionState()
/// 'Disconnected'
///
[JsonProperty(PropertyName = "status")]
- public PrivateLinkServiceConnectionStatus? Status { get; set; }
+ public PrivateLinkServiceConnectionStatus Status { get; set; }
///
/// Gets or sets description of the private Connection state
@@ -74,5 +74,14 @@ public PrivateLinkServiceConnectionState()
[JsonProperty(PropertyName = "actionRequired")]
public string ActionRequired { get; private set; }
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ }
}
}
diff --git a/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/PoolOperations.cs b/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/PoolOperations.cs
index c35d33cf8084..ce5e61ad249c 100644
--- a/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/PoolOperations.cs
+++ b/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/PoolOperations.cs
@@ -123,9 +123,9 @@ internal PoolOperations(BatchManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-zA-Z0-9]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
+ throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9]+$");
}
}
if (Client.ApiVersion == null)
@@ -397,9 +397,9 @@ internal PoolOperations(BatchManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-zA-Z0-9]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
+ throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9]+$");
}
}
if (poolName == null)
@@ -690,9 +690,9 @@ internal PoolOperations(BatchManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-zA-Z0-9]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
+ throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9]+$");
}
}
if (poolName == null)
@@ -938,9 +938,9 @@ internal PoolOperations(BatchManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-zA-Z0-9]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
+ throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9]+$");
}
}
if (poolName == null)
@@ -1196,9 +1196,9 @@ internal PoolOperations(BatchManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-zA-Z0-9]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
+ throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9]+$");
}
}
if (poolName == null)
@@ -1456,9 +1456,9 @@ internal PoolOperations(BatchManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-zA-Z0-9]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
+ throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9]+$");
}
}
if (poolName == null)
@@ -1734,9 +1734,9 @@ internal PoolOperations(BatchManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-zA-Z0-9]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
+ throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9]+$");
}
}
if (poolName == null)
diff --git a/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/PrivateEndpointConnectionOperations.cs b/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/PrivateEndpointConnectionOperations.cs
index 51bb0c0dbfcb..a4b5f6fd14a7 100644
--- a/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/PrivateEndpointConnectionOperations.cs
+++ b/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/PrivateEndpointConnectionOperations.cs
@@ -107,9 +107,9 @@ internal PrivateEndpointConnectionOperations(BatchManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-zA-Z0-9]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
+ throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9]+$");
}
}
if (Client.ApiVersion == null)
@@ -327,9 +327,9 @@ internal PrivateEndpointConnectionOperations(BatchManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-zA-Z0-9]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
+ throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9]+$");
}
}
if (privateEndpointConnectionName == null)
@@ -572,9 +572,9 @@ internal PrivateEndpointConnectionOperations(BatchManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-zA-Z0-9]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
+ throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9]+$");
}
}
if (privateEndpointConnectionName == null)
diff --git a/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/PrivateLinkResourceOperations.cs b/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/PrivateLinkResourceOperations.cs
index f4159d75437a..fa5836b5448b 100644
--- a/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/PrivateLinkResourceOperations.cs
+++ b/sdk/batch/Microsoft.Azure.Management.Batch/src/Generated/PrivateLinkResourceOperations.cs
@@ -107,9 +107,9 @@ internal PrivateLinkResourceOperations(BatchManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-zA-Z0-9]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
+ throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9]+$");
}
}
if (Client.ApiVersion == null)
@@ -326,9 +326,9 @@ internal PrivateLinkResourceOperations(BatchManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-zA-Z0-9]+$"))
{
- throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
+ throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9]+$");
}
}
if (privateLinkResourceName == null)