Skip to content

Commit b738ffe

Browse files
authored
Azure.Provisioning: Add name requirements for Postgres flexible server (#46396)
1 parent b585933 commit b738ffe

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

sdk/provisioning/Azure.Provisioning.PostgreSql/api/Azure.Provisioning.PostgreSql.netstandard2.0.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ public partial class PostgreSqlFlexibleServer : Azure.Provisioning.Primitives.Re
9191
public Azure.Provisioning.BicepDictionary<string> Tags { get { throw null; } set { } }
9292
public Azure.Provisioning.BicepValue<Azure.Provisioning.PostgreSql.PostgreSqlFlexibleServerVersion> Version { get { throw null; } set { } }
9393
public static Azure.Provisioning.PostgreSql.PostgreSqlFlexibleServer FromExisting(string resourceName, string? resourceVersion = null) { throw null; }
94+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
95+
public override Azure.Provisioning.Primitives.ResourceNameRequirements GetResourceNameRequirements() { throw null; }
9496
public static partial class ResourceVersions
9597
{
9698
public static readonly string V2021_06_01;

sdk/provisioning/Azure.Provisioning.PostgreSql/src/Generated/PostgreSqlFlexibleServer.cs

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/provisioning/Generator/src/Specifications/PostgreSqlSpecification.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,6 @@ protected override void Customize()
2929
AddNameRequirements<PostgreSqlDatabaseResource>(min: 1, max: 63, lower: true, upper: true, digits: true, hyphen: true);
3030
AddNameRequirements<PostgreSqlFirewallRuleResource>(min: 1, max: 128, lower: true, upper: true, digits: true, hyphen: true, underscore: true);
3131
AddNameRequirements<PostgreSqlVirtualNetworkRuleResource>(min: 1, max: 128, lower: true, upper: true, digits: true, hyphen: true);
32+
AddNameRequirements<PostgreSqlFlexibleServerResource>(min: 3, max: 63, lower: true, digits: true, hyphen: true);
3233
}
3334
}

0 commit comments

Comments
 (0)