diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/api/Azure.ResourceManager.PostgreSql.netstandard2.0.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/api/Azure.ResourceManager.PostgreSql.netstandard2.0.cs index 7c02cf257eda9..cf1e1f9e96ef0 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/api/Azure.ResourceManager.PostgreSql.netstandard2.0.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/api/Azure.ResourceManager.PostgreSql.netstandard2.0.cs @@ -971,7 +971,6 @@ internal PostgreSqlFlexibleServerHyperscaleNodeEditionCapability() { } private readonly int _dummyPrimitive; public PostgreSqlFlexibleServerIdentityType(string value) { throw null; } public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerIdentityType None { get { throw null; } } - public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerIdentityType SystemAssigned { get { throw null; } } public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerIdentityType UserAssigned { get { throw null; } } public bool Equals(Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerIdentityType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] @@ -990,7 +989,7 @@ internal PostgreSqlFlexibleServerHyperscaleNodeEditionCapability() { } private readonly int _dummyPrimitive; public PostgreSqlFlexibleServerKeyType(string value) { throw null; } public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerKeyType AzureKeyVault { get { throw null; } } - public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerKeyType SystemAssigned { get { throw null; } } + public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerKeyType SystemManaged { get { throw null; } } public bool Equals(Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerKeyType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } @@ -1090,6 +1089,7 @@ public PostgreSqlFlexibleServerPatch() { } public Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerUserAssignedIdentity Identity { get { throw null; } set { } } public Azure.Core.AzureLocation? Location { get { throw null; } set { } } public Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerMaintenanceWindow MaintenanceWindow { get { throw null; } set { } } + public Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerNetwork Network { get { throw null; } set { } } public Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerReplicationRole? ReplicationRole { get { throw null; } set { } } public Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerSku Sku { get { throw null; } set { } } public int? StorageSizeInGB { get { throw null; } set { } } @@ -1142,12 +1142,8 @@ public PostgreSqlFlexibleServerPatch() { } public PostgreSqlFlexibleServerReplicationRole(string value) { throw null; } public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerReplicationRole AsyncReplica { get { throw null; } } public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerReplicationRole GeoAsyncReplica { get { throw null; } } - public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerReplicationRole GeoSyncReplica { get { throw null; } } public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerReplicationRole None { get { throw null; } } public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerReplicationRole Primary { get { throw null; } } - public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerReplicationRole Secondary { get { throw null; } } - public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerReplicationRole SyncReplica { get { throw null; } } - public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerReplicationRole WalReplica { get { throw null; } } public bool Equals(Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerReplicationRole other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerDataEncryption.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerDataEncryption.cs index 365884adabb4e..111c992ac848d 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerDataEncryption.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerDataEncryption.cs @@ -21,7 +21,7 @@ public PostgreSqlFlexibleServerDataEncryption() /// Initializes a new instance of PostgreSqlFlexibleServerDataEncryption. /// URI for the key for data encryption for primary server. /// Resource Id for the User assigned identity to be used for data encryption for primary server. - /// Data encryption type to depict if it is System assigned vs Azure Key vault. + /// Data encryption type to depict if it is System Managed vs Azure Key vault. internal PostgreSqlFlexibleServerDataEncryption(Uri primaryKeyUri, ResourceIdentifier primaryUserAssignedIdentityId, PostgreSqlFlexibleServerKeyType? keyType) { PrimaryKeyUri = primaryKeyUri; @@ -33,7 +33,7 @@ internal PostgreSqlFlexibleServerDataEncryption(Uri primaryKeyUri, ResourceIdent public Uri PrimaryKeyUri { get; set; } /// Resource Id for the User assigned identity to be used for data encryption for primary server. public ResourceIdentifier PrimaryUserAssignedIdentityId { get; set; } - /// Data encryption type to depict if it is System assigned vs Azure Key vault. + /// Data encryption type to depict if it is System Managed vs Azure Key vault. public PostgreSqlFlexibleServerKeyType? KeyType { get; set; } } } diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerIdentityType.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerIdentityType.cs index fdc200e8082c5..d740d3e7039c5 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerIdentityType.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerIdentityType.cs @@ -23,13 +23,10 @@ public PostgreSqlFlexibleServerIdentityType(string value) } private const string NoneValue = "None"; - private const string SystemAssignedValue = "SystemAssigned"; private const string UserAssignedValue = "UserAssigned"; /// None. public static PostgreSqlFlexibleServerIdentityType None { get; } = new PostgreSqlFlexibleServerIdentityType(NoneValue); - /// SystemAssigned. - public static PostgreSqlFlexibleServerIdentityType SystemAssigned { get; } = new PostgreSqlFlexibleServerIdentityType(SystemAssignedValue); /// UserAssigned. public static PostgreSqlFlexibleServerIdentityType UserAssigned { get; } = new PostgreSqlFlexibleServerIdentityType(UserAssignedValue); /// Determines if two values are the same. diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerKeyType.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerKeyType.cs index 4c2c933963e9d..51613de146b09 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerKeyType.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerKeyType.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models { - /// Data encryption type to depict if it is System assigned vs Azure Key vault. + /// Data encryption type to depict if it is System Managed vs Azure Key vault. public readonly partial struct PostgreSqlFlexibleServerKeyType : IEquatable { private readonly string _value; @@ -22,11 +22,11 @@ public PostgreSqlFlexibleServerKeyType(string value) _value = value ?? throw new ArgumentNullException(nameof(value)); } - private const string SystemAssignedValue = "SystemAssigned"; + private const string SystemManagedValue = "SystemManaged"; private const string AzureKeyVaultValue = "AzureKeyVault"; - /// SystemAssigned. - public static PostgreSqlFlexibleServerKeyType SystemAssigned { get; } = new PostgreSqlFlexibleServerKeyType(SystemAssignedValue); + /// SystemManaged. + public static PostgreSqlFlexibleServerKeyType SystemManaged { get; } = new PostgreSqlFlexibleServerKeyType(SystemManagedValue); /// AzureKeyVault. public static PostgreSqlFlexibleServerKeyType AzureKeyVault { get; } = new PostgreSqlFlexibleServerKeyType(AzureKeyVaultValue); /// Determines if two values are the same. diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerNetwork.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerNetwork.cs index 8a455ebd58f17..ec926b8582e37 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerNetwork.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerNetwork.cs @@ -19,8 +19,8 @@ public PostgreSqlFlexibleServerNetwork() /// Initializes a new instance of PostgreSqlFlexibleServerNetwork. /// public network access is enabled or not. - /// delegated subnet arm resource id. - /// private dns zone arm resource id. + /// Delegated subnet arm resource id. This is required to be passed during create, in case we want the server to be VNET injected, i.e. Private access server. During update, pass this only if we want to update the value for Private DNS zone. + /// Private dns zone arm resource id. This is required to be passed during create, in case we want the server to be VNET injected, i.e. Private access server. During update, pass this only if we want to update the value for Private DNS zone. internal PostgreSqlFlexibleServerNetwork(PostgreSqlFlexibleServerPublicNetworkAccessState? publicNetworkAccess, ResourceIdentifier delegatedSubnetResourceId, ResourceIdentifier privateDnsZoneArmResourceId) { PublicNetworkAccess = publicNetworkAccess; @@ -30,9 +30,9 @@ internal PostgreSqlFlexibleServerNetwork(PostgreSqlFlexibleServerPublicNetworkAc /// public network access is enabled or not. public PostgreSqlFlexibleServerPublicNetworkAccessState? PublicNetworkAccess { get; } - /// delegated subnet arm resource id. + /// Delegated subnet arm resource id. This is required to be passed during create, in case we want the server to be VNET injected, i.e. Private access server. During update, pass this only if we want to update the value for Private DNS zone. public ResourceIdentifier DelegatedSubnetResourceId { get; set; } - /// private dns zone arm resource id. + /// Private dns zone arm resource id. This is required to be passed during create, in case we want the server to be VNET injected, i.e. Private access server. During update, pass this only if we want to update the value for Private DNS zone. public ResourceIdentifier PrivateDnsZoneArmResourceId { get; set; } } } diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerPatch.Serialization.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerPatch.Serialization.cs index 6eb3d92cb9b97..9469bf4d15360 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerPatch.Serialization.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerPatch.Serialization.cs @@ -93,6 +93,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("replicationRole"u8); writer.WriteStringValue(ReplicationRole.Value.ToString()); } + if (Optional.IsDefined(Network)) + { + writer.WritePropertyName("network"u8); + writer.WriteObjectValue(Network); + } writer.WriteEndObject(); writer.WriteEndObject(); } diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerPatch.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerPatch.cs index fbbb5681fd837..5e359e8c34a82 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerPatch.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerPatch.cs @@ -59,5 +59,7 @@ public int? StorageSizeInGB public PostgreSqlFlexibleServerCreateModeForUpdate? CreateMode { get; set; } /// Replication role of the server. public PostgreSqlFlexibleServerReplicationRole? ReplicationRole { get; set; } + /// Network properties of a server. These are required to be passed only in case if server is a private access server. + public PostgreSqlFlexibleServerNetwork Network { get; set; } } } diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerReplicationRole.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerReplicationRole.cs index 2bcb72478ded2..119ec06dd4e26 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerReplicationRole.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerReplicationRole.cs @@ -24,27 +24,15 @@ public PostgreSqlFlexibleServerReplicationRole(string value) private const string NoneValue = "None"; private const string PrimaryValue = "Primary"; - private const string SecondaryValue = "Secondary"; - private const string WalReplicaValue = "WalReplica"; - private const string SyncReplicaValue = "SyncReplica"; private const string AsyncReplicaValue = "AsyncReplica"; - private const string GeoSyncReplicaValue = "GeoSyncReplica"; private const string GeoAsyncReplicaValue = "GeoAsyncReplica"; /// None. public static PostgreSqlFlexibleServerReplicationRole None { get; } = new PostgreSqlFlexibleServerReplicationRole(NoneValue); /// Primary. public static PostgreSqlFlexibleServerReplicationRole Primary { get; } = new PostgreSqlFlexibleServerReplicationRole(PrimaryValue); - /// Secondary. - public static PostgreSqlFlexibleServerReplicationRole Secondary { get; } = new PostgreSqlFlexibleServerReplicationRole(SecondaryValue); - /// WalReplica. - public static PostgreSqlFlexibleServerReplicationRole WalReplica { get; } = new PostgreSqlFlexibleServerReplicationRole(WalReplicaValue); - /// SyncReplica. - public static PostgreSqlFlexibleServerReplicationRole SyncReplica { get; } = new PostgreSqlFlexibleServerReplicationRole(SyncReplicaValue); /// AsyncReplica. public static PostgreSqlFlexibleServerReplicationRole AsyncReplica { get; } = new PostgreSqlFlexibleServerReplicationRole(AsyncReplicaValue); - /// GeoSyncReplica. - public static PostgreSqlFlexibleServerReplicationRole GeoSyncReplica { get; } = new PostgreSqlFlexibleServerReplicationRole(GeoSyncReplicaValue); /// GeoAsyncReplica. public static PostgreSqlFlexibleServerReplicationRole GeoAsyncReplica { get; } = new PostgreSqlFlexibleServerReplicationRole(GeoAsyncReplicaValue); /// Determines if two values are the same. diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlFlexibleServerData.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlFlexibleServerData.cs index 03cbfd39c8e11..a157b827dc427 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlFlexibleServerData.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlFlexibleServerData.cs @@ -44,7 +44,7 @@ public PostgreSqlFlexibleServerData(AzureLocation location) : base(location) /// AuthConfig properties of a server. /// Data encryption properties of a server. /// Backup properties of a server. - /// Network properties of a server. + /// Network properties of a server. This Network property is required to be passed only in case you want the server to be Private access server. /// High availability properties of a server. /// Maintenance window properties of a server. /// The source server resource ID to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore' or 'Replica'. @@ -114,7 +114,7 @@ public int? StorageSizeInGB public PostgreSqlFlexibleServerDataEncryption DataEncryption { get; set; } /// Backup properties of a server. public PostgreSqlFlexibleServerBackupProperties Backup { get; set; } - /// Network properties of a server. + /// Network properties of a server. This Network property is required to be passed only in case you want the server to be Private access server. public PostgreSqlFlexibleServerNetwork Network { get; set; } /// High availability properties of a server. public PostgreSqlFlexibleServerHighAvailability HighAvailability { get; set; } diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/autorest.md b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/autorest.md index d97f998ed5891..cf2ddea56f2ce 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/autorest.md +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/autorest.md @@ -21,7 +21,7 @@ batch: ``` yaml $(tag) == 'package-2020-01-01' namespace: Azure.ResourceManager.PostgreSql -require: https://github.com/Azure/azure-rest-api-specs/blob/eca38ee0caf445cb1e79c8e7bbaf9e1dca36479a/specification/postgresql/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/postgresql/resource-manager/readme.md output-folder: $(this-folder)/PostgreSql/Generated format-by-name-rules: @@ -146,7 +146,7 @@ directive: ``` yaml $(tag) == 'package-flexibleserver-2022-12-01' namespace: Azure.ResourceManager.PostgreSql.FlexibleServers -require: https://github.com/Azure/azure-rest-api-specs/blob/deba715c80b5b523a84d32fa2764c0f6e867b4d0/specification/postgresql/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/postgresql/resource-manager/readme.md output-folder: $(this-folder)/PostgreSqlFlexibleServers/Generated format-by-name-rules: