diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props
index f04e44ce2b8fe..2505816a80a96 100644
--- a/eng/Packages.Data.props
+++ b/eng/Packages.Data.props
@@ -186,16 +186,12 @@
-
-
-
-
+
-
-
+
@@ -240,8 +236,7 @@
-
-
+
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/CHANGELOG.md b/sdk/postgresql/Azure.ResourceManager.PostgreSql/CHANGELOG.md
index 9749ce1824149..ddaa26299492a 100644
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/CHANGELOG.md
+++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/CHANGELOG.md
@@ -1,19 +1,14 @@
# Release History
-## 2.0.0 (2023-02-02)
-
-This release uses GA api version 2022-12-01 for PostgreSQL flexible server.
+## 1.1.0-beta.1 (Unreleased)
### Features Added
-- Data encryption
-- User managed identities
-- Active Directory authentication
-- Geo-Restore
-- Read Replicas
-- Same Zone HA
-- Server backups
-- Major version upgrade
+### Breaking Changes
+
+### Bugs Fixed
+
+### Other Changes
## 1.0.0 (2022-09-05)
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 33e5e58caa0a8..432f81f3dd07a 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
@@ -424,10 +424,8 @@ namespace Azure.ResourceManager.PostgreSql.FlexibleServers
{
public static partial class FlexibleServersExtensions
{
- public static Azure.Response CheckPostgreSqlFlexibleServerNameAvailability(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerNameAvailabilityRequest nameAvailabilityRequest, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public static System.Threading.Tasks.Task> CheckPostgreSqlFlexibleServerNameAvailabilityAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerNameAvailabilityRequest nameAvailabilityRequest, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public static Azure.Response CheckPostgreSqlFlexibleServerNameAvailabilityWithLocation(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation locationName, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerNameAvailabilityRequest nameAvailabilityRequest, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public static System.Threading.Tasks.Task> CheckPostgreSqlFlexibleServerNameAvailabilityWithLocationAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation locationName, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerNameAvailabilityRequest nameAvailabilityRequest, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.Response CheckPostgreSqlFlexibleServerNameAvailability(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static System.Threading.Tasks.Task> CheckPostgreSqlFlexibleServerNameAvailabilityAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public static Azure.Response ExecuteGetPrivateDnsZoneSuffix(this Azure.ResourceManager.Resources.TenantResource tenantResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public static System.Threading.Tasks.Task> ExecuteGetPrivateDnsZoneSuffixAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public static Azure.Pageable ExecuteLocationBasedCapabilities(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation locationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
@@ -435,9 +433,7 @@ public static partial class FlexibleServersExtensions
public static Azure.Response ExecuteVirtualNetworkSubnetUsage(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation locationName, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerVirtualNetworkSubnetUsageParameter postgreSqlFlexibleServerVirtualNetworkSubnetUsageParameter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public static System.Threading.Tasks.Task> ExecuteVirtualNetworkSubnetUsageAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation locationName, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerVirtualNetworkSubnetUsageParameter postgreSqlFlexibleServerVirtualNetworkSubnetUsageParameter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public static Azure.Response GetPostgreSqlFlexibleServer(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string serverName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public static Azure.ResourceManager.PostgreSql.FlexibleServers.PostgreSqlFlexibleServerActiveDirectoryAdministratorResource GetPostgreSqlFlexibleServerActiveDirectoryAdministratorResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; }
public static System.Threading.Tasks.Task> GetPostgreSqlFlexibleServerAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string serverName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public static Azure.ResourceManager.PostgreSql.FlexibleServers.PostgreSqlFlexibleServerBackupResource GetPostgreSqlFlexibleServerBackupResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; }
public static Azure.ResourceManager.PostgreSql.FlexibleServers.PostgreSqlFlexibleServerConfigurationResource GetPostgreSqlFlexibleServerConfigurationResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; }
public static Azure.ResourceManager.PostgreSql.FlexibleServers.PostgreSqlFlexibleServerDatabaseResource GetPostgreSqlFlexibleServerDatabaseResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; }
public static Azure.ResourceManager.PostgreSql.FlexibleServers.PostgreSqlFlexibleServerFirewallRuleResource GetPostgreSqlFlexibleServerFirewallRuleResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; }
@@ -446,73 +442,6 @@ public static partial class FlexibleServersExtensions
public static Azure.Pageable GetPostgreSqlFlexibleServers(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public static Azure.AsyncPageable GetPostgreSqlFlexibleServersAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
}
- public partial class PostgreSqlFlexibleServerActiveDirectoryAdministratorCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable
- {
- protected PostgreSqlFlexibleServerActiveDirectoryAdministratorCollection() { }
- public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string objectId, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerActiveDirectoryAdministratorCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string objectId, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerActiveDirectoryAdministratorCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.Response Exists(string objectId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task> ExistsAsync(string objectId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.Response Get(string objectId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task> GetAsync(string objectId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; }
- System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; }
- System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; }
- }
- public partial class PostgreSqlFlexibleServerActiveDirectoryAdministratorData : Azure.ResourceManager.Models.ResourceData
- {
- public PostgreSqlFlexibleServerActiveDirectoryAdministratorData() { }
- public System.Guid? ObjectId { get { throw null; } set { } }
- public string PrincipalName { get { throw null; } set { } }
- public Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerPrincipalType? PrincipalType { get { throw null; } set { } }
- public System.Guid? TenantId { get { throw null; } set { } }
- }
- public partial class PostgreSqlFlexibleServerActiveDirectoryAdministratorResource : Azure.ResourceManager.ArmResource
- {
- public static readonly Azure.Core.ResourceType ResourceType;
- protected PostgreSqlFlexibleServerActiveDirectoryAdministratorResource() { }
- public virtual Azure.ResourceManager.PostgreSql.FlexibleServers.PostgreSqlFlexibleServerActiveDirectoryAdministratorData Data { get { throw null; } }
- public virtual bool HasData { get { throw null; } }
- public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string objectId) { throw null; }
- public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerActiveDirectoryAdministratorCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerActiveDirectoryAdministratorCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- }
- public partial class PostgreSqlFlexibleServerBackupCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable
- {
- protected PostgreSqlFlexibleServerBackupCollection() { }
- public virtual Azure.Response Exists(string backupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task> ExistsAsync(string backupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.Response Get(string backupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task> GetAsync(string backupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; }
- System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; }
- System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; }
- }
- public partial class PostgreSqlFlexibleServerBackupData : Azure.ResourceManager.Models.ResourceData
- {
- public PostgreSqlFlexibleServerBackupData() { }
- public Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerBackupOrigin? BackupType { get { throw null; } set { } }
- public System.DateTimeOffset? CompletedOn { get { throw null; } set { } }
- public string Source { get { throw null; } set { } }
- }
- public partial class PostgreSqlFlexibleServerBackupResource : Azure.ResourceManager.ArmResource
- {
- public static readonly Azure.Core.ResourceType ResourceType;
- protected PostgreSqlFlexibleServerBackupResource() { }
- public virtual Azure.ResourceManager.PostgreSql.FlexibleServers.PostgreSqlFlexibleServerBackupData Data { get { throw null; } }
- public virtual bool HasData { get { throw null; } }
- public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string backupName) { throw null; }
- public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- }
public partial class PostgreSqlFlexibleServerCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable
{
protected PostgreSqlFlexibleServerCollection() { }
@@ -524,8 +453,6 @@ protected PostgreSqlFlexibleServerCollection() { }
public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual System.Threading.Tasks.Task> GetAsync(string serverName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.Pageable GetReplicas(string serverName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.AsyncPageable GetReplicasAsync(string serverName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; }
System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; }
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; }
@@ -569,28 +496,23 @@ protected PostgreSqlFlexibleServerConfigurationResource() { }
public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string configurationName) { throw null; }
public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerConfigurationPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerConfigurationPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.PostgreSql.FlexibleServers.PostgreSqlFlexibleServerConfigurationData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.PostgreSql.FlexibleServers.PostgreSqlFlexibleServerConfigurationData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
}
public partial class PostgreSqlFlexibleServerData : Azure.ResourceManager.Models.TrackedResourceData
{
public PostgreSqlFlexibleServerData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { }
public string AdministratorLogin { get { throw null; } set { } }
public string AdministratorLoginPassword { get { throw null; } set { } }
- public Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerAuthConfig AuthConfig { get { throw null; } set { } }
public string AvailabilityZone { get { throw null; } set { } }
public Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerBackupProperties Backup { get { throw null; } set { } }
public Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerCreateMode? CreateMode { get { throw null; } set { } }
- public Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerDataEncryption DataEncryption { get { throw null; } set { } }
public string FullyQualifiedDomainName { get { throw null; } }
public Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerHighAvailability HighAvailability { get { throw null; } set { } }
- public Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerUserAssignedIdentity Identity { get { throw null; } set { } }
public Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerMaintenanceWindow MaintenanceWindow { get { throw null; } set { } }
public string MinorVersion { get { throw null; } }
public Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerNetwork Network { get { throw null; } set { } }
public System.DateTimeOffset? PointInTimeUtc { get { throw null; } set { } }
- public int? ReplicaCapacity { 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 Azure.Core.ResourceIdentifier SourceServerResourceId { get { throw null; } set { } }
public Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerState? State { get { throw null; } }
@@ -680,12 +602,6 @@ protected PostgreSqlFlexibleServerResource() { }
public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.Response GetPostgreSqlFlexibleServerActiveDirectoryAdministrator(string objectId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task> GetPostgreSqlFlexibleServerActiveDirectoryAdministratorAsync(string objectId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.ResourceManager.PostgreSql.FlexibleServers.PostgreSqlFlexibleServerActiveDirectoryAdministratorCollection GetPostgreSqlFlexibleServerActiveDirectoryAdministrators() { throw null; }
- public virtual Azure.Response GetPostgreSqlFlexibleServerBackup(string backupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task> GetPostgreSqlFlexibleServerBackupAsync(string backupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.ResourceManager.PostgreSql.FlexibleServers.PostgreSqlFlexibleServerBackupCollection GetPostgreSqlFlexibleServerBackups() { throw null; }
public virtual Azure.Response GetPostgreSqlFlexibleServerConfiguration(string configurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual System.Threading.Tasks.Task> GetPostgreSqlFlexibleServerConfigurationAsync(string configurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual Azure.ResourceManager.PostgreSql.FlexibleServers.PostgreSqlFlexibleServerConfigurationCollection GetPostgreSqlFlexibleServerConfigurations() { throw null; }
@@ -711,55 +627,6 @@ protected PostgreSqlFlexibleServerResource() { }
}
namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models
{
- public partial class PostgreSqlFlexibleServerActiveDirectoryAdministratorCreateOrUpdateContent
- {
- public PostgreSqlFlexibleServerActiveDirectoryAdministratorCreateOrUpdateContent() { }
- public string PrincipalName { get { throw null; } set { } }
- public Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerPrincipalType? PrincipalType { get { throw null; } set { } }
- public System.Guid? TenantId { get { throw null; } set { } }
- }
- [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
- public readonly partial struct PostgreSqlFlexibleServerActiveDirectoryAuthEnum : System.IEquatable
- {
- private readonly object _dummy;
- private readonly int _dummyPrimitive;
- public PostgreSqlFlexibleServerActiveDirectoryAuthEnum(string value) { throw null; }
- public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerActiveDirectoryAuthEnum Disabled { get { throw null; } }
- public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerActiveDirectoryAuthEnum Enabled { get { throw null; } }
- public bool Equals(Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerActiveDirectoryAuthEnum other) { throw null; }
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public override bool Equals(object obj) { throw null; }
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public override int GetHashCode() { throw null; }
- public static bool operator ==(Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerActiveDirectoryAuthEnum left, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerActiveDirectoryAuthEnum right) { throw null; }
- public static implicit operator Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerActiveDirectoryAuthEnum (string value) { throw null; }
- public static bool operator !=(Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerActiveDirectoryAuthEnum left, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerActiveDirectoryAuthEnum right) { throw null; }
- public override string ToString() { throw null; }
- }
- public partial class PostgreSqlFlexibleServerAuthConfig
- {
- public PostgreSqlFlexibleServerAuthConfig() { }
- public Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerActiveDirectoryAuthEnum? ActiveDirectoryAuth { get { throw null; } set { } }
- public Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerPasswordAuthEnum? PasswordAuth { get { throw null; } set { } }
- public System.Guid? TenantId { get { throw null; } set { } }
- }
- [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
- public readonly partial struct PostgreSqlFlexibleServerBackupOrigin : System.IEquatable
- {
- private readonly object _dummy;
- private readonly int _dummyPrimitive;
- public PostgreSqlFlexibleServerBackupOrigin(string value) { throw null; }
- public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerBackupOrigin Full { get { throw null; } }
- public bool Equals(Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerBackupOrigin other) { throw null; }
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public override bool Equals(object obj) { throw null; }
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public override int GetHashCode() { throw null; }
- public static bool operator ==(Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerBackupOrigin left, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerBackupOrigin right) { throw null; }
- public static implicit operator Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerBackupOrigin (string value) { throw null; }
- public static bool operator !=(Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerBackupOrigin left, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerBackupOrigin right) { throw null; }
- public override string ToString() { throw null; }
- }
public partial class PostgreSqlFlexibleServerBackupProperties
{
public PostgreSqlFlexibleServerBackupProperties() { }
@@ -770,12 +637,10 @@ public PostgreSqlFlexibleServerBackupProperties() { }
public partial class PostgreSqlFlexibleServerCapabilityProperties
{
internal PostgreSqlFlexibleServerCapabilityProperties() { }
- public bool? FastProvisioningSupported { get { throw null; } }
public bool? IsGeoBackupSupported { get { throw null; } }
public bool? IsZoneRedundantHAAndGeoBackupSupported { get { throw null; } }
public bool? IsZoneRedundantHASupported { get { throw null; } }
public string Status { get { throw null; } }
- public System.Collections.Generic.IReadOnlyList SupportedFastProvisioningEditions { get { throw null; } }
public System.Collections.Generic.IReadOnlyList SupportedFlexibleServerEditions { get { throw null; } }
public System.Collections.Generic.IReadOnlyList SupportedHAModes { get { throw null; } }
public System.Collections.Generic.IReadOnlyList SupportedHyperscaleNodeEditions { get { throw null; } }
@@ -801,21 +666,6 @@ internal PostgreSqlFlexibleServerCapabilityProperties() { }
public static bool operator !=(Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerConfigurationDataType left, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerConfigurationDataType right) { throw null; }
public override string ToString() { throw null; }
}
- public partial class PostgreSqlFlexibleServerConfigurationPatch
- {
- public PostgreSqlFlexibleServerConfigurationPatch() { }
- public string AllowedValues { get { throw null; } }
- public Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerConfigurationDataType? DataType { get { throw null; } }
- public string DefaultValue { get { throw null; } }
- public string Description { get { throw null; } }
- public string DocumentationLink { get { throw null; } }
- public bool? IsConfigPendingRestart { get { throw null; } }
- public bool? IsDynamicConfig { get { throw null; } }
- public bool? IsReadOnly { get { throw null; } }
- public string Source { get { throw null; } set { } }
- public string Unit { get { throw null; } }
- public string Value { get { throw null; } set { } }
- }
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public readonly partial struct PostgreSqlFlexibleServerCreateMode : System.IEquatable
{
@@ -824,9 +674,7 @@ public PostgreSqlFlexibleServerConfigurationPatch() { }
public PostgreSqlFlexibleServerCreateMode(string value) { throw null; }
public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerCreateMode Create { get { throw null; } }
public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerCreateMode Default { get { throw null; } }
- public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerCreateMode GeoRestore { get { throw null; } }
public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerCreateMode PointInTimeRestore { get { throw null; } }
- public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerCreateMode Replica { get { throw null; } }
public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerCreateMode Update { get { throw null; } }
public bool Equals(Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerCreateMode other) { throw null; }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
@@ -856,13 +704,6 @@ public PostgreSqlFlexibleServerConfigurationPatch() { }
public static bool operator !=(Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerCreateModeForUpdate left, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerCreateModeForUpdate right) { throw null; }
public override string ToString() { throw null; }
}
- public partial class PostgreSqlFlexibleServerDataEncryption
- {
- public PostgreSqlFlexibleServerDataEncryption() { }
- public Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerKeyType? KeyType { get { throw null; } set { } }
- public System.Uri PrimaryKeyUri { get { throw null; } set { } }
- public Azure.Core.ResourceIdentifier PrimaryUserAssignedIdentityId { get { throw null; } set { } }
- }
public partial class PostgreSqlFlexibleServerDelegatedSubnetUsage
{
internal PostgreSqlFlexibleServerDelegatedSubnetUsage() { }
@@ -897,13 +738,6 @@ internal PostgreSqlFlexibleServerEditionCapability() { }
public static bool operator !=(Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerFailoverMode left, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerFailoverMode right) { throw null; }
public override string ToString() { throw null; }
}
- public partial class PostgreSqlFlexibleServerFastProvisioningEditionCapability
- {
- internal PostgreSqlFlexibleServerFastProvisioningEditionCapability() { }
- public string SupportedServerVersions { get { throw null; } }
- public string SupportedSku { get { throw null; } }
- public long? SupportedStorageGb { get { throw null; } }
- }
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public readonly partial struct PostgreSqlFlexibleServerGeoRedundantBackupEnum : System.IEquatable
{
@@ -958,7 +792,6 @@ public PostgreSqlFlexibleServerHighAvailability() { }
private readonly int _dummyPrimitive;
public PostgreSqlFlexibleServerHighAvailabilityMode(string value) { throw null; }
public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerHighAvailabilityMode Disabled { get { throw null; } }
- public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerHighAvailabilityMode SameZone { get { throw null; } }
public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerHighAvailabilityMode ZoneRedundant { get { throw null; } }
public bool Equals(Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerHighAvailabilityMode other) { throw null; }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
@@ -979,43 +812,6 @@ internal PostgreSqlFlexibleServerHyperscaleNodeEditionCapability() { }
public System.Collections.Generic.IReadOnlyList SupportedServerVersions { get { throw null; } }
public System.Collections.Generic.IReadOnlyList SupportedStorageEditions { get { throw null; } }
}
- [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
- public readonly partial struct PostgreSqlFlexibleServerIdentityType : System.IEquatable
- {
- private readonly object _dummy;
- 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)]
- public override bool Equals(object obj) { throw null; }
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public override int GetHashCode() { throw null; }
- public static bool operator ==(Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerIdentityType left, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerIdentityType right) { throw null; }
- public static implicit operator Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerIdentityType (string value) { throw null; }
- public static bool operator !=(Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerIdentityType left, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerIdentityType right) { throw null; }
- public override string ToString() { throw null; }
- }
- [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
- public readonly partial struct PostgreSqlFlexibleServerKeyType : System.IEquatable
- {
- private readonly object _dummy;
- 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 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; }
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public override int GetHashCode() { throw null; }
- public static bool operator ==(Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerKeyType left, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerKeyType right) { throw null; }
- public static implicit operator Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerKeyType (string value) { throw null; }
- public static bool operator !=(Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerKeyType left, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerKeyType right) { throw null; }
- public override string ToString() { throw null; }
- }
public partial class PostgreSqlFlexibleServerMaintenanceWindow
{
public PostgreSqlFlexibleServerMaintenanceWindow() { }
@@ -1024,23 +820,19 @@ public PostgreSqlFlexibleServerMaintenanceWindow() { }
public int? StartHour { get { throw null; } set { } }
public int? StartMinute { get { throw null; } set { } }
}
- public partial class PostgreSqlFlexibleServerNameAvailabilityRequest
+ public partial class PostgreSqlFlexibleServerNameAvailabilityContent
{
- public PostgreSqlFlexibleServerNameAvailabilityRequest() { }
- public string Name { get { throw null; } set { } }
+ public PostgreSqlFlexibleServerNameAvailabilityContent(string name) { }
+ public string Name { get { throw null; } }
public Azure.Core.ResourceType? ResourceType { get { throw null; } set { } }
}
- public partial class PostgreSqlFlexibleServerNameAvailabilityResponse
+ public partial class PostgreSqlFlexibleServerNameAvailabilityResult
{
- internal PostgreSqlFlexibleServerNameAvailabilityResponse() { }
+ internal PostgreSqlFlexibleServerNameAvailabilityResult() { }
public bool? IsNameAvailable { get { throw null; } }
public string Message { get { throw null; } }
- public Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerNameUnavailableReason? Reason { get { throw null; } }
- }
- public partial class PostgreSqlFlexibleServerNameAvailabilityResult : Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerNameAvailabilityResponse
- {
- internal PostgreSqlFlexibleServerNameAvailabilityResult() { }
public string Name { get { throw null; } }
+ public Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerNameUnavailableReason? Reason { get { throw null; } }
public Azure.Core.ResourceType? ResourceType { get { throw null; } }
}
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
@@ -1075,60 +867,18 @@ internal PostgreSqlFlexibleServerNodeTypeCapability() { }
public string NodeType { get { throw null; } }
public string Status { get { throw null; } }
}
- [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
- public readonly partial struct PostgreSqlFlexibleServerPasswordAuthEnum : System.IEquatable
- {
- private readonly object _dummy;
- private readonly int _dummyPrimitive;
- public PostgreSqlFlexibleServerPasswordAuthEnum(string value) { throw null; }
- public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerPasswordAuthEnum Disabled { get { throw null; } }
- public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerPasswordAuthEnum Enabled { get { throw null; } }
- public bool Equals(Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerPasswordAuthEnum other) { throw null; }
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public override bool Equals(object obj) { throw null; }
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public override int GetHashCode() { throw null; }
- public static bool operator ==(Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerPasswordAuthEnum left, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerPasswordAuthEnum right) { throw null; }
- public static implicit operator Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerPasswordAuthEnum (string value) { throw null; }
- public static bool operator !=(Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerPasswordAuthEnum left, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerPasswordAuthEnum right) { throw null; }
- public override string ToString() { throw null; }
- }
public partial class PostgreSqlFlexibleServerPatch
{
public PostgreSqlFlexibleServerPatch() { }
public string AdministratorLoginPassword { get { throw null; } set { } }
- public Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerAuthConfig AuthConfig { get { throw null; } set { } }
public Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerBackupProperties Backup { get { throw null; } set { } }
public Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerCreateModeForUpdate? CreateMode { get { throw null; } set { } }
- public Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerDataEncryption DataEncryption { get { throw null; } set { } }
public Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerHighAvailability HighAvailability { get { throw null; } set { } }
- 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.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 { } }
public System.Collections.Generic.IDictionary Tags { get { throw null; } }
- public Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerVersion? Version { get { throw null; } set { } }
- }
- [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
- public readonly partial struct PostgreSqlFlexibleServerPrincipalType : System.IEquatable
- {
- private readonly object _dummy;
- private readonly int _dummyPrimitive;
- public PostgreSqlFlexibleServerPrincipalType(string value) { throw null; }
- public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerPrincipalType Group { get { throw null; } }
- public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerPrincipalType ServicePrincipal { get { throw null; } }
- public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerPrincipalType Unknown { get { throw null; } }
- public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerPrincipalType User { get { throw null; } }
- public bool Equals(Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerPrincipalType other) { throw null; }
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public override bool Equals(object obj) { throw null; }
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public override int GetHashCode() { throw null; }
- public static bool operator ==(Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerPrincipalType left, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerPrincipalType right) { throw null; }
- public static implicit operator Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerPrincipalType (string value) { throw null; }
- public static bool operator !=(Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerPrincipalType left, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerPrincipalType right) { throw null; }
- public override string ToString() { throw null; }
}
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public readonly partial struct PostgreSqlFlexibleServerPublicNetworkAccessState : System.IEquatable
@@ -1148,30 +898,6 @@ public PostgreSqlFlexibleServerPatch() { }
public static bool operator !=(Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerPublicNetworkAccessState left, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerPublicNetworkAccessState right) { throw null; }
public override string ToString() { throw null; }
}
- [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
- public readonly partial struct PostgreSqlFlexibleServerReplicationRole : System.IEquatable
- {
- private readonly object _dummy;
- private readonly int _dummyPrimitive;
- 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; }
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public override int GetHashCode() { throw null; }
- public static bool operator ==(Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerReplicationRole left, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerReplicationRole right) { throw null; }
- public static implicit operator Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerReplicationRole (string value) { throw null; }
- public static bool operator !=(Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerReplicationRole left, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerReplicationRole right) { throw null; }
- public override string ToString() { throw null; }
- }
public partial class PostgreSqlFlexibleServerRestartParameter
{
public PostgreSqlFlexibleServerRestartParameter() { }
@@ -1184,7 +910,6 @@ internal PostgreSqlFlexibleServerServerVersionCapability() { }
public string Name { get { throw null; } }
public string Status { get { throw null; } }
public System.Collections.Generic.IReadOnlyList SupportedVCores { get { throw null; } }
- public System.Collections.Generic.IReadOnlyList SupportedVersionsToUpgrade { get { throw null; } }
}
public partial class PostgreSqlFlexibleServerSku
{
@@ -1241,7 +966,6 @@ internal PostgreSqlFlexibleServerStorageCapability() { }
public string Status { get { throw null; } }
public long? StorageSizeInMB { get { throw null; } }
public long? SupportedIops { get { throw null; } }
- public System.Collections.Generic.IReadOnlyList SupportedUpgradableTierList { get { throw null; } }
}
public partial class PostgreSqlFlexibleServerStorageEditionCapability
{
@@ -1250,21 +974,6 @@ internal PostgreSqlFlexibleServerStorageEditionCapability() { }
public string Status { get { throw null; } }
public System.Collections.Generic.IReadOnlyList SupportedStorageCapabilities { get { throw null; } }
}
- public partial class PostgreSqlFlexibleServerStorageTierCapability
- {
- internal PostgreSqlFlexibleServerStorageTierCapability() { }
- public long? Iops { get { throw null; } }
- public bool? IsBaseline { get { throw null; } }
- public string Name { get { throw null; } }
- public string Status { get { throw null; } }
- public string TierName { get { throw null; } }
- }
- public partial class PostgreSqlFlexibleServerUserAssignedIdentity
- {
- public PostgreSqlFlexibleServerUserAssignedIdentity(Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerIdentityType identityType) { }
- public Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerIdentityType IdentityType { get { throw null; } set { } }
- public System.Collections.Generic.IDictionary UserAssignedIdentities { get { throw null; } }
- }
public partial class PostgreSqlFlexibleServerVCoreCapability
{
internal PostgreSqlFlexibleServerVCoreCapability() { }
@@ -1283,7 +992,6 @@ internal PostgreSqlFlexibleServerVCoreCapability() { }
public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerVersion Ver11 { get { throw null; } }
public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerVersion Ver12 { get { throw null; } }
public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerVersion Ver13 { get { throw null; } }
- public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerVersion Ver14 { get { throw null; } }
public bool Equals(Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerVersion 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/Azure.ResourceManager.PostgreSql.csproj b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/Azure.ResourceManager.PostgreSql.csproj
index af555ff70c5f3..2e80d7adaa293 100644
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/Azure.ResourceManager.PostgreSql.csproj
+++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/Azure.ResourceManager.PostgreSql.csproj
@@ -1,6 +1,8 @@
-
+
- 2.0.0
+ 1.1.0-beta.1
+
+ 1.0.0
Azure.ResourceManager.PostgreSql
Microsoft Azure Resource Manager client SDK for Azure resource provider Microsoft.DBforPostgreSQL.
azure;management;arm;resource manager;postgresql
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Custom/Models/PostgreSqlFlexibleServerVersion.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Custom/Models/PostgreSqlFlexibleServerVersion.cs
index 9c9293de51fae..1a73fc0b7e9ef 100644
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Custom/Models/PostgreSqlFlexibleServerVersion.cs
+++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Custom/Models/PostgreSqlFlexibleServerVersion.cs
@@ -22,13 +22,10 @@ public PostgreSqlFlexibleServerVersion(string value)
_value = value ?? throw new ArgumentNullException(nameof(value));
}
- private const string Ver14Value = "14";
private const string Ver13Value = "13";
private const string Ver12Value = "12";
private const string Ver11Value = "11";
- /// 14.
- public static PostgreSqlFlexibleServerVersion Ver14 { get; } = new PostgreSqlFlexibleServerVersion(Ver14Value);
/// 13.
public static PostgreSqlFlexibleServerVersion Ver13 { get; } = new PostgreSqlFlexibleServerVersion(Ver13Value);
/// 12.
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Extensions/FlexibleServersExtensions.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Extensions/FlexibleServersExtensions.cs
index 977ec2a61a65f..24b210f5ae088 100644
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Extensions/FlexibleServersExtensions.cs
+++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Extensions/FlexibleServersExtensions.cs
@@ -78,47 +78,45 @@ private static SubscriptionResourceExtensionClient GetExtensionClient(Subscripti
}
///
- /// Get capabilities at specified location in a given subscription.
+ /// List all the servers in a given subscription.
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/capabilities
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/flexibleServers
///
/// -
/// Operation Id
- /// LocationBasedCapabilities_Execute
+ /// Servers_List
///
///
///
/// The instance the method will execute against.
- /// The name of the location.
/// The cancellation token to use.
- /// An async collection of that may take multiple service requests to iterate over.
- public static AsyncPageable ExecuteLocationBasedCapabilitiesAsync(this SubscriptionResource subscriptionResource, AzureLocation locationName, CancellationToken cancellationToken = default)
+ /// An async collection of that may take multiple service requests to iterate over.
+ public static AsyncPageable GetPostgreSqlFlexibleServersAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default)
{
- return GetExtensionClient(subscriptionResource).ExecuteLocationBasedCapabilitiesAsync(locationName, cancellationToken);
+ return GetExtensionClient(subscriptionResource).GetPostgreSqlFlexibleServersAsync(cancellationToken);
}
///
- /// Get capabilities at specified location in a given subscription.
+ /// List all the servers in a given subscription.
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/capabilities
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/flexibleServers
///
/// -
/// Operation Id
- /// LocationBasedCapabilities_Execute
+ /// Servers_List
///
///
///
/// The instance the method will execute against.
- /// The name of the location.
/// The cancellation token to use.
- /// A collection of that may take multiple service requests to iterate over.
- public static Pageable ExecuteLocationBasedCapabilities(this SubscriptionResource subscriptionResource, AzureLocation locationName, CancellationToken cancellationToken = default)
+ /// A collection of that may take multiple service requests to iterate over.
+ public static Pageable GetPostgreSqlFlexibleServers(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default)
{
- return GetExtensionClient(subscriptionResource).ExecuteLocationBasedCapabilities(locationName, cancellationToken);
+ return GetExtensionClient(subscriptionResource).GetPostgreSqlFlexibleServers(cancellationToken);
}
///
@@ -135,14 +133,14 @@ public static Pageable ExecuteLoca
///
///
/// The instance the method will execute against.
- /// The required parameters for checking if resource name is available.
+ /// The required parameters for checking if resource name is available.
/// The cancellation token to use.
- /// is null.
- public static async Task> CheckPostgreSqlFlexibleServerNameAvailabilityAsync(this SubscriptionResource subscriptionResource, PostgreSqlFlexibleServerNameAvailabilityRequest nameAvailabilityRequest, CancellationToken cancellationToken = default)
+ /// is null.
+ public static async Task> CheckPostgreSqlFlexibleServerNameAvailabilityAsync(this SubscriptionResource subscriptionResource, PostgreSqlFlexibleServerNameAvailabilityContent content, CancellationToken cancellationToken = default)
{
- Argument.AssertNotNull(nameAvailabilityRequest, nameof(nameAvailabilityRequest));
+ Argument.AssertNotNull(content, nameof(content));
- return await GetExtensionClient(subscriptionResource).CheckPostgreSqlFlexibleServerNameAvailabilityAsync(nameAvailabilityRequest, cancellationToken).ConfigureAwait(false);
+ return await GetExtensionClient(subscriptionResource).CheckPostgreSqlFlexibleServerNameAvailabilityAsync(content, cancellationToken).ConfigureAwait(false);
}
///
@@ -159,106 +157,58 @@ public static async Task
///
/// The instance the method will execute against.
- /// The required parameters for checking if resource name is available.
+ /// The required parameters for checking if resource name is available.
/// The cancellation token to use.
- /// is null.
- public static Response CheckPostgreSqlFlexibleServerNameAvailability(this SubscriptionResource subscriptionResource, PostgreSqlFlexibleServerNameAvailabilityRequest nameAvailabilityRequest, CancellationToken cancellationToken = default)
+ /// is null.
+ public static Response CheckPostgreSqlFlexibleServerNameAvailability(this SubscriptionResource subscriptionResource, PostgreSqlFlexibleServerNameAvailabilityContent content, CancellationToken cancellationToken = default)
{
- Argument.AssertNotNull(nameAvailabilityRequest, nameof(nameAvailabilityRequest));
+ Argument.AssertNotNull(content, nameof(content));
- return GetExtensionClient(subscriptionResource).CheckPostgreSqlFlexibleServerNameAvailability(nameAvailabilityRequest, cancellationToken);
+ return GetExtensionClient(subscriptionResource).CheckPostgreSqlFlexibleServerNameAvailability(content, cancellationToken);
}
///
- /// Check the availability of name for resource
+ /// Get capabilities at specified location in a given subscription.
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/checkNameAvailability
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/capabilities
///
/// -
/// Operation Id
- /// CheckNameAvailabilityWithLocation_Execute
+ /// LocationBasedCapabilities_Execute
///
///
///
/// The instance the method will execute against.
/// The name of the location.
- /// The required parameters for checking if resource name is available.
/// The cancellation token to use.
- /// is null.
- public static async Task> CheckPostgreSqlFlexibleServerNameAvailabilityWithLocationAsync(this SubscriptionResource subscriptionResource, AzureLocation locationName, PostgreSqlFlexibleServerNameAvailabilityRequest nameAvailabilityRequest, CancellationToken cancellationToken = default)
+ /// An async collection of that may take multiple service requests to iterate over.
+ public static AsyncPageable ExecuteLocationBasedCapabilitiesAsync(this SubscriptionResource subscriptionResource, AzureLocation locationName, CancellationToken cancellationToken = default)
{
- Argument.AssertNotNull(nameAvailabilityRequest, nameof(nameAvailabilityRequest));
-
- return await GetExtensionClient(subscriptionResource).CheckPostgreSqlFlexibleServerNameAvailabilityWithLocationAsync(locationName, nameAvailabilityRequest, cancellationToken).ConfigureAwait(false);
+ return GetExtensionClient(subscriptionResource).ExecuteLocationBasedCapabilitiesAsync(locationName, cancellationToken);
}
///
- /// Check the availability of name for resource
+ /// Get capabilities at specified location in a given subscription.
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/checkNameAvailability
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/capabilities
///
/// -
/// Operation Id
- /// CheckNameAvailabilityWithLocation_Execute
+ /// LocationBasedCapabilities_Execute
///
///
///
/// The instance the method will execute against.
/// The name of the location.
- /// The required parameters for checking if resource name is available.
- /// The cancellation token to use.
- /// is null.
- public static Response CheckPostgreSqlFlexibleServerNameAvailabilityWithLocation(this SubscriptionResource subscriptionResource, AzureLocation locationName, PostgreSqlFlexibleServerNameAvailabilityRequest nameAvailabilityRequest, CancellationToken cancellationToken = default)
- {
- Argument.AssertNotNull(nameAvailabilityRequest, nameof(nameAvailabilityRequest));
-
- return GetExtensionClient(subscriptionResource).CheckPostgreSqlFlexibleServerNameAvailabilityWithLocation(locationName, nameAvailabilityRequest, cancellationToken);
- }
-
- ///
- /// List all the servers in a given subscription.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/flexibleServers
- ///
- /// -
- /// Operation Id
- /// Servers_List
- ///
- ///
- ///
- /// The instance the method will execute against.
- /// The cancellation token to use.
- /// An async collection of that may take multiple service requests to iterate over.
- public static AsyncPageable GetPostgreSqlFlexibleServersAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default)
- {
- return GetExtensionClient(subscriptionResource).GetPostgreSqlFlexibleServersAsync(cancellationToken);
- }
-
- ///
- /// List all the servers in a given subscription.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/flexibleServers
- ///
- /// -
- /// Operation Id
- /// Servers_List
- ///
- ///
- ///
- /// The instance the method will execute against.
/// The cancellation token to use.
- /// A collection of that may take multiple service requests to iterate over.
- public static Pageable GetPostgreSqlFlexibleServers(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default)
+ /// A collection of that may take multiple service requests to iterate over.
+ public static Pageable ExecuteLocationBasedCapabilities(this SubscriptionResource subscriptionResource, AzureLocation locationName, CancellationToken cancellationToken = default)
{
- return GetExtensionClient(subscriptionResource).GetPostgreSqlFlexibleServers(cancellationToken);
+ return GetExtensionClient(subscriptionResource).ExecuteLocationBasedCapabilities(locationName, cancellationToken);
}
///
@@ -376,39 +326,39 @@ public static Response GetPostgreSqlFlexibleSe
return resourceGroupResource.GetPostgreSqlFlexibleServers().Get(serverName, cancellationToken);
}
- #region PostgreSqlFlexibleServerActiveDirectoryAdministratorResource
+ #region PostgreSqlFlexibleServerResource
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
///
/// The instance the method will execute against.
/// The resource ID of the resource to get.
- /// Returns a object.
- public static PostgreSqlFlexibleServerActiveDirectoryAdministratorResource GetPostgreSqlFlexibleServerActiveDirectoryAdministratorResource(this ArmClient client, ResourceIdentifier id)
+ /// Returns a object.
+ public static PostgreSqlFlexibleServerResource GetPostgreSqlFlexibleServerResource(this ArmClient client, ResourceIdentifier id)
{
return client.GetResourceClient(() =>
{
- PostgreSqlFlexibleServerActiveDirectoryAdministratorResource.ValidateResourceId(id);
- return new PostgreSqlFlexibleServerActiveDirectoryAdministratorResource(client, id);
+ PostgreSqlFlexibleServerResource.ValidateResourceId(id);
+ return new PostgreSqlFlexibleServerResource(client, id);
}
);
}
#endregion
- #region PostgreSqlFlexibleServerBackupResource
+ #region PostgreSqlFlexibleServerFirewallRuleResource
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
///
/// The instance the method will execute against.
/// The resource ID of the resource to get.
- /// Returns a object.
- public static PostgreSqlFlexibleServerBackupResource GetPostgreSqlFlexibleServerBackupResource(this ArmClient client, ResourceIdentifier id)
+ /// Returns a object.
+ public static PostgreSqlFlexibleServerFirewallRuleResource GetPostgreSqlFlexibleServerFirewallRuleResource(this ArmClient client, ResourceIdentifier id)
{
return client.GetResourceClient(() =>
{
- PostgreSqlFlexibleServerBackupResource.ValidateResourceId(id);
- return new PostgreSqlFlexibleServerBackupResource(client, id);
+ PostgreSqlFlexibleServerFirewallRuleResource.ValidateResourceId(id);
+ return new PostgreSqlFlexibleServerFirewallRuleResource(client, id);
}
);
}
@@ -451,43 +401,5 @@ public static PostgreSqlFlexibleServerDatabaseResource GetPostgreSqlFlexibleServ
);
}
#endregion
-
- #region PostgreSqlFlexibleServerFirewallRuleResource
- ///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
- ///
- /// The instance the method will execute against.
- /// The resource ID of the resource to get.
- /// Returns a object.
- public static PostgreSqlFlexibleServerFirewallRuleResource GetPostgreSqlFlexibleServerFirewallRuleResource(this ArmClient client, ResourceIdentifier id)
- {
- return client.GetResourceClient(() =>
- {
- PostgreSqlFlexibleServerFirewallRuleResource.ValidateResourceId(id);
- return new PostgreSqlFlexibleServerFirewallRuleResource(client, id);
- }
- );
- }
- #endregion
-
- #region PostgreSqlFlexibleServerResource
- ///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
- ///
- /// The instance the method will execute against.
- /// The resource ID of the resource to get.
- /// Returns a object.
- public static PostgreSqlFlexibleServerResource GetPostgreSqlFlexibleServerResource(this ArmClient client, ResourceIdentifier id)
- {
- return client.GetResourceClient(() =>
- {
- PostgreSqlFlexibleServerResource.ValidateResourceId(id);
- return new PostgreSqlFlexibleServerResource(client, id);
- }
- );
- }
- #endregion
}
}
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Extensions/SubscriptionResourceExtensionClient.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Extensions/SubscriptionResourceExtensionClient.cs
index 23a517b29fe20..285f63d9003f5 100644
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Extensions/SubscriptionResourceExtensionClient.cs
+++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Extensions/SubscriptionResourceExtensionClient.cs
@@ -19,14 +19,12 @@ namespace Azure.ResourceManager.PostgreSql.FlexibleServers
/// A class to add extension methods to SubscriptionResource.
internal partial class SubscriptionResourceExtensionClient : ArmResource
{
- private ClientDiagnostics _locationBasedCapabilitiesClientDiagnostics;
- private LocationBasedCapabilitiesRestOperations _locationBasedCapabilitiesRestClient;
- private ClientDiagnostics _checkNameAvailabilityClientDiagnostics;
- private CheckNameAvailabilityRestOperations _checkNameAvailabilityRestClient;
- private ClientDiagnostics _checkNameAvailabilityWithLocationClientDiagnostics;
- private CheckNameAvailabilityWithLocationRestOperations _checkNameAvailabilityWithLocationRestClient;
private ClientDiagnostics _postgreSqlFlexibleServerServersClientDiagnostics;
private ServersRestOperations _postgreSqlFlexibleServerServersRestClient;
+ private ClientDiagnostics _checkNameAvailabilityClientDiagnostics;
+ private CheckNameAvailabilityRestOperations _checkNameAvailabilityRestClient;
+ private ClientDiagnostics _locationBasedCapabilitiesClientDiagnostics;
+ private LocationBasedCapabilitiesRestOperations _locationBasedCapabilitiesRestClient;
private ClientDiagnostics _virtualNetworkSubnetUsageClientDiagnostics;
private VirtualNetworkSubnetUsageRestOperations _virtualNetworkSubnetUsageRestClient;
@@ -42,14 +40,12 @@ internal SubscriptionResourceExtensionClient(ArmClient client, ResourceIdentifie
{
}
- private ClientDiagnostics LocationBasedCapabilitiesClientDiagnostics => _locationBasedCapabilitiesClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.PostgreSql.FlexibleServers", ProviderConstants.DefaultProviderNamespace, Diagnostics);
- private LocationBasedCapabilitiesRestOperations LocationBasedCapabilitiesRestClient => _locationBasedCapabilitiesRestClient ??= new LocationBasedCapabilitiesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint);
- private ClientDiagnostics CheckNameAvailabilityClientDiagnostics => _checkNameAvailabilityClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.PostgreSql.FlexibleServers", ProviderConstants.DefaultProviderNamespace, Diagnostics);
- private CheckNameAvailabilityRestOperations CheckNameAvailabilityRestClient => _checkNameAvailabilityRestClient ??= new CheckNameAvailabilityRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint);
- private ClientDiagnostics CheckNameAvailabilityWithLocationClientDiagnostics => _checkNameAvailabilityWithLocationClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.PostgreSql.FlexibleServers", ProviderConstants.DefaultProviderNamespace, Diagnostics);
- private CheckNameAvailabilityWithLocationRestOperations CheckNameAvailabilityWithLocationRestClient => _checkNameAvailabilityWithLocationRestClient ??= new CheckNameAvailabilityWithLocationRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint);
private ClientDiagnostics PostgreSqlFlexibleServerServersClientDiagnostics => _postgreSqlFlexibleServerServersClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.PostgreSql.FlexibleServers", PostgreSqlFlexibleServerResource.ResourceType.Namespace, Diagnostics);
private ServersRestOperations PostgreSqlFlexibleServerServersRestClient => _postgreSqlFlexibleServerServersRestClient ??= new ServersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(PostgreSqlFlexibleServerResource.ResourceType));
+ private ClientDiagnostics CheckNameAvailabilityClientDiagnostics => _checkNameAvailabilityClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.PostgreSql.FlexibleServers", ProviderConstants.DefaultProviderNamespace, Diagnostics);
+ private CheckNameAvailabilityRestOperations CheckNameAvailabilityRestClient => _checkNameAvailabilityRestClient ??= new CheckNameAvailabilityRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint);
+ private ClientDiagnostics LocationBasedCapabilitiesClientDiagnostics => _locationBasedCapabilitiesClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.PostgreSql.FlexibleServers", ProviderConstants.DefaultProviderNamespace, Diagnostics);
+ private LocationBasedCapabilitiesRestOperations LocationBasedCapabilitiesRestClient => _locationBasedCapabilitiesRestClient ??= new LocationBasedCapabilitiesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint);
private ClientDiagnostics VirtualNetworkSubnetUsageClientDiagnostics => _virtualNetworkSubnetUsageClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.PostgreSql.FlexibleServers", ProviderConstants.DefaultProviderNamespace, Diagnostics);
private VirtualNetworkSubnetUsageRestOperations VirtualNetworkSubnetUsageRestClient => _virtualNetworkSubnetUsageRestClient ??= new VirtualNetworkSubnetUsageRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint);
@@ -60,49 +56,47 @@ private string GetApiVersionOrNull(ResourceType resourceType)
}
///
- /// Get capabilities at specified location in a given subscription.
+ /// List all the servers in a given subscription.
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/capabilities
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/flexibleServers
///
/// -
/// Operation Id
- /// LocationBasedCapabilities_Execute
+ /// Servers_List
///
///
///
- /// The name of the location.
/// The cancellation token to use.
- /// An async collection of that may take multiple service requests to iterate over.
- public virtual AsyncPageable ExecuteLocationBasedCapabilitiesAsync(AzureLocation locationName, CancellationToken cancellationToken = default)
+ /// An async collection of that may take multiple service requests to iterate over.
+ public virtual AsyncPageable GetPostgreSqlFlexibleServersAsync(CancellationToken cancellationToken = default)
{
- HttpMessage FirstPageRequest(int? pageSizeHint) => LocationBasedCapabilitiesRestClient.CreateExecuteRequest(Id.SubscriptionId, locationName);
- HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => LocationBasedCapabilitiesRestClient.CreateExecuteNextPageRequest(nextLink, Id.SubscriptionId, locationName);
- return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, PostgreSqlFlexibleServerCapabilityProperties.DeserializePostgreSqlFlexibleServerCapabilityProperties, LocationBasedCapabilitiesClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.ExecuteLocationBasedCapabilities", "value", "nextLink", cancellationToken);
+ HttpMessage FirstPageRequest(int? pageSizeHint) => PostgreSqlFlexibleServerServersRestClient.CreateListRequest(Id.SubscriptionId);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => PostgreSqlFlexibleServerServersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId);
+ return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new PostgreSqlFlexibleServerResource(Client, PostgreSqlFlexibleServerData.DeserializePostgreSqlFlexibleServerData(e)), PostgreSqlFlexibleServerServersClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetPostgreSqlFlexibleServers", "value", "nextLink", cancellationToken);
}
///
- /// Get capabilities at specified location in a given subscription.
+ /// List all the servers in a given subscription.
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/capabilities
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/flexibleServers
///
/// -
/// Operation Id
- /// LocationBasedCapabilities_Execute
+ /// Servers_List
///
///
///
- /// The name of the location.
/// The cancellation token to use.
- /// A collection of that may take multiple service requests to iterate over.
- public virtual Pageable ExecuteLocationBasedCapabilities(AzureLocation locationName, CancellationToken cancellationToken = default)
+ /// A collection of that may take multiple service requests to iterate over.
+ public virtual Pageable GetPostgreSqlFlexibleServers(CancellationToken cancellationToken = default)
{
- HttpMessage FirstPageRequest(int? pageSizeHint) => LocationBasedCapabilitiesRestClient.CreateExecuteRequest(Id.SubscriptionId, locationName);
- HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => LocationBasedCapabilitiesRestClient.CreateExecuteNextPageRequest(nextLink, Id.SubscriptionId, locationName);
- return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, PostgreSqlFlexibleServerCapabilityProperties.DeserializePostgreSqlFlexibleServerCapabilityProperties, LocationBasedCapabilitiesClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.ExecuteLocationBasedCapabilities", "value", "nextLink", cancellationToken);
+ HttpMessage FirstPageRequest(int? pageSizeHint) => PostgreSqlFlexibleServerServersRestClient.CreateListRequest(Id.SubscriptionId);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => PostgreSqlFlexibleServerServersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId);
+ return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new PostgreSqlFlexibleServerResource(Client, PostgreSqlFlexibleServerData.DeserializePostgreSqlFlexibleServerData(e)), PostgreSqlFlexibleServerServersClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetPostgreSqlFlexibleServers", "value", "nextLink", cancellationToken);
}
///
@@ -118,15 +112,15 @@ public virtual Pageable ExecuteLoc
///
///
///
- /// The required parameters for checking if resource name is available.
+ /// The required parameters for checking if resource name is available.
/// The cancellation token to use.
- public virtual async Task> CheckPostgreSqlFlexibleServerNameAvailabilityAsync(PostgreSqlFlexibleServerNameAvailabilityRequest nameAvailabilityRequest, CancellationToken cancellationToken = default)
+ public virtual async Task> CheckPostgreSqlFlexibleServerNameAvailabilityAsync(PostgreSqlFlexibleServerNameAvailabilityContent content, CancellationToken cancellationToken = default)
{
using var scope = CheckNameAvailabilityClientDiagnostics.CreateScope("SubscriptionResourceExtensionClient.CheckPostgreSqlFlexibleServerNameAvailability");
scope.Start();
try
{
- var response = await CheckNameAvailabilityRestClient.ExecuteAsync(Id.SubscriptionId, nameAvailabilityRequest, cancellationToken).ConfigureAwait(false);
+ var response = await CheckNameAvailabilityRestClient.ExecuteAsync(Id.SubscriptionId, content, cancellationToken).ConfigureAwait(false);
return response;
}
catch (Exception e)
@@ -149,15 +143,15 @@ public virtual async Task
///
///
- /// The required parameters for checking if resource name is available.
+ /// The required parameters for checking if resource name is available.
/// The cancellation token to use.
- public virtual Response CheckPostgreSqlFlexibleServerNameAvailability(PostgreSqlFlexibleServerNameAvailabilityRequest nameAvailabilityRequest, CancellationToken cancellationToken = default)
+ public virtual Response CheckPostgreSqlFlexibleServerNameAvailability(PostgreSqlFlexibleServerNameAvailabilityContent content, CancellationToken cancellationToken = default)
{
using var scope = CheckNameAvailabilityClientDiagnostics.CreateScope("SubscriptionResourceExtensionClient.CheckPostgreSqlFlexibleServerNameAvailability");
scope.Start();
try
{
- var response = CheckNameAvailabilityRestClient.Execute(Id.SubscriptionId, nameAvailabilityRequest, cancellationToken);
+ var response = CheckNameAvailabilityRestClient.Execute(Id.SubscriptionId, content, cancellationToken);
return response;
}
catch (Exception e)
@@ -168,111 +162,49 @@ public virtual Response CheckPos
}
///
- /// Check the availability of name for resource
+ /// Get capabilities at specified location in a given subscription.
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/checkNameAvailability
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/capabilities
///
/// -
/// Operation Id
- /// CheckNameAvailabilityWithLocation_Execute
+ /// LocationBasedCapabilities_Execute
///
///
///
/// The name of the location.
- /// The required parameters for checking if resource name is available.
/// The cancellation token to use.
- public virtual async Task> CheckPostgreSqlFlexibleServerNameAvailabilityWithLocationAsync(AzureLocation locationName, PostgreSqlFlexibleServerNameAvailabilityRequest nameAvailabilityRequest, CancellationToken cancellationToken = default)
+ /// An async collection of that may take multiple service requests to iterate over.
+ public virtual AsyncPageable ExecuteLocationBasedCapabilitiesAsync(AzureLocation locationName, CancellationToken cancellationToken = default)
{
- using var scope = CheckNameAvailabilityWithLocationClientDiagnostics.CreateScope("SubscriptionResourceExtensionClient.CheckPostgreSqlFlexibleServerNameAvailabilityWithLocation");
- scope.Start();
- try
- {
- var response = await CheckNameAvailabilityWithLocationRestClient.ExecuteAsync(Id.SubscriptionId, locationName, nameAvailabilityRequest, cancellationToken).ConfigureAwait(false);
- return response;
- }
- catch (Exception e)
- {
- scope.Failed(e);
- throw;
- }
+ HttpMessage FirstPageRequest(int? pageSizeHint) => LocationBasedCapabilitiesRestClient.CreateExecuteRequest(Id.SubscriptionId, locationName);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => LocationBasedCapabilitiesRestClient.CreateExecuteNextPageRequest(nextLink, Id.SubscriptionId, locationName);
+ return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, PostgreSqlFlexibleServerCapabilityProperties.DeserializePostgreSqlFlexibleServerCapabilityProperties, LocationBasedCapabilitiesClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.ExecuteLocationBasedCapabilities", "value", "nextLink", cancellationToken);
}
///
- /// Check the availability of name for resource
+ /// Get capabilities at specified location in a given subscription.
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/checkNameAvailability
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/capabilities
///
/// -
/// Operation Id
- /// CheckNameAvailabilityWithLocation_Execute
+ /// LocationBasedCapabilities_Execute
///
///
///
/// The name of the location.
- /// The required parameters for checking if resource name is available.
- /// The cancellation token to use.
- public virtual Response CheckPostgreSqlFlexibleServerNameAvailabilityWithLocation(AzureLocation locationName, PostgreSqlFlexibleServerNameAvailabilityRequest nameAvailabilityRequest, CancellationToken cancellationToken = default)
- {
- using var scope = CheckNameAvailabilityWithLocationClientDiagnostics.CreateScope("SubscriptionResourceExtensionClient.CheckPostgreSqlFlexibleServerNameAvailabilityWithLocation");
- scope.Start();
- try
- {
- var response = CheckNameAvailabilityWithLocationRestClient.Execute(Id.SubscriptionId, locationName, nameAvailabilityRequest, cancellationToken);
- return response;
- }
- catch (Exception e)
- {
- scope.Failed(e);
- throw;
- }
- }
-
- ///
- /// List all the servers in a given subscription.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/flexibleServers
- ///
- /// -
- /// Operation Id
- /// Servers_List
- ///
- ///
- ///
/// The cancellation token to use.
- /// An async collection of that may take multiple service requests to iterate over.
- public virtual AsyncPageable GetPostgreSqlFlexibleServersAsync(CancellationToken cancellationToken = default)
- {
- HttpMessage FirstPageRequest(int? pageSizeHint) => PostgreSqlFlexibleServerServersRestClient.CreateListRequest(Id.SubscriptionId);
- HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => PostgreSqlFlexibleServerServersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId);
- return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new PostgreSqlFlexibleServerResource(Client, PostgreSqlFlexibleServerData.DeserializePostgreSqlFlexibleServerData(e)), PostgreSqlFlexibleServerServersClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetPostgreSqlFlexibleServers", "value", "nextLink", cancellationToken);
- }
-
- ///
- /// List all the servers in a given subscription.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/flexibleServers
- ///
- /// -
- /// Operation Id
- /// Servers_List
- ///
- ///
- ///
- /// The cancellation token to use.
- /// A collection of that may take multiple service requests to iterate over.
- public virtual Pageable GetPostgreSqlFlexibleServers(CancellationToken cancellationToken = default)
+ /// A collection of that may take multiple service requests to iterate over.
+ public virtual Pageable ExecuteLocationBasedCapabilities(AzureLocation locationName, CancellationToken cancellationToken = default)
{
- HttpMessage FirstPageRequest(int? pageSizeHint) => PostgreSqlFlexibleServerServersRestClient.CreateListRequest(Id.SubscriptionId);
- HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => PostgreSqlFlexibleServerServersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId);
- return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new PostgreSqlFlexibleServerResource(Client, PostgreSqlFlexibleServerData.DeserializePostgreSqlFlexibleServerData(e)), PostgreSqlFlexibleServerServersClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetPostgreSqlFlexibleServers", "value", "nextLink", cancellationToken);
+ HttpMessage FirstPageRequest(int? pageSizeHint) => LocationBasedCapabilitiesRestClient.CreateExecuteRequest(Id.SubscriptionId, locationName);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => LocationBasedCapabilitiesRestClient.CreateExecuteNextPageRequest(nextLink, Id.SubscriptionId, locationName);
+ return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, PostgreSqlFlexibleServerCapabilityProperties.DeserializePostgreSqlFlexibleServerCapabilityProperties, LocationBasedCapabilitiesClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.ExecuteLocationBasedCapabilities", "value", "nextLink", cancellationToken);
}
///
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/LongRunningOperation/PostgreSqlFlexibleServerActiveDirectoryAdministratorOperationSource.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/LongRunningOperation/PostgreSqlFlexibleServerActiveDirectoryAdministratorOperationSource.cs
deleted file mode 100644
index 4f08998f65891..0000000000000
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/LongRunningOperation/PostgreSqlFlexibleServerActiveDirectoryAdministratorOperationSource.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System.Text.Json;
-using System.Threading;
-using System.Threading.Tasks;
-using Azure;
-using Azure.Core;
-using Azure.ResourceManager;
-
-namespace Azure.ResourceManager.PostgreSql.FlexibleServers
-{
- internal class PostgreSqlFlexibleServerActiveDirectoryAdministratorOperationSource : IOperationSource
- {
- private readonly ArmClient _client;
-
- internal PostgreSqlFlexibleServerActiveDirectoryAdministratorOperationSource(ArmClient client)
- {
- _client = client;
- }
-
- PostgreSqlFlexibleServerActiveDirectoryAdministratorResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken)
- {
- using var document = JsonDocument.Parse(response.ContentStream);
- var data = PostgreSqlFlexibleServerActiveDirectoryAdministratorData.DeserializePostgreSqlFlexibleServerActiveDirectoryAdministratorData(document.RootElement);
- return new PostgreSqlFlexibleServerActiveDirectoryAdministratorResource(_client, data);
- }
-
- async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken)
- {
- using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false);
- var data = PostgreSqlFlexibleServerActiveDirectoryAdministratorData.DeserializePostgreSqlFlexibleServerActiveDirectoryAdministratorData(document.RootElement);
- return new PostgreSqlFlexibleServerActiveDirectoryAdministratorResource(_client, data);
- }
- }
-}
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerActiveDirectoryAdministratorCreateOrUpdateContent.Serialization.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerActiveDirectoryAdministratorCreateOrUpdateContent.Serialization.cs
deleted file mode 100644
index 2c9f1a8c3b523..0000000000000
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerActiveDirectoryAdministratorCreateOrUpdateContent.Serialization.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System.Text.Json;
-using Azure.Core;
-
-namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models
-{
- public partial class PostgreSqlFlexibleServerActiveDirectoryAdministratorCreateOrUpdateContent : IUtf8JsonSerializable
- {
- void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
- {
- writer.WriteStartObject();
- writer.WritePropertyName("properties");
- writer.WriteStartObject();
- if (Optional.IsDefined(PrincipalType))
- {
- writer.WritePropertyName("principalType");
- writer.WriteStringValue(PrincipalType.Value.ToString());
- }
- if (Optional.IsDefined(PrincipalName))
- {
- writer.WritePropertyName("principalName");
- writer.WriteStringValue(PrincipalName);
- }
- if (Optional.IsDefined(TenantId))
- {
- writer.WritePropertyName("tenantId");
- writer.WriteStringValue(TenantId.Value);
- }
- writer.WriteEndObject();
- writer.WriteEndObject();
- }
- }
-}
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerActiveDirectoryAdministratorCreateOrUpdateContent.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerActiveDirectoryAdministratorCreateOrUpdateContent.cs
deleted file mode 100644
index dc32d166ca0d0..0000000000000
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerActiveDirectoryAdministratorCreateOrUpdateContent.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-
-namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models
-{
- /// Represents an Active Directory administrator.
- public partial class PostgreSqlFlexibleServerActiveDirectoryAdministratorCreateOrUpdateContent
- {
- /// Initializes a new instance of PostgreSqlFlexibleServerActiveDirectoryAdministratorCreateOrUpdateContent.
- public PostgreSqlFlexibleServerActiveDirectoryAdministratorCreateOrUpdateContent()
- {
- }
-
- /// The principal type used to represent the type of Active Directory Administrator.
- public PostgreSqlFlexibleServerPrincipalType? PrincipalType { get; set; }
- /// Active Directory administrator principal name.
- public string PrincipalName { get; set; }
- /// The tenantId of the Active Directory administrator.
- public Guid? TenantId { get; set; }
- }
-}
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerActiveDirectoryAdministratorData.Serialization.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerActiveDirectoryAdministratorData.Serialization.cs
deleted file mode 100644
index c4c0650d71a3a..0000000000000
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerActiveDirectoryAdministratorData.Serialization.cs
+++ /dev/null
@@ -1,135 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.Text.Json;
-using Azure.Core;
-using Azure.ResourceManager.Models;
-using Azure.ResourceManager.PostgreSql.FlexibleServers.Models;
-
-namespace Azure.ResourceManager.PostgreSql.FlexibleServers
-{
- public partial class PostgreSqlFlexibleServerActiveDirectoryAdministratorData : IUtf8JsonSerializable
- {
- void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
- {
- writer.WriteStartObject();
- writer.WritePropertyName("properties");
- writer.WriteStartObject();
- if (Optional.IsDefined(PrincipalType))
- {
- writer.WritePropertyName("principalType");
- writer.WriteStringValue(PrincipalType.Value.ToString());
- }
- if (Optional.IsDefined(PrincipalName))
- {
- writer.WritePropertyName("principalName");
- writer.WriteStringValue(PrincipalName);
- }
- if (Optional.IsDefined(ObjectId))
- {
- writer.WritePropertyName("objectId");
- writer.WriteStringValue(ObjectId.Value);
- }
- if (Optional.IsDefined(TenantId))
- {
- writer.WritePropertyName("tenantId");
- writer.WriteStringValue(TenantId.Value);
- }
- writer.WriteEndObject();
- writer.WriteEndObject();
- }
-
- internal static PostgreSqlFlexibleServerActiveDirectoryAdministratorData DeserializePostgreSqlFlexibleServerActiveDirectoryAdministratorData(JsonElement element)
- {
- ResourceIdentifier id = default;
- string name = default;
- ResourceType type = default;
- Optional systemData = default;
- Optional principalType = default;
- Optional principalName = default;
- Optional objectId = default;
- Optional tenantId = default;
- foreach (var property in element.EnumerateObject())
- {
- if (property.NameEquals("id"))
- {
- id = new ResourceIdentifier(property.Value.GetString());
- continue;
- }
- if (property.NameEquals("name"))
- {
- name = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("type"))
- {
- type = new ResourceType(property.Value.GetString());
- continue;
- }
- if (property.NameEquals("systemData"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- systemData = JsonSerializer.Deserialize(property.Value.GetRawText());
- continue;
- }
- if (property.NameEquals("properties"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- foreach (var property0 in property.Value.EnumerateObject())
- {
- if (property0.NameEquals("principalType"))
- {
- if (property0.Value.ValueKind == JsonValueKind.Null)
- {
- property0.ThrowNonNullablePropertyIsNull();
- continue;
- }
- principalType = new PostgreSqlFlexibleServerPrincipalType(property0.Value.GetString());
- continue;
- }
- if (property0.NameEquals("principalName"))
- {
- principalName = property0.Value.GetString();
- continue;
- }
- if (property0.NameEquals("objectId"))
- {
- if (property0.Value.ValueKind == JsonValueKind.Null)
- {
- property0.ThrowNonNullablePropertyIsNull();
- continue;
- }
- objectId = property0.Value.GetGuid();
- continue;
- }
- if (property0.NameEquals("tenantId"))
- {
- if (property0.Value.ValueKind == JsonValueKind.Null)
- {
- property0.ThrowNonNullablePropertyIsNull();
- continue;
- }
- tenantId = property0.Value.GetGuid();
- continue;
- }
- }
- continue;
- }
- }
- return new PostgreSqlFlexibleServerActiveDirectoryAdministratorData(id, name, type, systemData.Value, Optional.ToNullable(principalType), principalName.Value, Optional.ToNullable(objectId), Optional.ToNullable(tenantId));
- }
- }
-}
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerActiveDirectoryAuthEnum.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerActiveDirectoryAuthEnum.cs
deleted file mode 100644
index 98b95a03301a9..0000000000000
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerActiveDirectoryAuthEnum.cs
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ComponentModel;
-
-namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models
-{
- /// If Enabled, Azure Active Directory authentication is enabled.
- public readonly partial struct PostgreSqlFlexibleServerActiveDirectoryAuthEnum : IEquatable
- {
- private readonly string _value;
-
- /// Initializes a new instance of .
- /// is null.
- public PostgreSqlFlexibleServerActiveDirectoryAuthEnum(string value)
- {
- _value = value ?? throw new ArgumentNullException(nameof(value));
- }
-
- private const string EnabledValue = "Enabled";
- private const string DisabledValue = "Disabled";
-
- /// Enabled.
- public static PostgreSqlFlexibleServerActiveDirectoryAuthEnum Enabled { get; } = new PostgreSqlFlexibleServerActiveDirectoryAuthEnum(EnabledValue);
- /// Disabled.
- public static PostgreSqlFlexibleServerActiveDirectoryAuthEnum Disabled { get; } = new PostgreSqlFlexibleServerActiveDirectoryAuthEnum(DisabledValue);
- /// Determines if two values are the same.
- public static bool operator ==(PostgreSqlFlexibleServerActiveDirectoryAuthEnum left, PostgreSqlFlexibleServerActiveDirectoryAuthEnum right) => left.Equals(right);
- /// Determines if two values are not the same.
- public static bool operator !=(PostgreSqlFlexibleServerActiveDirectoryAuthEnum left, PostgreSqlFlexibleServerActiveDirectoryAuthEnum right) => !left.Equals(right);
- /// Converts a string to a .
- public static implicit operator PostgreSqlFlexibleServerActiveDirectoryAuthEnum(string value) => new PostgreSqlFlexibleServerActiveDirectoryAuthEnum(value);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override bool Equals(object obj) => obj is PostgreSqlFlexibleServerActiveDirectoryAuthEnum other && Equals(other);
- ///
- public bool Equals(PostgreSqlFlexibleServerActiveDirectoryAuthEnum other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override int GetHashCode() => _value?.GetHashCode() ?? 0;
- ///
- public override string ToString() => _value;
- }
-}
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerAdministratorListResult.Serialization.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerAdministratorListResult.Serialization.cs
deleted file mode 100644
index f1516198d75cb..0000000000000
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerAdministratorListResult.Serialization.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System.Collections.Generic;
-using System.Text.Json;
-using Azure.Core;
-using Azure.ResourceManager.PostgreSql.FlexibleServers;
-
-namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models
-{
- internal partial class PostgreSqlFlexibleServerAdministratorListResult
- {
- internal static PostgreSqlFlexibleServerAdministratorListResult DeserializePostgreSqlFlexibleServerAdministratorListResult(JsonElement element)
- {
- Optional> value = default;
- Optional nextLink = default;
- foreach (var property in element.EnumerateObject())
- {
- if (property.NameEquals("value"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- List array = new List();
- foreach (var item in property.Value.EnumerateArray())
- {
- array.Add(PostgreSqlFlexibleServerActiveDirectoryAdministratorData.DeserializePostgreSqlFlexibleServerActiveDirectoryAdministratorData(item));
- }
- value = array;
- continue;
- }
- if (property.NameEquals("nextLink"))
- {
- nextLink = property.Value.GetString();
- continue;
- }
- }
- return new PostgreSqlFlexibleServerAdministratorListResult(Optional.ToList(value), nextLink.Value);
- }
- }
-}
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerAdministratorListResult.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerAdministratorListResult.cs
deleted file mode 100644
index fbff1b6b5d920..0000000000000
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerAdministratorListResult.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System.Collections.Generic;
-using Azure.Core;
-using Azure.ResourceManager.PostgreSql.FlexibleServers;
-
-namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models
-{
- /// A list of active directory administrators.
- internal partial class PostgreSqlFlexibleServerAdministratorListResult
- {
- /// Initializes a new instance of PostgreSqlFlexibleServerAdministratorListResult.
- internal PostgreSqlFlexibleServerAdministratorListResult()
- {
- Value = new ChangeTrackingList();
- }
-
- /// Initializes a new instance of PostgreSqlFlexibleServerAdministratorListResult.
- /// The list of active directory administrators.
- /// The link used to get the next page of active directory.
- internal PostgreSqlFlexibleServerAdministratorListResult(IReadOnlyList value, string nextLink)
- {
- Value = value;
- NextLink = nextLink;
- }
-
- /// The list of active directory administrators.
- public IReadOnlyList Value { get; }
- /// The link used to get the next page of active directory.
- public string NextLink { get; }
- }
-}
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerAuthConfig.Serialization.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerAuthConfig.Serialization.cs
deleted file mode 100644
index 7c051ee2530e0..0000000000000
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerAuthConfig.Serialization.cs
+++ /dev/null
@@ -1,78 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.Text.Json;
-using Azure.Core;
-
-namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models
-{
- public partial class PostgreSqlFlexibleServerAuthConfig : IUtf8JsonSerializable
- {
- void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
- {
- writer.WriteStartObject();
- if (Optional.IsDefined(ActiveDirectoryAuth))
- {
- writer.WritePropertyName("activeDirectoryAuth");
- writer.WriteStringValue(ActiveDirectoryAuth.Value.ToString());
- }
- if (Optional.IsDefined(PasswordAuth))
- {
- writer.WritePropertyName("passwordAuth");
- writer.WriteStringValue(PasswordAuth.Value.ToString());
- }
- if (Optional.IsDefined(TenantId))
- {
- writer.WritePropertyName("tenantId");
- writer.WriteStringValue(TenantId.Value);
- }
- writer.WriteEndObject();
- }
-
- internal static PostgreSqlFlexibleServerAuthConfig DeserializePostgreSqlFlexibleServerAuthConfig(JsonElement element)
- {
- Optional activeDirectoryAuth = default;
- Optional passwordAuth = default;
- Optional tenantId = default;
- foreach (var property in element.EnumerateObject())
- {
- if (property.NameEquals("activeDirectoryAuth"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- activeDirectoryAuth = new PostgreSqlFlexibleServerActiveDirectoryAuthEnum(property.Value.GetString());
- continue;
- }
- if (property.NameEquals("passwordAuth"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- passwordAuth = new PostgreSqlFlexibleServerPasswordAuthEnum(property.Value.GetString());
- continue;
- }
- if (property.NameEquals("tenantId"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- tenantId = property.Value.GetGuid();
- continue;
- }
- }
- return new PostgreSqlFlexibleServerAuthConfig(Optional.ToNullable(activeDirectoryAuth), Optional.ToNullable(passwordAuth), Optional.ToNullable(tenantId));
- }
- }
-}
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerAuthConfig.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerAuthConfig.cs
deleted file mode 100644
index 880c641551ddc..0000000000000
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerAuthConfig.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-
-namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models
-{
- /// Authentication configuration properties of a server.
- public partial class PostgreSqlFlexibleServerAuthConfig
- {
- /// Initializes a new instance of PostgreSqlFlexibleServerAuthConfig.
- public PostgreSqlFlexibleServerAuthConfig()
- {
- }
-
- /// Initializes a new instance of PostgreSqlFlexibleServerAuthConfig.
- /// If Enabled, Azure Active Directory authentication is enabled.
- /// If Enabled, Password authentication is enabled.
- /// Tenant id of the server.
- internal PostgreSqlFlexibleServerAuthConfig(PostgreSqlFlexibleServerActiveDirectoryAuthEnum? activeDirectoryAuth, PostgreSqlFlexibleServerPasswordAuthEnum? passwordAuth, Guid? tenantId)
- {
- ActiveDirectoryAuth = activeDirectoryAuth;
- PasswordAuth = passwordAuth;
- TenantId = tenantId;
- }
-
- /// If Enabled, Azure Active Directory authentication is enabled.
- public PostgreSqlFlexibleServerActiveDirectoryAuthEnum? ActiveDirectoryAuth { get; set; }
- /// If Enabled, Password authentication is enabled.
- public PostgreSqlFlexibleServerPasswordAuthEnum? PasswordAuth { get; set; }
- /// Tenant id of the server.
- public Guid? TenantId { get; set; }
- }
-}
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerBackupData.Serialization.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerBackupData.Serialization.cs
deleted file mode 100644
index faa98bc946876..0000000000000
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerBackupData.Serialization.cs
+++ /dev/null
@@ -1,119 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.Text.Json;
-using Azure.Core;
-using Azure.ResourceManager.Models;
-using Azure.ResourceManager.PostgreSql.FlexibleServers.Models;
-
-namespace Azure.ResourceManager.PostgreSql.FlexibleServers
-{
- public partial class PostgreSqlFlexibleServerBackupData : IUtf8JsonSerializable
- {
- void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
- {
- writer.WriteStartObject();
- writer.WritePropertyName("properties");
- writer.WriteStartObject();
- if (Optional.IsDefined(BackupType))
- {
- writer.WritePropertyName("backupType");
- writer.WriteStringValue(BackupType.Value.ToString());
- }
- if (Optional.IsDefined(CompletedOn))
- {
- writer.WritePropertyName("completedTime");
- writer.WriteStringValue(CompletedOn.Value, "O");
- }
- if (Optional.IsDefined(Source))
- {
- writer.WritePropertyName("source");
- writer.WriteStringValue(Source);
- }
- writer.WriteEndObject();
- writer.WriteEndObject();
- }
-
- internal static PostgreSqlFlexibleServerBackupData DeserializePostgreSqlFlexibleServerBackupData(JsonElement element)
- {
- ResourceIdentifier id = default;
- string name = default;
- ResourceType type = default;
- Optional systemData = default;
- Optional backupType = default;
- Optional completedTime = default;
- Optional source = default;
- foreach (var property in element.EnumerateObject())
- {
- if (property.NameEquals("id"))
- {
- id = new ResourceIdentifier(property.Value.GetString());
- continue;
- }
- if (property.NameEquals("name"))
- {
- name = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("type"))
- {
- type = new ResourceType(property.Value.GetString());
- continue;
- }
- if (property.NameEquals("systemData"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- systemData = JsonSerializer.Deserialize(property.Value.GetRawText());
- continue;
- }
- if (property.NameEquals("properties"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- foreach (var property0 in property.Value.EnumerateObject())
- {
- if (property0.NameEquals("backupType"))
- {
- if (property0.Value.ValueKind == JsonValueKind.Null)
- {
- property0.ThrowNonNullablePropertyIsNull();
- continue;
- }
- backupType = new PostgreSqlFlexibleServerBackupOrigin(property0.Value.GetString());
- continue;
- }
- if (property0.NameEquals("completedTime"))
- {
- if (property0.Value.ValueKind == JsonValueKind.Null)
- {
- property0.ThrowNonNullablePropertyIsNull();
- continue;
- }
- completedTime = property0.Value.GetDateTimeOffset("O");
- continue;
- }
- if (property0.NameEquals("source"))
- {
- source = property0.Value.GetString();
- continue;
- }
- }
- continue;
- }
- }
- return new PostgreSqlFlexibleServerBackupData(id, name, type, systemData.Value, Optional.ToNullable(backupType), Optional.ToNullable(completedTime), source.Value);
- }
- }
-}
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerBackupListResult.Serialization.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerBackupListResult.Serialization.cs
deleted file mode 100644
index f97dec13c29c9..0000000000000
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerBackupListResult.Serialization.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System.Collections.Generic;
-using System.Text.Json;
-using Azure.Core;
-using Azure.ResourceManager.PostgreSql.FlexibleServers;
-
-namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models
-{
- internal partial class PostgreSqlFlexibleServerBackupListResult
- {
- internal static PostgreSqlFlexibleServerBackupListResult DeserializePostgreSqlFlexibleServerBackupListResult(JsonElement element)
- {
- Optional> value = default;
- Optional nextLink = default;
- foreach (var property in element.EnumerateObject())
- {
- if (property.NameEquals("value"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- List array = new List();
- foreach (var item in property.Value.EnumerateArray())
- {
- array.Add(PostgreSqlFlexibleServerBackupData.DeserializePostgreSqlFlexibleServerBackupData(item));
- }
- value = array;
- continue;
- }
- if (property.NameEquals("nextLink"))
- {
- nextLink = property.Value.GetString();
- continue;
- }
- }
- return new PostgreSqlFlexibleServerBackupListResult(Optional.ToList(value), nextLink.Value);
- }
- }
-}
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerBackupListResult.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerBackupListResult.cs
deleted file mode 100644
index cd74433d7f90d..0000000000000
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerBackupListResult.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System.Collections.Generic;
-using Azure.Core;
-using Azure.ResourceManager.PostgreSql.FlexibleServers;
-
-namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models
-{
- /// A list of server backups.
- internal partial class PostgreSqlFlexibleServerBackupListResult
- {
- /// Initializes a new instance of PostgreSqlFlexibleServerBackupListResult.
- internal PostgreSqlFlexibleServerBackupListResult()
- {
- Value = new ChangeTrackingList();
- }
-
- /// Initializes a new instance of PostgreSqlFlexibleServerBackupListResult.
- /// The list of backups of a server.
- /// The link used to get the next page of operations.
- internal PostgreSqlFlexibleServerBackupListResult(IReadOnlyList value, string nextLink)
- {
- Value = value;
- NextLink = nextLink;
- }
-
- /// The list of backups of a server.
- public IReadOnlyList Value { get; }
- /// The link used to get the next page of operations.
- public string NextLink { get; }
- }
-}
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerBackupOrigin.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerBackupOrigin.cs
deleted file mode 100644
index aeb9acc3c6764..0000000000000
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerBackupOrigin.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ComponentModel;
-
-namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models
-{
- /// Backup type.
- public readonly partial struct PostgreSqlFlexibleServerBackupOrigin : IEquatable
- {
- private readonly string _value;
-
- /// Initializes a new instance of .
- /// is null.
- public PostgreSqlFlexibleServerBackupOrigin(string value)
- {
- _value = value ?? throw new ArgumentNullException(nameof(value));
- }
-
- private const string FullValue = "Full";
-
- /// Full.
- public static PostgreSqlFlexibleServerBackupOrigin Full { get; } = new PostgreSqlFlexibleServerBackupOrigin(FullValue);
- /// Determines if two values are the same.
- public static bool operator ==(PostgreSqlFlexibleServerBackupOrigin left, PostgreSqlFlexibleServerBackupOrigin right) => left.Equals(right);
- /// Determines if two values are not the same.
- public static bool operator !=(PostgreSqlFlexibleServerBackupOrigin left, PostgreSqlFlexibleServerBackupOrigin right) => !left.Equals(right);
- /// Converts a string to a .
- public static implicit operator PostgreSqlFlexibleServerBackupOrigin(string value) => new PostgreSqlFlexibleServerBackupOrigin(value);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override bool Equals(object obj) => obj is PostgreSqlFlexibleServerBackupOrigin other && Equals(other);
- ///
- public bool Equals(PostgreSqlFlexibleServerBackupOrigin other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override int GetHashCode() => _value?.GetHashCode() ?? 0;
- ///
- public override string ToString() => _value;
- }
-}
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerCapabilityProperties.Serialization.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerCapabilityProperties.Serialization.cs
index d39045325bee2..0a30e61b16e77 100644
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerCapabilityProperties.Serialization.cs
+++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerCapabilityProperties.Serialization.cs
@@ -16,14 +16,12 @@ public partial class PostgreSqlFlexibleServerCapabilityProperties
internal static PostgreSqlFlexibleServerCapabilityProperties DeserializePostgreSqlFlexibleServerCapabilityProperties(JsonElement element)
{
Optional zone = default;
- Optional> supportedHAMode = default;
Optional geoBackupSupported = default;
Optional zoneRedundantHaSupported = default;
Optional zoneRedundantHaAndGeoBackupSupported = default;
Optional> supportedFlexibleServerEditions = default;
Optional> supportedHyperscaleNodeEditions = default;
- Optional fastProvisioningSupported = default;
- Optional> supportedFastProvisioningEditions = default;
+ Optional> supportedHAMode = default;
Optional status = default;
foreach (var property in element.EnumerateObject())
{
@@ -32,21 +30,6 @@ internal static PostgreSqlFlexibleServerCapabilityProperties DeserializePostgreS
zone = property.Value.GetString();
continue;
}
- if (property.NameEquals("supportedHAMode"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- List array = new List();
- foreach (var item in property.Value.EnumerateArray())
- {
- array.Add(item.GetString());
- }
- supportedHAMode = array;
- continue;
- }
if (property.NameEquals("geoBackupSupported"))
{
if (property.Value.ValueKind == JsonValueKind.Null)
@@ -107,29 +90,19 @@ internal static PostgreSqlFlexibleServerCapabilityProperties DeserializePostgreS
supportedHyperscaleNodeEditions = array;
continue;
}
- if (property.NameEquals("fastProvisioningSupported"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- fastProvisioningSupported = property.Value.GetBoolean();
- continue;
- }
- if (property.NameEquals("supportedFastProvisioningEditions"))
+ if (property.NameEquals("supportedHAMode"))
{
if (property.Value.ValueKind == JsonValueKind.Null)
{
property.ThrowNonNullablePropertyIsNull();
continue;
}
- List array = new List();
+ List array = new List();
foreach (var item in property.Value.EnumerateArray())
{
- array.Add(PostgreSqlFlexibleServerFastProvisioningEditionCapability.DeserializePostgreSqlFlexibleServerFastProvisioningEditionCapability(item));
+ array.Add(item.GetString());
}
- supportedFastProvisioningEditions = array;
+ supportedHAMode = array;
continue;
}
if (property.NameEquals("status"))
@@ -138,7 +111,7 @@ internal static PostgreSqlFlexibleServerCapabilityProperties DeserializePostgreS
continue;
}
}
- return new PostgreSqlFlexibleServerCapabilityProperties(zone.Value, Optional.ToList(supportedHAMode), Optional.ToNullable(geoBackupSupported), Optional.ToNullable(zoneRedundantHaSupported), Optional.ToNullable(zoneRedundantHaAndGeoBackupSupported), Optional.ToList(supportedFlexibleServerEditions), Optional.ToList(supportedHyperscaleNodeEditions), Optional.ToNullable(fastProvisioningSupported), Optional.ToList(supportedFastProvisioningEditions), status.Value);
+ return new PostgreSqlFlexibleServerCapabilityProperties(zone.Value, Optional.ToNullable(geoBackupSupported), Optional.ToNullable(zoneRedundantHaSupported), Optional.ToNullable(zoneRedundantHaAndGeoBackupSupported), Optional.ToList(supportedFlexibleServerEditions), Optional.ToList(supportedHyperscaleNodeEditions), Optional.ToList(supportedHAMode), status.Value);
}
}
}
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerCapabilityProperties.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerCapabilityProperties.cs
index 0360d2d26e522..acd098e30f176 100644
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerCapabilityProperties.cs
+++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerCapabilityProperties.cs
@@ -16,41 +16,34 @@ public partial class PostgreSqlFlexibleServerCapabilityProperties
/// Initializes a new instance of PostgreSqlFlexibleServerCapabilityProperties.
internal PostgreSqlFlexibleServerCapabilityProperties()
{
- SupportedHAModes = new ChangeTrackingList();
SupportedFlexibleServerEditions = new ChangeTrackingList();
SupportedHyperscaleNodeEditions = new ChangeTrackingList();
- SupportedFastProvisioningEditions = new ChangeTrackingList();
+ SupportedHAModes = new ChangeTrackingList();
}
/// Initializes a new instance of PostgreSqlFlexibleServerCapabilityProperties.
/// zone name.
- /// Supported high availability mode.
/// A value indicating whether a new server in this region can have geo-backups to paired region.
/// A value indicating whether a new server in this region can support multi zone HA.
/// A value indicating whether a new server in this region can have geo-backups to paired region.
///
///
- /// A value indicating whether fast provisioning is supported in this region.
- ///
+ /// Supported high availability mode.
/// The status.
- internal PostgreSqlFlexibleServerCapabilityProperties(string zone, IReadOnlyList supportedHAModes, bool? isGeoBackupSupported, bool? isZoneRedundantHASupported, bool? isZoneRedundantHAAndGeoBackupSupported, IReadOnlyList supportedFlexibleServerEditions, IReadOnlyList supportedHyperscaleNodeEditions, bool? fastProvisioningSupported, IReadOnlyList supportedFastProvisioningEditions, string status)
+ internal PostgreSqlFlexibleServerCapabilityProperties(string zone, bool? isGeoBackupSupported, bool? isZoneRedundantHASupported, bool? isZoneRedundantHAAndGeoBackupSupported, IReadOnlyList supportedFlexibleServerEditions, IReadOnlyList supportedHyperscaleNodeEditions, IReadOnlyList supportedHAModes, string status)
{
Zone = zone;
- SupportedHAModes = supportedHAModes;
IsGeoBackupSupported = isGeoBackupSupported;
IsZoneRedundantHASupported = isZoneRedundantHASupported;
IsZoneRedundantHAAndGeoBackupSupported = isZoneRedundantHAAndGeoBackupSupported;
SupportedFlexibleServerEditions = supportedFlexibleServerEditions;
SupportedHyperscaleNodeEditions = supportedHyperscaleNodeEditions;
- FastProvisioningSupported = fastProvisioningSupported;
- SupportedFastProvisioningEditions = supportedFastProvisioningEditions;
+ SupportedHAModes = supportedHAModes;
Status = status;
}
/// zone name.
public string Zone { get; }
- /// Supported high availability mode.
- public IReadOnlyList SupportedHAModes { get; }
/// A value indicating whether a new server in this region can have geo-backups to paired region.
public bool? IsGeoBackupSupported { get; }
/// A value indicating whether a new server in this region can support multi zone HA.
@@ -61,10 +54,8 @@ internal PostgreSqlFlexibleServerCapabilityProperties(string zone, IReadOnlyList
public IReadOnlyList SupportedFlexibleServerEditions { get; }
/// Gets the supported hyperscale node editions.
public IReadOnlyList SupportedHyperscaleNodeEditions { get; }
- /// A value indicating whether fast provisioning is supported in this region.
- public bool? FastProvisioningSupported { get; }
- /// Gets the supported fast provisioning editions.
- public IReadOnlyList SupportedFastProvisioningEditions { get; }
+ /// Supported high availability mode.
+ public IReadOnlyList SupportedHAModes { get; }
/// The status.
public string Status { get; }
}
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerConfigurationPatch.Serialization.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerConfigurationPatch.Serialization.cs
deleted file mode 100644
index 3963e9d49c494..0000000000000
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerConfigurationPatch.Serialization.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System.Text.Json;
-using Azure.Core;
-
-namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models
-{
- public partial class PostgreSqlFlexibleServerConfigurationPatch : IUtf8JsonSerializable
- {
- void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
- {
- writer.WriteStartObject();
- writer.WritePropertyName("properties");
- writer.WriteStartObject();
- if (Optional.IsDefined(Value))
- {
- writer.WritePropertyName("value");
- writer.WriteStringValue(Value);
- }
- if (Optional.IsDefined(Source))
- {
- writer.WritePropertyName("source");
- writer.WriteStringValue(Source);
- }
- writer.WriteEndObject();
- writer.WriteEndObject();
- }
- }
-}
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerConfigurationPatch.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerConfigurationPatch.cs
deleted file mode 100644
index e3e19f6d15623..0000000000000
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerConfigurationPatch.cs
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models
-{
- /// Represents a Configuration.
- public partial class PostgreSqlFlexibleServerConfigurationPatch
- {
- /// Initializes a new instance of PostgreSqlFlexibleServerConfigurationPatch.
- public PostgreSqlFlexibleServerConfigurationPatch()
- {
- }
-
- /// Value of the configuration.
- public string Value { get; set; }
- /// Description of the configuration.
- public string Description { get; }
- /// Default value of the configuration.
- public string DefaultValue { get; }
- /// Data type of the configuration.
- public PostgreSqlFlexibleServerConfigurationDataType? DataType { get; }
- /// Allowed values of the configuration.
- public string AllowedValues { get; }
- /// Source of the configuration.
- public string Source { get; set; }
- /// Configuration dynamic or static.
- public bool? IsDynamicConfig { get; }
- /// Configuration read-only or not.
- public bool? IsReadOnly { get; }
- /// Configuration is pending restart or not.
- public bool? IsConfigPendingRestart { get; }
- /// Configuration unit.
- public string Unit { get; }
- /// Configuration documentation link.
- public string DocumentationLink { get; }
- }
-}
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerCreateMode.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerCreateMode.cs
index 022f97533a958..b02ab9df1e742 100644
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerCreateMode.cs
+++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerCreateMode.cs
@@ -26,8 +26,6 @@ public PostgreSqlFlexibleServerCreateMode(string value)
private const string CreateValue = "Create";
private const string UpdateValue = "Update";
private const string PointInTimeRestoreValue = "PointInTimeRestore";
- private const string GeoRestoreValue = "GeoRestore";
- private const string ReplicaValue = "Replica";
/// Default.
public static PostgreSqlFlexibleServerCreateMode Default { get; } = new PostgreSqlFlexibleServerCreateMode(DefaultValue);
@@ -37,10 +35,6 @@ public PostgreSqlFlexibleServerCreateMode(string value)
public static PostgreSqlFlexibleServerCreateMode Update { get; } = new PostgreSqlFlexibleServerCreateMode(UpdateValue);
/// PointInTimeRestore.
public static PostgreSqlFlexibleServerCreateMode PointInTimeRestore { get; } = new PostgreSqlFlexibleServerCreateMode(PointInTimeRestoreValue);
- /// GeoRestore.
- public static PostgreSqlFlexibleServerCreateMode GeoRestore { get; } = new PostgreSqlFlexibleServerCreateMode(GeoRestoreValue);
- /// Replica.
- public static PostgreSqlFlexibleServerCreateMode Replica { get; } = new PostgreSqlFlexibleServerCreateMode(ReplicaValue);
/// Determines if two values are the same.
public static bool operator ==(PostgreSqlFlexibleServerCreateMode left, PostgreSqlFlexibleServerCreateMode right) => left.Equals(right);
/// Determines if two values are not the same.
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerData.Serialization.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerData.Serialization.cs
index 8829aa19548d7..a9867ecbfe08f 100644
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerData.Serialization.cs
+++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerData.Serialization.cs
@@ -24,11 +24,6 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
writer.WritePropertyName("sku");
writer.WriteObjectValue(Sku);
}
- if (Optional.IsDefined(Identity))
- {
- writer.WritePropertyName("identity");
- writer.WriteObjectValue(Identity);
- }
if (Optional.IsCollectionDefined(Tags))
{
writer.WritePropertyName("tags");
@@ -64,16 +59,6 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
writer.WritePropertyName("storage");
writer.WriteObjectValue(Storage);
}
- if (Optional.IsDefined(AuthConfig))
- {
- writer.WritePropertyName("authConfig");
- writer.WriteObjectValue(AuthConfig);
- }
- if (Optional.IsDefined(DataEncryption))
- {
- writer.WritePropertyName("dataEncryption");
- writer.WriteObjectValue(DataEncryption);
- }
if (Optional.IsDefined(Backup))
{
writer.WritePropertyName("backup");
@@ -109,16 +94,6 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
writer.WritePropertyName("availabilityZone");
writer.WriteStringValue(AvailabilityZone);
}
- if (Optional.IsDefined(ReplicationRole))
- {
- writer.WritePropertyName("replicationRole");
- writer.WriteStringValue(ReplicationRole.Value.ToString());
- }
- if (Optional.IsDefined(ReplicaCapacity))
- {
- writer.WritePropertyName("replicaCapacity");
- writer.WriteNumberValue(ReplicaCapacity.Value);
- }
if (Optional.IsDefined(CreateMode))
{
writer.WritePropertyName("createMode");
@@ -131,7 +106,6 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
internal static PostgreSqlFlexibleServerData DeserializePostgreSqlFlexibleServerData(JsonElement element)
{
Optional sku = default;
- Optional identity = default;
Optional> tags = default;
AzureLocation location = default;
ResourceIdentifier id = default;
@@ -145,8 +119,6 @@ internal static PostgreSqlFlexibleServerData DeserializePostgreSqlFlexibleServer
Optional state = default;
Optional fullyQualifiedDomainName = default;
Optional storage = default;
- Optional authConfig = default;
- Optional dataEncryption = default;
Optional backup = default;
Optional network = default;
Optional highAvailability = default;
@@ -154,8 +126,6 @@ internal static PostgreSqlFlexibleServerData DeserializePostgreSqlFlexibleServer
Optional sourceServerResourceId = default;
Optional pointInTimeUTC = default;
Optional availabilityZone = default;
- Optional replicationRole = default;
- Optional replicaCapacity = default;
Optional createMode = default;
foreach (var property in element.EnumerateObject())
{
@@ -169,16 +139,6 @@ internal static PostgreSqlFlexibleServerData DeserializePostgreSqlFlexibleServer
sku = PostgreSqlFlexibleServerSku.DeserializePostgreSqlFlexibleServerSku(property.Value);
continue;
}
- if (property.NameEquals("identity"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- identity = PostgreSqlFlexibleServerUserAssignedIdentity.DeserializePostgreSqlFlexibleServerUserAssignedIdentity(property.Value);
- continue;
- }
if (property.NameEquals("tags"))
{
if (property.Value.ValueKind == JsonValueKind.Null)
@@ -283,26 +243,6 @@ internal static PostgreSqlFlexibleServerData DeserializePostgreSqlFlexibleServer
storage = PostgreSqlFlexibleServerStorage.DeserializePostgreSqlFlexibleServerStorage(property0.Value);
continue;
}
- if (property0.NameEquals("authConfig"))
- {
- if (property0.Value.ValueKind == JsonValueKind.Null)
- {
- property0.ThrowNonNullablePropertyIsNull();
- continue;
- }
- authConfig = PostgreSqlFlexibleServerAuthConfig.DeserializePostgreSqlFlexibleServerAuthConfig(property0.Value);
- continue;
- }
- if (property0.NameEquals("dataEncryption"))
- {
- if (property0.Value.ValueKind == JsonValueKind.Null)
- {
- property0.ThrowNonNullablePropertyIsNull();
- continue;
- }
- dataEncryption = PostgreSqlFlexibleServerDataEncryption.DeserializePostgreSqlFlexibleServerDataEncryption(property0.Value);
- continue;
- }
if (property0.NameEquals("backup"))
{
if (property0.Value.ValueKind == JsonValueKind.Null)
@@ -368,26 +308,6 @@ internal static PostgreSqlFlexibleServerData DeserializePostgreSqlFlexibleServer
availabilityZone = property0.Value.GetString();
continue;
}
- if (property0.NameEquals("replicationRole"))
- {
- if (property0.Value.ValueKind == JsonValueKind.Null)
- {
- property0.ThrowNonNullablePropertyIsNull();
- continue;
- }
- replicationRole = new PostgreSqlFlexibleServerReplicationRole(property0.Value.GetString());
- continue;
- }
- if (property0.NameEquals("replicaCapacity"))
- {
- if (property0.Value.ValueKind == JsonValueKind.Null)
- {
- property0.ThrowNonNullablePropertyIsNull();
- continue;
- }
- replicaCapacity = property0.Value.GetInt32();
- continue;
- }
if (property0.NameEquals("createMode"))
{
if (property0.Value.ValueKind == JsonValueKind.Null)
@@ -402,7 +322,7 @@ internal static PostgreSqlFlexibleServerData DeserializePostgreSqlFlexibleServer
continue;
}
}
- return new PostgreSqlFlexibleServerData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, sku.Value, identity.Value, administratorLogin.Value, administratorLoginPassword.Value, Optional.ToNullable(version), minorVersion.Value, Optional.ToNullable(state), fullyQualifiedDomainName.Value, storage.Value, authConfig.Value, dataEncryption.Value, backup.Value, network.Value, highAvailability.Value, maintenanceWindow.Value, sourceServerResourceId.Value, Optional.ToNullable(pointInTimeUTC), availabilityZone.Value, Optional.ToNullable(replicationRole), Optional.ToNullable(replicaCapacity), Optional.ToNullable(createMode));
+ return new PostgreSqlFlexibleServerData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, sku.Value, administratorLogin.Value, administratorLoginPassword.Value, Optional.ToNullable(version), minorVersion.Value, Optional.ToNullable(state), fullyQualifiedDomainName.Value, storage.Value, backup.Value, network.Value, highAvailability.Value, maintenanceWindow.Value, sourceServerResourceId.Value, Optional.ToNullable(pointInTimeUTC), availabilityZone.Value, Optional.ToNullable(createMode));
}
}
}
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerDataEncryption.Serialization.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerDataEncryption.Serialization.cs
deleted file mode 100644
index 55685e5a1236c..0000000000000
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerDataEncryption.Serialization.cs
+++ /dev/null
@@ -1,78 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.Text.Json;
-using Azure.Core;
-
-namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models
-{
- public partial class PostgreSqlFlexibleServerDataEncryption : IUtf8JsonSerializable
- {
- void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
- {
- writer.WriteStartObject();
- if (Optional.IsDefined(PrimaryKeyUri))
- {
- writer.WritePropertyName("primaryKeyURI");
- writer.WriteStringValue(PrimaryKeyUri.AbsoluteUri);
- }
- if (Optional.IsDefined(PrimaryUserAssignedIdentityId))
- {
- writer.WritePropertyName("primaryUserAssignedIdentityId");
- writer.WriteStringValue(PrimaryUserAssignedIdentityId);
- }
- if (Optional.IsDefined(KeyType))
- {
- writer.WritePropertyName("type");
- writer.WriteStringValue(KeyType.Value.ToString());
- }
- writer.WriteEndObject();
- }
-
- internal static PostgreSqlFlexibleServerDataEncryption DeserializePostgreSqlFlexibleServerDataEncryption(JsonElement element)
- {
- Optional primaryKeyUri = default;
- Optional primaryUserAssignedIdentityId = default;
- Optional type = default;
- foreach (var property in element.EnumerateObject())
- {
- if (property.NameEquals("primaryKeyURI"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- primaryKeyUri = null;
- continue;
- }
- primaryKeyUri = new Uri(property.Value.GetString());
- continue;
- }
- if (property.NameEquals("primaryUserAssignedIdentityId"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- primaryUserAssignedIdentityId = new ResourceIdentifier(property.Value.GetString());
- continue;
- }
- if (property.NameEquals("type"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- type = new PostgreSqlFlexibleServerKeyType(property.Value.GetString());
- continue;
- }
- }
- return new PostgreSqlFlexibleServerDataEncryption(primaryKeyUri.Value, primaryUserAssignedIdentityId.Value, Optional.ToNullable(type));
- }
- }
-}
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
deleted file mode 100644
index 365884adabb4e..0000000000000
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerDataEncryption.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using Azure.Core;
-
-namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models
-{
- /// Data encryption properties of a server.
- public partial class PostgreSqlFlexibleServerDataEncryption
- {
- /// Initializes a new instance of PostgreSqlFlexibleServerDataEncryption.
- 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.
- internal PostgreSqlFlexibleServerDataEncryption(Uri primaryKeyUri, ResourceIdentifier primaryUserAssignedIdentityId, PostgreSqlFlexibleServerKeyType? keyType)
- {
- PrimaryKeyUri = primaryKeyUri;
- PrimaryUserAssignedIdentityId = primaryUserAssignedIdentityId;
- KeyType = keyType;
- }
-
- /// URI for the key for data encryption for primary server.
- 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.
- public PostgreSqlFlexibleServerKeyType? KeyType { get; set; }
- }
-}
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerDatabaseListResult.Serialization.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerDatabaseListResult.Serialization.cs
index ca7537d6da0e7..7cf0e47febbff 100644
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerDatabaseListResult.Serialization.cs
+++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerDatabaseListResult.Serialization.cs
@@ -5,7 +5,6 @@
#nullable disable
-using System;
using System.Collections.Generic;
using System.Text.Json;
using Azure.Core;
@@ -18,7 +17,7 @@ internal partial class PostgreSqlFlexibleServerDatabaseListResult
internal static PostgreSqlFlexibleServerDatabaseListResult DeserializePostgreSqlFlexibleServerDatabaseListResult(JsonElement element)
{
Optional> value = default;
- Optional nextLink = default;
+ Optional nextLink = default;
foreach (var property in element.EnumerateObject())
{
if (property.NameEquals("value"))
@@ -38,12 +37,7 @@ internal static PostgreSqlFlexibleServerDatabaseListResult DeserializePostgreSql
}
if (property.NameEquals("nextLink"))
{
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- nextLink = null;
- continue;
- }
- nextLink = new Uri(property.Value.GetString());
+ nextLink = property.Value.GetString();
continue;
}
}
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerDatabaseListResult.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerDatabaseListResult.cs
index 3a6eb87812c8d..df76c67a84cec 100644
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerDatabaseListResult.cs
+++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerDatabaseListResult.cs
@@ -5,7 +5,6 @@
#nullable disable
-using System;
using System.Collections.Generic;
using Azure.Core;
using Azure.ResourceManager.PostgreSql.FlexibleServers;
@@ -24,7 +23,7 @@ internal PostgreSqlFlexibleServerDatabaseListResult()
/// Initializes a new instance of PostgreSqlFlexibleServerDatabaseListResult.
/// The list of databases housed in a server.
/// The link used to get the next page of databases.
- internal PostgreSqlFlexibleServerDatabaseListResult(IReadOnlyList value, Uri nextLink)
+ internal PostgreSqlFlexibleServerDatabaseListResult(IReadOnlyList value, string nextLink)
{
Value = value;
NextLink = nextLink;
@@ -33,6 +32,6 @@ internal PostgreSqlFlexibleServerDatabaseListResult(IReadOnlyList The list of databases housed in a server.
public IReadOnlyList Value { get; }
/// The link used to get the next page of databases.
- public Uri NextLink { get; }
+ public string NextLink { get; }
}
}
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerDelegatedSubnetUsage.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerDelegatedSubnetUsage.cs
index 7b5793ea0b088..ed5aaf4debbd1 100644
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerDelegatedSubnetUsage.cs
+++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerDelegatedSubnetUsage.cs
@@ -16,17 +16,17 @@ internal PostgreSqlFlexibleServerDelegatedSubnetUsage()
}
/// Initializes a new instance of PostgreSqlFlexibleServerDelegatedSubnetUsage.
- /// Name of the delegated subnet for which IP addresses are in use.
- /// Number of IP addresses used by the delegated subnet.
+ /// name of the subnet.
+ /// Number of used delegated subnets.
internal PostgreSqlFlexibleServerDelegatedSubnetUsage(string subnetName, long? usage)
{
SubnetName = subnetName;
Usage = usage;
}
- /// Name of the delegated subnet for which IP addresses are in use.
+ /// name of the subnet.
public string SubnetName { get; }
- /// Number of IP addresses used by the delegated subnet.
+ /// Number of used delegated subnets.
public long? Usage { get; }
}
}
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerFastProvisioningEditionCapability.Serialization.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerFastProvisioningEditionCapability.Serialization.cs
deleted file mode 100644
index 964682433dac6..0000000000000
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerFastProvisioningEditionCapability.Serialization.cs
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System.Text.Json;
-using Azure.Core;
-
-namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models
-{
- public partial class PostgreSqlFlexibleServerFastProvisioningEditionCapability
- {
- internal static PostgreSqlFlexibleServerFastProvisioningEditionCapability DeserializePostgreSqlFlexibleServerFastProvisioningEditionCapability(JsonElement element)
- {
- Optional supportedSku = default;
- Optional supportedStorageGb = default;
- Optional supportedServerVersions = default;
- foreach (var property in element.EnumerateObject())
- {
- if (property.NameEquals("supportedSku"))
- {
- supportedSku = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("supportedStorageGb"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- supportedStorageGb = property.Value.GetInt64();
- continue;
- }
- if (property.NameEquals("supportedServerVersions"))
- {
- supportedServerVersions = property.Value.GetString();
- continue;
- }
- }
- return new PostgreSqlFlexibleServerFastProvisioningEditionCapability(supportedSku.Value, Optional.ToNullable(supportedStorageGb), supportedServerVersions.Value);
- }
- }
-}
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerFastProvisioningEditionCapability.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerFastProvisioningEditionCapability.cs
deleted file mode 100644
index 79de28eb1b316..0000000000000
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerFastProvisioningEditionCapability.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models
-{
- /// The PostgreSqlFlexibleServerFastProvisioningEditionCapability.
- public partial class PostgreSqlFlexibleServerFastProvisioningEditionCapability
- {
- /// Initializes a new instance of PostgreSqlFlexibleServerFastProvisioningEditionCapability.
- internal PostgreSqlFlexibleServerFastProvisioningEditionCapability()
- {
- }
-
- /// Initializes a new instance of PostgreSqlFlexibleServerFastProvisioningEditionCapability.
- /// Fast provisioning supported sku name.
- /// Fast provisioning supported storage in Gb.
- /// Fast provisioning supported version.
- internal PostgreSqlFlexibleServerFastProvisioningEditionCapability(string supportedSku, long? supportedStorageGb, string supportedServerVersions)
- {
- SupportedSku = supportedSku;
- SupportedStorageGb = supportedStorageGb;
- SupportedServerVersions = supportedServerVersions;
- }
-
- /// Fast provisioning supported sku name.
- public string SupportedSku { get; }
- /// Fast provisioning supported storage in Gb.
- public long? SupportedStorageGb { get; }
- /// Fast provisioning supported version.
- public string SupportedServerVersions { get; }
- }
-}
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerHighAvailabilityMode.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerHighAvailabilityMode.cs
index 6712d3df7f2e0..6d7b7918e41ef 100644
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerHighAvailabilityMode.cs
+++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerHighAvailabilityMode.cs
@@ -24,14 +24,11 @@ public PostgreSqlFlexibleServerHighAvailabilityMode(string value)
private const string DisabledValue = "Disabled";
private const string ZoneRedundantValue = "ZoneRedundant";
- private const string SameZoneValue = "SameZone";
/// Disabled.
public static PostgreSqlFlexibleServerHighAvailabilityMode Disabled { get; } = new PostgreSqlFlexibleServerHighAvailabilityMode(DisabledValue);
/// ZoneRedundant.
public static PostgreSqlFlexibleServerHighAvailabilityMode ZoneRedundant { get; } = new PostgreSqlFlexibleServerHighAvailabilityMode(ZoneRedundantValue);
- /// SameZone.
- public static PostgreSqlFlexibleServerHighAvailabilityMode SameZone { get; } = new PostgreSqlFlexibleServerHighAvailabilityMode(SameZoneValue);
/// Determines if two values are the same.
public static bool operator ==(PostgreSqlFlexibleServerHighAvailabilityMode left, PostgreSqlFlexibleServerHighAvailabilityMode right) => left.Equals(right);
/// Determines if two values are not the same.
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
deleted file mode 100644
index fdc200e8082c5..0000000000000
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerIdentityType.cs
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ComponentModel;
-
-namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models
-{
- /// the types of identities associated with this resource; currently restricted to 'SystemAssigned and UserAssigned'.
- public readonly partial struct PostgreSqlFlexibleServerIdentityType : IEquatable
- {
- private readonly string _value;
-
- /// Initializes a new instance of .
- /// is null.
- public PostgreSqlFlexibleServerIdentityType(string value)
- {
- _value = value ?? throw new ArgumentNullException(nameof(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.
- public static bool operator ==(PostgreSqlFlexibleServerIdentityType left, PostgreSqlFlexibleServerIdentityType right) => left.Equals(right);
- /// Determines if two values are not the same.
- public static bool operator !=(PostgreSqlFlexibleServerIdentityType left, PostgreSqlFlexibleServerIdentityType right) => !left.Equals(right);
- /// Converts a string to a .
- public static implicit operator PostgreSqlFlexibleServerIdentityType(string value) => new PostgreSqlFlexibleServerIdentityType(value);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override bool Equals(object obj) => obj is PostgreSqlFlexibleServerIdentityType other && Equals(other);
- ///
- public bool Equals(PostgreSqlFlexibleServerIdentityType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override int GetHashCode() => _value?.GetHashCode() ?? 0;
- ///
- public override string ToString() => _value;
- }
-}
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
deleted file mode 100644
index 4c2c933963e9d..0000000000000
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerKeyType.cs
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ComponentModel;
-
-namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models
-{
- /// Data encryption type to depict if it is System assigned vs Azure Key vault.
- public readonly partial struct PostgreSqlFlexibleServerKeyType : IEquatable
- {
- private readonly string _value;
-
- /// Initializes a new instance of .
- /// is null.
- public PostgreSqlFlexibleServerKeyType(string value)
- {
- _value = value ?? throw new ArgumentNullException(nameof(value));
- }
-
- private const string SystemAssignedValue = "SystemAssigned";
- private const string AzureKeyVaultValue = "AzureKeyVault";
-
- /// SystemAssigned.
- public static PostgreSqlFlexibleServerKeyType SystemAssigned { get; } = new PostgreSqlFlexibleServerKeyType(SystemAssignedValue);
- /// AzureKeyVault.
- public static PostgreSqlFlexibleServerKeyType AzureKeyVault { get; } = new PostgreSqlFlexibleServerKeyType(AzureKeyVaultValue);
- /// Determines if two values are the same.
- public static bool operator ==(PostgreSqlFlexibleServerKeyType left, PostgreSqlFlexibleServerKeyType right) => left.Equals(right);
- /// Determines if two values are not the same.
- public static bool operator !=(PostgreSqlFlexibleServerKeyType left, PostgreSqlFlexibleServerKeyType right) => !left.Equals(right);
- /// Converts a string to a .
- public static implicit operator PostgreSqlFlexibleServerKeyType(string value) => new PostgreSqlFlexibleServerKeyType(value);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override bool Equals(object obj) => obj is PostgreSqlFlexibleServerKeyType other && Equals(other);
- ///
- public bool Equals(PostgreSqlFlexibleServerKeyType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override int GetHashCode() => _value?.GetHashCode() ?? 0;
- ///
- public override string ToString() => _value;
- }
-}
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerNameAvailabilityRequest.Serialization.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerNameAvailabilityContent.Serialization.cs
similarity index 77%
rename from sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerNameAvailabilityRequest.Serialization.cs
rename to sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerNameAvailabilityContent.Serialization.cs
index b02b87882261b..47a6a28bba9b4 100644
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerNameAvailabilityRequest.Serialization.cs
+++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerNameAvailabilityContent.Serialization.cs
@@ -10,16 +10,13 @@
namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models
{
- public partial class PostgreSqlFlexibleServerNameAvailabilityRequest : IUtf8JsonSerializable
+ public partial class PostgreSqlFlexibleServerNameAvailabilityContent : IUtf8JsonSerializable
{
void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
{
writer.WriteStartObject();
- if (Optional.IsDefined(Name))
- {
- writer.WritePropertyName("name");
- writer.WriteStringValue(Name);
- }
+ writer.WritePropertyName("name");
+ writer.WriteStringValue(Name);
if (Optional.IsDefined(ResourceType))
{
writer.WritePropertyName("type");
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerNameAvailabilityContent.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerNameAvailabilityContent.cs
new file mode 100644
index 0000000000000..4994084103a73
--- /dev/null
+++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerNameAvailabilityContent.cs
@@ -0,0 +1,31 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using Azure.Core;
+
+namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models
+{
+ /// Request from client to check resource name availability.
+ public partial class PostgreSqlFlexibleServerNameAvailabilityContent
+ {
+ /// Initializes a new instance of PostgreSqlFlexibleServerNameAvailabilityContent.
+ /// Resource name to verify.
+ /// is null.
+ public PostgreSqlFlexibleServerNameAvailabilityContent(string name)
+ {
+ Argument.AssertNotNull(name, nameof(name));
+
+ Name = name;
+ }
+
+ /// Resource name to verify.
+ public string Name { get; }
+ /// Resource type used for verification.
+ public ResourceType? ResourceType { get; set; }
+ }
+}
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerNameAvailabilityRequest.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerNameAvailabilityRequest.cs
deleted file mode 100644
index 9138a56fec3df..0000000000000
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerNameAvailabilityRequest.cs
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using Azure.Core;
-
-namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models
-{
- /// The check availability request body.
- public partial class PostgreSqlFlexibleServerNameAvailabilityRequest
- {
- /// Initializes a new instance of PostgreSqlFlexibleServerNameAvailabilityRequest.
- public PostgreSqlFlexibleServerNameAvailabilityRequest()
- {
- }
-
- /// The name of the resource for which availability needs to be checked.
- public string Name { get; set; }
- /// The resource type.
- public ResourceType? ResourceType { get; set; }
- }
-}
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerNameAvailabilityResponse.Serialization.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerNameAvailabilityResponse.Serialization.cs
deleted file mode 100644
index 8ba4f19569e4b..0000000000000
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerNameAvailabilityResponse.Serialization.cs
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System.Text.Json;
-using Azure.Core;
-
-namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models
-{
- public partial class PostgreSqlFlexibleServerNameAvailabilityResponse
- {
- internal static PostgreSqlFlexibleServerNameAvailabilityResponse DeserializePostgreSqlFlexibleServerNameAvailabilityResponse(JsonElement element)
- {
- Optional nameAvailable = default;
- Optional reason = default;
- Optional message = default;
- foreach (var property in element.EnumerateObject())
- {
- if (property.NameEquals("nameAvailable"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- nameAvailable = property.Value.GetBoolean();
- continue;
- }
- if (property.NameEquals("reason"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- reason = new PostgreSqlFlexibleServerNameUnavailableReason(property.Value.GetString());
- continue;
- }
- if (property.NameEquals("message"))
- {
- message = property.Value.GetString();
- continue;
- }
- }
- return new PostgreSqlFlexibleServerNameAvailabilityResponse(Optional.ToNullable(nameAvailable), Optional.ToNullable(reason), message.Value);
- }
- }
-}
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerNameAvailabilityResponse.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerNameAvailabilityResponse.cs
deleted file mode 100644
index 76592fb706eb8..0000000000000
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerNameAvailabilityResponse.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models
-{
- /// The check availability result.
- public partial class PostgreSqlFlexibleServerNameAvailabilityResponse
- {
- /// Initializes a new instance of PostgreSqlFlexibleServerNameAvailabilityResponse.
- internal PostgreSqlFlexibleServerNameAvailabilityResponse()
- {
- }
-
- /// Initializes a new instance of PostgreSqlFlexibleServerNameAvailabilityResponse.
- /// Indicates if the resource name is available.
- /// The reason why the given name is not available.
- /// Detailed reason why the given name is available.
- internal PostgreSqlFlexibleServerNameAvailabilityResponse(bool? isNameAvailable, PostgreSqlFlexibleServerNameUnavailableReason? reason, string message)
- {
- IsNameAvailable = isNameAvailable;
- Reason = reason;
- Message = message;
- }
-
- /// Indicates if the resource name is available.
- public bool? IsNameAvailable { get; }
- /// The reason why the given name is not available.
- public PostgreSqlFlexibleServerNameUnavailableReason? Reason { get; }
- /// Detailed reason why the given name is available.
- public string Message { get; }
- }
-}
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerNameAvailabilityResult.Serialization.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerNameAvailabilityResult.Serialization.cs
index 053ca5ecbb0af..f809801c2baf0 100644
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerNameAvailabilityResult.Serialization.cs
+++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerNameAvailabilityResult.Serialization.cs
@@ -14,36 +14,41 @@ public partial class PostgreSqlFlexibleServerNameAvailabilityResult
{
internal static PostgreSqlFlexibleServerNameAvailabilityResult DeserializePostgreSqlFlexibleServerNameAvailabilityResult(JsonElement element)
{
+ Optional message = default;
+ Optional nameAvailable = default;
Optional name = default;
Optional type = default;
- Optional nameAvailable = default;
Optional reason = default;
- Optional message = default;
foreach (var property in element.EnumerateObject())
{
- if (property.NameEquals("name"))
+ if (property.NameEquals("message"))
{
- name = property.Value.GetString();
+ message = property.Value.GetString();
continue;
}
- if (property.NameEquals("type"))
+ if (property.NameEquals("nameAvailable"))
{
if (property.Value.ValueKind == JsonValueKind.Null)
{
property.ThrowNonNullablePropertyIsNull();
continue;
}
- type = new ResourceType(property.Value.GetString());
+ nameAvailable = property.Value.GetBoolean();
continue;
}
- if (property.NameEquals("nameAvailable"))
+ if (property.NameEquals("name"))
+ {
+ name = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("type"))
{
if (property.Value.ValueKind == JsonValueKind.Null)
{
property.ThrowNonNullablePropertyIsNull();
continue;
}
- nameAvailable = property.Value.GetBoolean();
+ type = new ResourceType(property.Value.GetString());
continue;
}
if (property.NameEquals("reason"))
@@ -56,13 +61,8 @@ internal static PostgreSqlFlexibleServerNameAvailabilityResult DeserializePostgr
reason = new PostgreSqlFlexibleServerNameUnavailableReason(property.Value.GetString());
continue;
}
- if (property.NameEquals("message"))
- {
- message = property.Value.GetString();
- continue;
- }
}
- return new PostgreSqlFlexibleServerNameAvailabilityResult(Optional.ToNullable(nameAvailable), Optional.ToNullable(reason), message.Value, name.Value, Optional.ToNullable(type));
+ return new PostgreSqlFlexibleServerNameAvailabilityResult(message.Value, Optional.ToNullable(nameAvailable), name.Value, Optional.ToNullable(type), Optional.ToNullable(reason));
}
}
}
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerNameAvailabilityResult.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerNameAvailabilityResult.cs
index 8c70e2cd00c93..ece99abd896b8 100644
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerNameAvailabilityResult.cs
+++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerNameAvailabilityResult.cs
@@ -10,7 +10,7 @@
namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models
{
/// Represents a resource name availability.
- public partial class PostgreSqlFlexibleServerNameAvailabilityResult : PostgreSqlFlexibleServerNameAvailabilityResponse
+ public partial class PostgreSqlFlexibleServerNameAvailabilityResult
{
/// Initializes a new instance of PostgreSqlFlexibleServerNameAvailabilityResult.
internal PostgreSqlFlexibleServerNameAvailabilityResult()
@@ -18,20 +18,29 @@ internal PostgreSqlFlexibleServerNameAvailabilityResult()
}
/// Initializes a new instance of PostgreSqlFlexibleServerNameAvailabilityResult.
- /// Indicates if the resource name is available.
- /// The reason why the given name is not available.
- /// Detailed reason why the given name is available.
+ /// Error Message.
+ /// Indicates whether the resource name is available.
/// name of the PostgreSQL server.
/// type of the server.
- internal PostgreSqlFlexibleServerNameAvailabilityResult(bool? isNameAvailable, PostgreSqlFlexibleServerNameUnavailableReason? reason, string message, string name, ResourceType? resourceType) : base(isNameAvailable, reason, message)
+ /// The name availability reason.
+ internal PostgreSqlFlexibleServerNameAvailabilityResult(string message, bool? isNameAvailable, string name, ResourceType? resourceType, PostgreSqlFlexibleServerNameUnavailableReason? reason)
{
+ Message = message;
+ IsNameAvailable = isNameAvailable;
Name = name;
ResourceType = resourceType;
+ Reason = reason;
}
+ /// Error Message.
+ public string Message { get; }
+ /// Indicates whether the resource name is available.
+ public bool? IsNameAvailable { get; }
/// name of the PostgreSQL server.
public string Name { get; }
/// type of the server.
public ResourceType? ResourceType { get; }
+ /// The name availability reason.
+ public PostgreSqlFlexibleServerNameUnavailableReason? Reason { get; }
}
}
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerNameUnavailableReason.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerNameUnavailableReason.cs
index dc23005ddec5b..e7f0d5afd823b 100644
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerNameUnavailableReason.cs
+++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerNameUnavailableReason.cs
@@ -10,7 +10,7 @@
namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models
{
- /// The reason why the given name is not available.
+ /// The name availability reason.
public readonly partial struct PostgreSqlFlexibleServerNameUnavailableReason : IEquatable
{
private readonly string _value;
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerPasswordAuthEnum.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerPasswordAuthEnum.cs
deleted file mode 100644
index 158bd39b622b9..0000000000000
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerPasswordAuthEnum.cs
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ComponentModel;
-
-namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models
-{
- /// If Enabled, Password authentication is enabled.
- public readonly partial struct PostgreSqlFlexibleServerPasswordAuthEnum : IEquatable
- {
- private readonly string _value;
-
- /// Initializes a new instance of .
- /// is null.
- public PostgreSqlFlexibleServerPasswordAuthEnum(string value)
- {
- _value = value ?? throw new ArgumentNullException(nameof(value));
- }
-
- private const string EnabledValue = "Enabled";
- private const string DisabledValue = "Disabled";
-
- /// Enabled.
- public static PostgreSqlFlexibleServerPasswordAuthEnum Enabled { get; } = new PostgreSqlFlexibleServerPasswordAuthEnum(EnabledValue);
- /// Disabled.
- public static PostgreSqlFlexibleServerPasswordAuthEnum Disabled { get; } = new PostgreSqlFlexibleServerPasswordAuthEnum(DisabledValue);
- /// Determines if two values are the same.
- public static bool operator ==(PostgreSqlFlexibleServerPasswordAuthEnum left, PostgreSqlFlexibleServerPasswordAuthEnum right) => left.Equals(right);
- /// Determines if two values are not the same.
- public static bool operator !=(PostgreSqlFlexibleServerPasswordAuthEnum left, PostgreSqlFlexibleServerPasswordAuthEnum right) => !left.Equals(right);
- /// Converts a string to a .
- public static implicit operator PostgreSqlFlexibleServerPasswordAuthEnum(string value) => new PostgreSqlFlexibleServerPasswordAuthEnum(value);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override bool Equals(object obj) => obj is PostgreSqlFlexibleServerPasswordAuthEnum other && Equals(other);
- ///
- public bool Equals(PostgreSqlFlexibleServerPasswordAuthEnum other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override int GetHashCode() => _value?.GetHashCode() ?? 0;
- ///
- public override string ToString() => _value;
- }
-}
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 64483bfe51bcd..232ea39bc0246 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
@@ -15,16 +15,16 @@ public partial class PostgreSqlFlexibleServerPatch : IUtf8JsonSerializable
void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
{
writer.WriteStartObject();
+ if (Optional.IsDefined(Location))
+ {
+ writer.WritePropertyName("location");
+ writer.WriteStringValue(Location.Value);
+ }
if (Optional.IsDefined(Sku))
{
writer.WritePropertyName("sku");
writer.WriteObjectValue(Sku);
}
- if (Optional.IsDefined(Identity))
- {
- writer.WritePropertyName("identity");
- writer.WriteObjectValue(Identity);
- }
if (Optional.IsCollectionDefined(Tags))
{
writer.WritePropertyName("tags");
@@ -43,11 +43,6 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
writer.WritePropertyName("administratorLoginPassword");
writer.WriteStringValue(AdministratorLoginPassword);
}
- if (Optional.IsDefined(Version))
- {
- writer.WritePropertyName("version");
- writer.WriteStringValue(Version.Value.ToString());
- }
if (Optional.IsDefined(Storage))
{
writer.WritePropertyName("storage");
@@ -68,26 +63,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
writer.WritePropertyName("maintenanceWindow");
writer.WriteObjectValue(MaintenanceWindow);
}
- if (Optional.IsDefined(AuthConfig))
- {
- writer.WritePropertyName("authConfig");
- writer.WriteObjectValue(AuthConfig);
- }
- if (Optional.IsDefined(DataEncryption))
- {
- writer.WritePropertyName("dataEncryption");
- writer.WriteObjectValue(DataEncryption);
- }
if (Optional.IsDefined(CreateMode))
{
writer.WritePropertyName("createMode");
writer.WriteStringValue(CreateMode.Value.ToString());
}
- if (Optional.IsDefined(ReplicationRole))
- {
- writer.WritePropertyName("replicationRole");
- writer.WriteStringValue(ReplicationRole.Value.ToString());
- }
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 696bad8889c66..216e08cc73162 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
@@ -19,16 +19,14 @@ public PostgreSqlFlexibleServerPatch()
Tags = new ChangeTrackingDictionary();
}
+ /// The location the resource resides in.
+ public AzureLocation? Location { get; set; }
/// The SKU (pricing tier) of the server.
public PostgreSqlFlexibleServerSku Sku { get; set; }
- /// Describes the identity of the application.
- public PostgreSqlFlexibleServerUserAssignedIdentity Identity { get; set; }
/// Application-specific metadata in the form of key-value pairs.
public IDictionary Tags { get; }
/// The password of the administrator login.
public string AdministratorLoginPassword { get; set; }
- /// PostgreSQL Server version.
- public PostgreSqlFlexibleServerVersion? Version { get; set; }
/// Storage properties of a server.
internal PostgreSqlFlexibleServerStorage Storage { get; set; }
/// Max storage allowed for a server.
@@ -49,13 +47,7 @@ public int? StorageSizeInGB
public PostgreSqlFlexibleServerHighAvailability HighAvailability { get; set; }
/// Maintenance window properties of a server.
public PostgreSqlFlexibleServerMaintenanceWindow MaintenanceWindow { get; set; }
- /// AuthConfig properties of a server.
- public PostgreSqlFlexibleServerAuthConfig AuthConfig { get; set; }
- /// Data encryption properties of a server.
- public PostgreSqlFlexibleServerDataEncryption DataEncryption { get; set; }
/// The mode to update a new PostgreSQL server.
public PostgreSqlFlexibleServerCreateModeForUpdate? CreateMode { get; set; }
- /// Replication role of the server.
- public PostgreSqlFlexibleServerReplicationRole? ReplicationRole { get; set; }
}
}
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerPrincipalType.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerPrincipalType.cs
deleted file mode 100644
index 77461c97dc651..0000000000000
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerPrincipalType.cs
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ComponentModel;
-
-namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models
-{
- /// The principal type used to represent the type of Active Directory Administrator.
- public readonly partial struct PostgreSqlFlexibleServerPrincipalType : IEquatable
- {
- private readonly string _value;
-
- /// Initializes a new instance of .
- /// is null.
- public PostgreSqlFlexibleServerPrincipalType(string value)
- {
- _value = value ?? throw new ArgumentNullException(nameof(value));
- }
-
- private const string UnknownValue = "Unknown";
- private const string UserValue = "User";
- private const string GroupValue = "Group";
- private const string ServicePrincipalValue = "ServicePrincipal";
-
- /// Unknown.
- public static PostgreSqlFlexibleServerPrincipalType Unknown { get; } = new PostgreSqlFlexibleServerPrincipalType(UnknownValue);
- /// User.
- public static PostgreSqlFlexibleServerPrincipalType User { get; } = new PostgreSqlFlexibleServerPrincipalType(UserValue);
- /// Group.
- public static PostgreSqlFlexibleServerPrincipalType Group { get; } = new PostgreSqlFlexibleServerPrincipalType(GroupValue);
- /// ServicePrincipal.
- public static PostgreSqlFlexibleServerPrincipalType ServicePrincipal { get; } = new PostgreSqlFlexibleServerPrincipalType(ServicePrincipalValue);
- /// Determines if two values are the same.
- public static bool operator ==(PostgreSqlFlexibleServerPrincipalType left, PostgreSqlFlexibleServerPrincipalType right) => left.Equals(right);
- /// Determines if two values are not the same.
- public static bool operator !=(PostgreSqlFlexibleServerPrincipalType left, PostgreSqlFlexibleServerPrincipalType right) => !left.Equals(right);
- /// Converts a string to a .
- public static implicit operator PostgreSqlFlexibleServerPrincipalType(string value) => new PostgreSqlFlexibleServerPrincipalType(value);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override bool Equals(object obj) => obj is PostgreSqlFlexibleServerPrincipalType other && Equals(other);
- ///
- public bool Equals(PostgreSqlFlexibleServerPrincipalType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override int GetHashCode() => _value?.GetHashCode() ?? 0;
- ///
- public override string ToString() => _value;
- }
-}
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
deleted file mode 100644
index 2bcb72478ded2..0000000000000
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerReplicationRole.cs
+++ /dev/null
@@ -1,69 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ComponentModel;
-
-namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models
-{
- /// Used to indicate role of the server in replication set.
- public readonly partial struct PostgreSqlFlexibleServerReplicationRole : IEquatable
- {
- private readonly string _value;
-
- /// Initializes a new instance of .
- /// is null.
- public PostgreSqlFlexibleServerReplicationRole(string value)
- {
- _value = value ?? throw new ArgumentNullException(nameof(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.
- public static bool operator ==(PostgreSqlFlexibleServerReplicationRole left, PostgreSqlFlexibleServerReplicationRole right) => left.Equals(right);
- /// Determines if two values are not the same.
- public static bool operator !=(PostgreSqlFlexibleServerReplicationRole left, PostgreSqlFlexibleServerReplicationRole right) => !left.Equals(right);
- /// Converts a string to a .
- public static implicit operator PostgreSqlFlexibleServerReplicationRole(string value) => new PostgreSqlFlexibleServerReplicationRole(value);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override bool Equals(object obj) => obj is PostgreSqlFlexibleServerReplicationRole other && Equals(other);
- ///
- public bool Equals(PostgreSqlFlexibleServerReplicationRole other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override int GetHashCode() => _value?.GetHashCode() ?? 0;
- ///
- public override string ToString() => _value;
- }
-}
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerServerVersionCapability.Serialization.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerServerVersionCapability.Serialization.cs
index ea8a6b9d3f18d..0af0c8a148ce2 100644
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerServerVersionCapability.Serialization.cs
+++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerServerVersionCapability.Serialization.cs
@@ -16,7 +16,6 @@ public partial class PostgreSqlFlexibleServerServerVersionCapability
internal static PostgreSqlFlexibleServerServerVersionCapability DeserializePostgreSqlFlexibleServerServerVersionCapability(JsonElement element)
{
Optional name = default;
- Optional> supportedVersionsToUpgrade = default;
Optional> supportedVcores = default;
Optional status = default;
foreach (var property in element.EnumerateObject())
@@ -26,21 +25,6 @@ internal static PostgreSqlFlexibleServerServerVersionCapability DeserializePostg
name = property.Value.GetString();
continue;
}
- if (property.NameEquals("supportedVersionsToUpgrade"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- List array = new List();
- foreach (var item in property.Value.EnumerateArray())
- {
- array.Add(item.GetString());
- }
- supportedVersionsToUpgrade = array;
- continue;
- }
if (property.NameEquals("supportedVcores"))
{
if (property.Value.ValueKind == JsonValueKind.Null)
@@ -62,7 +46,7 @@ internal static PostgreSqlFlexibleServerServerVersionCapability DeserializePostg
continue;
}
}
- return new PostgreSqlFlexibleServerServerVersionCapability(name.Value, Optional.ToList(supportedVersionsToUpgrade), Optional.ToList(supportedVcores), status.Value);
+ return new PostgreSqlFlexibleServerServerVersionCapability(name.Value, Optional.ToList(supportedVcores), status.Value);
}
}
}
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerServerVersionCapability.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerServerVersionCapability.cs
index 8b5b2e998aa04..eb855baeb73f3 100644
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerServerVersionCapability.cs
+++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerServerVersionCapability.cs
@@ -16,27 +16,22 @@ public partial class PostgreSqlFlexibleServerServerVersionCapability
/// Initializes a new instance of PostgreSqlFlexibleServerServerVersionCapability.
internal PostgreSqlFlexibleServerServerVersionCapability()
{
- SupportedVersionsToUpgrade = new ChangeTrackingList();
SupportedVCores = new ChangeTrackingList();
}
/// Initializes a new instance of PostgreSqlFlexibleServerServerVersionCapability.
/// server version.
- /// Supported servers versions to upgrade.
///
/// The status.
- internal PostgreSqlFlexibleServerServerVersionCapability(string name, IReadOnlyList supportedVersionsToUpgrade, IReadOnlyList supportedVCores, string status)
+ internal PostgreSqlFlexibleServerServerVersionCapability(string name, IReadOnlyList supportedVCores, string status)
{
Name = name;
- SupportedVersionsToUpgrade = supportedVersionsToUpgrade;
SupportedVCores = supportedVCores;
Status = status;
}
/// server version.
public string Name { get; }
- /// Supported servers versions to upgrade.
- public IReadOnlyList SupportedVersionsToUpgrade { get; }
/// Gets the supported v cores.
public IReadOnlyList SupportedVCores { get; }
/// The status.
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerStorageCapability.Serialization.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerStorageCapability.Serialization.cs
index ec6315b2a20ea..868436ee56638 100644
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerStorageCapability.Serialization.cs
+++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerStorageCapability.Serialization.cs
@@ -5,7 +5,6 @@
#nullable disable
-using System.Collections.Generic;
using System.Text.Json;
using Azure.Core;
@@ -18,7 +17,6 @@ internal static PostgreSqlFlexibleServerStorageCapability DeserializePostgreSqlF
Optional name = default;
Optional supportedIops = default;
Optional storageSizeMB = default;
- Optional> supportedUpgradableTierList = default;
Optional status = default;
foreach (var property in element.EnumerateObject())
{
@@ -47,28 +45,13 @@ internal static PostgreSqlFlexibleServerStorageCapability DeserializePostgreSqlF
storageSizeMB = property.Value.GetInt64();
continue;
}
- if (property.NameEquals("supportedUpgradableTierList"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- List array = new List();
- foreach (var item in property.Value.EnumerateArray())
- {
- array.Add(PostgreSqlFlexibleServerStorageTierCapability.DeserializePostgreSqlFlexibleServerStorageTierCapability(item));
- }
- supportedUpgradableTierList = array;
- continue;
- }
if (property.NameEquals("status"))
{
status = property.Value.GetString();
continue;
}
}
- return new PostgreSqlFlexibleServerStorageCapability(name.Value, Optional.ToNullable(supportedIops), Optional.ToNullable(storageSizeMB), Optional.ToList(supportedUpgradableTierList), status.Value);
+ return new PostgreSqlFlexibleServerStorageCapability(name.Value, Optional.ToNullable(supportedIops), Optional.ToNullable(storageSizeMB), status.Value);
}
}
}
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerStorageCapability.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerStorageCapability.cs
index 00673864bbb64..d7d439162c003 100644
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerStorageCapability.cs
+++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerStorageCapability.cs
@@ -5,9 +5,6 @@
#nullable disable
-using System.Collections.Generic;
-using Azure.Core;
-
namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models
{
/// storage size in MB capability.
@@ -16,21 +13,18 @@ public partial class PostgreSqlFlexibleServerStorageCapability
/// Initializes a new instance of PostgreSqlFlexibleServerStorageCapability.
internal PostgreSqlFlexibleServerStorageCapability()
{
- SupportedUpgradableTierList = new ChangeTrackingList();
}
/// Initializes a new instance of PostgreSqlFlexibleServerStorageCapability.
/// storage MB name.
/// supported IOPS.
/// storage size in MB.
- ///
/// The status.
- internal PostgreSqlFlexibleServerStorageCapability(string name, long? supportedIops, long? storageSizeInMB, IReadOnlyList supportedUpgradableTierList, string status)
+ internal PostgreSqlFlexibleServerStorageCapability(string name, long? supportedIops, long? storageSizeInMB, string status)
{
Name = name;
SupportedIops = supportedIops;
StorageSizeInMB = storageSizeInMB;
- SupportedUpgradableTierList = supportedUpgradableTierList;
Status = status;
}
@@ -40,8 +34,6 @@ internal PostgreSqlFlexibleServerStorageCapability(string name, long? supportedI
public long? SupportedIops { get; }
/// storage size in MB.
public long? StorageSizeInMB { get; }
- /// Gets the supported upgradable tier list.
- public IReadOnlyList SupportedUpgradableTierList { get; }
/// The status.
public string Status { get; }
}
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerStorageTierCapability.Serialization.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerStorageTierCapability.Serialization.cs
deleted file mode 100644
index ea74ba9d010ad..0000000000000
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerStorageTierCapability.Serialization.cs
+++ /dev/null
@@ -1,63 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System.Text.Json;
-using Azure.Core;
-
-namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models
-{
- public partial class PostgreSqlFlexibleServerStorageTierCapability
- {
- internal static PostgreSqlFlexibleServerStorageTierCapability DeserializePostgreSqlFlexibleServerStorageTierCapability(JsonElement element)
- {
- Optional name = default;
- Optional tierName = default;
- Optional iops = default;
- Optional isBaseline = default;
- Optional status = default;
- foreach (var property in element.EnumerateObject())
- {
- if (property.NameEquals("name"))
- {
- name = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("tierName"))
- {
- tierName = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("iops"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- iops = property.Value.GetInt64();
- continue;
- }
- if (property.NameEquals("isBaseline"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- isBaseline = property.Value.GetBoolean();
- continue;
- }
- if (property.NameEquals("status"))
- {
- status = property.Value.GetString();
- continue;
- }
- }
- return new PostgreSqlFlexibleServerStorageTierCapability(name.Value, tierName.Value, Optional.ToNullable(iops), Optional.ToNullable(isBaseline), status.Value);
- }
- }
-}
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerStorageTierCapability.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerStorageTierCapability.cs
deleted file mode 100644
index 5881650b42e09..0000000000000
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerStorageTierCapability.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models
-{
- /// The PostgreSqlFlexibleServerStorageTierCapability.
- public partial class PostgreSqlFlexibleServerStorageTierCapability
- {
- /// Initializes a new instance of PostgreSqlFlexibleServerStorageTierCapability.
- internal PostgreSqlFlexibleServerStorageTierCapability()
- {
- }
-
- /// Initializes a new instance of PostgreSqlFlexibleServerStorageTierCapability.
- /// Name to represent Storage tier capability.
- /// Storage tier name.
- /// Supported IOPS for this storage tier.
- /// Indicates if this is a baseline storage tier or not.
- /// Status os this storage tier.
- internal PostgreSqlFlexibleServerStorageTierCapability(string name, string tierName, long? iops, bool? isBaseline, string status)
- {
- Name = name;
- TierName = tierName;
- Iops = iops;
- IsBaseline = isBaseline;
- Status = status;
- }
-
- /// Name to represent Storage tier capability.
- public string Name { get; }
- /// Storage tier name.
- public string TierName { get; }
- /// Supported IOPS for this storage tier.
- public long? Iops { get; }
- /// Indicates if this is a baseline storage tier or not.
- public bool? IsBaseline { get; }
- /// Status os this storage tier.
- public string Status { get; }
- }
-}
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerUserAssignedIdentity.Serialization.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerUserAssignedIdentity.Serialization.cs
deleted file mode 100644
index a8a13ff1a216e..0000000000000
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerUserAssignedIdentity.Serialization.cs
+++ /dev/null
@@ -1,66 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System.Collections.Generic;
-using System.Text.Json;
-using Azure.Core;
-using Azure.ResourceManager.Models;
-
-namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models
-{
- public partial class PostgreSqlFlexibleServerUserAssignedIdentity : IUtf8JsonSerializable
- {
- void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
- {
- writer.WriteStartObject();
- if (Optional.IsCollectionDefined(UserAssignedIdentities))
- {
- writer.WritePropertyName("userAssignedIdentities");
- writer.WriteStartObject();
- foreach (var item in UserAssignedIdentities)
- {
- writer.WritePropertyName(item.Key);
- JsonSerializer.Serialize(writer, item.Value);
- }
- writer.WriteEndObject();
- }
- writer.WritePropertyName("type");
- writer.WriteStringValue(IdentityType.ToString());
- writer.WriteEndObject();
- }
-
- internal static PostgreSqlFlexibleServerUserAssignedIdentity DeserializePostgreSqlFlexibleServerUserAssignedIdentity(JsonElement element)
- {
- Optional> userAssignedIdentities = default;
- PostgreSqlFlexibleServerIdentityType type = default;
- foreach (var property in element.EnumerateObject())
- {
- if (property.NameEquals("userAssignedIdentities"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- Dictionary dictionary = new Dictionary();
- foreach (var property0 in property.Value.EnumerateObject())
- {
- dictionary.Add(property0.Name, JsonSerializer.Deserialize(property0.Value.GetRawText()));
- }
- userAssignedIdentities = dictionary;
- continue;
- }
- if (property.NameEquals("type"))
- {
- type = new PostgreSqlFlexibleServerIdentityType(property.Value.GetString());
- continue;
- }
- }
- return new PostgreSqlFlexibleServerUserAssignedIdentity(Optional.ToDictionary(userAssignedIdentities), type);
- }
- }
-}
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerUserAssignedIdentity.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerUserAssignedIdentity.cs
deleted file mode 100644
index ff2c4f3289a71..0000000000000
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerUserAssignedIdentity.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System.Collections.Generic;
-using Azure.Core;
-using Azure.ResourceManager.Models;
-
-namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models
-{
- /// Information describing the identities associated with this application.
- public partial class PostgreSqlFlexibleServerUserAssignedIdentity
- {
- /// Initializes a new instance of PostgreSqlFlexibleServerUserAssignedIdentity.
- /// the types of identities associated with this resource; currently restricted to 'SystemAssigned and UserAssigned'.
- public PostgreSqlFlexibleServerUserAssignedIdentity(PostgreSqlFlexibleServerIdentityType identityType)
- {
- UserAssignedIdentities = new ChangeTrackingDictionary();
- IdentityType = identityType;
- }
-
- /// Initializes a new instance of PostgreSqlFlexibleServerUserAssignedIdentity.
- /// represents user assigned identities map.
- /// the types of identities associated with this resource; currently restricted to 'SystemAssigned and UserAssigned'.
- internal PostgreSqlFlexibleServerUserAssignedIdentity(IDictionary userAssignedIdentities, PostgreSqlFlexibleServerIdentityType identityType)
- {
- UserAssignedIdentities = userAssignedIdentities;
- IdentityType = identityType;
- }
-
- /// represents user assigned identities map.
- public IDictionary UserAssignedIdentities { get; }
- /// the types of identities associated with this resource; currently restricted to 'SystemAssigned and UserAssigned'.
- public PostgreSqlFlexibleServerIdentityType IdentityType { get; set; }
- }
-}
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerVirtualNetworkSubnetUsageResult.Serialization.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerVirtualNetworkSubnetUsageResult.Serialization.cs
index 01bfbe731c811..e1c4242d11ba3 100644
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerVirtualNetworkSubnetUsageResult.Serialization.cs
+++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerVirtualNetworkSubnetUsageResult.Serialization.cs
@@ -15,43 +15,43 @@ public partial class PostgreSqlFlexibleServerVirtualNetworkSubnetUsageResult
{
internal static PostgreSqlFlexibleServerVirtualNetworkSubnetUsageResult DeserializePostgreSqlFlexibleServerVirtualNetworkSubnetUsageResult(JsonElement element)
{
- Optional> delegatedSubnetsUsage = default;
Optional location = default;
Optional subscriptionId = default;
+ Optional> delegatedSubnetsUsage = default;
foreach (var property in element.EnumerateObject())
{
- if (property.NameEquals("delegatedSubnetsUsage"))
+ if (property.NameEquals("location"))
{
if (property.Value.ValueKind == JsonValueKind.Null)
{
property.ThrowNonNullablePropertyIsNull();
continue;
}
- List array = new List();
- foreach (var item in property.Value.EnumerateArray())
- {
- array.Add(PostgreSqlFlexibleServerDelegatedSubnetUsage.DeserializePostgreSqlFlexibleServerDelegatedSubnetUsage(item));
- }
- delegatedSubnetsUsage = array;
+ location = new AzureLocation(property.Value.GetString());
continue;
}
- if (property.NameEquals("location"))
+ if (property.NameEquals("subscriptionId"))
+ {
+ subscriptionId = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("delegatedSubnetsUsage"))
{
if (property.Value.ValueKind == JsonValueKind.Null)
{
property.ThrowNonNullablePropertyIsNull();
continue;
}
- location = new AzureLocation(property.Value.GetString());
- continue;
- }
- if (property.NameEquals("subscriptionId"))
- {
- subscriptionId = property.Value.GetString();
+ List array = new List();
+ foreach (var item in property.Value.EnumerateArray())
+ {
+ array.Add(PostgreSqlFlexibleServerDelegatedSubnetUsage.DeserializePostgreSqlFlexibleServerDelegatedSubnetUsage(item));
+ }
+ delegatedSubnetsUsage = array;
continue;
}
}
- return new PostgreSqlFlexibleServerVirtualNetworkSubnetUsageResult(Optional.ToList(delegatedSubnetsUsage), Optional.ToNullable(location), subscriptionId.Value);
+ return new PostgreSqlFlexibleServerVirtualNetworkSubnetUsageResult(Optional.ToNullable(location), subscriptionId.Value, Optional.ToList(delegatedSubnetsUsage));
}
}
}
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerVirtualNetworkSubnetUsageResult.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerVirtualNetworkSubnetUsageResult.cs
index 93d572f9645cd..c8752e7a8208c 100644
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerVirtualNetworkSubnetUsageResult.cs
+++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerVirtualNetworkSubnetUsageResult.cs
@@ -20,21 +20,21 @@ internal PostgreSqlFlexibleServerVirtualNetworkSubnetUsageResult()
}
/// Initializes a new instance of PostgreSqlFlexibleServerVirtualNetworkSubnetUsageResult.
+ /// The location the resource resides in.
+ /// The subscription ID.
///
- /// location of the delegated subnet usage.
- /// subscriptionId of the delegated subnet usage.
- internal PostgreSqlFlexibleServerVirtualNetworkSubnetUsageResult(IReadOnlyList delegatedSubnetsUsage, AzureLocation? location, string subscriptionId)
+ internal PostgreSqlFlexibleServerVirtualNetworkSubnetUsageResult(AzureLocation? location, string subscriptionId, IReadOnlyList delegatedSubnetsUsage)
{
- DelegatedSubnetsUsage = delegatedSubnetsUsage;
Location = location;
SubscriptionId = subscriptionId;
+ DelegatedSubnetsUsage = delegatedSubnetsUsage;
}
- /// Gets the delegated subnets usage.
- public IReadOnlyList DelegatedSubnetsUsage { get; }
- /// location of the delegated subnet usage.
+ /// The location the resource resides in.
public AzureLocation? Location { get; }
- /// subscriptionId of the delegated subnet usage.
+ /// The subscription ID.
public string SubscriptionId { get; }
+ /// Gets the delegated subnets usage.
+ public IReadOnlyList DelegatedSubnetsUsage { get; }
}
}
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlFlexibleServerActiveDirectoryAdministratorCollection.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlFlexibleServerActiveDirectoryAdministratorCollection.cs
deleted file mode 100644
index 036b071099845..0000000000000
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlFlexibleServerActiveDirectoryAdministratorCollection.cs
+++ /dev/null
@@ -1,341 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.Collections;
-using System.Collections.Generic;
-using System.Globalization;
-using System.Threading;
-using System.Threading.Tasks;
-using Azure;
-using Azure.Core;
-using Azure.Core.Pipeline;
-using Azure.ResourceManager;
-using Azure.ResourceManager.PostgreSql.FlexibleServers.Models;
-
-namespace Azure.ResourceManager.PostgreSql.FlexibleServers
-{
- ///
- /// A class representing a collection of and their operations.
- /// Each in the collection will belong to the same instance of .
- /// To get a instance call the GetPostgreSqlFlexibleServerActiveDirectoryAdministrators method from an instance of .
- ///
- public partial class PostgreSqlFlexibleServerActiveDirectoryAdministratorCollection : ArmCollection, IEnumerable, IAsyncEnumerable
- {
- private readonly ClientDiagnostics _postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsClientDiagnostics;
- private readonly AdministratorsRestOperations _postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsRestClient;
-
- /// Initializes a new instance of the class for mocking.
- protected PostgreSqlFlexibleServerActiveDirectoryAdministratorCollection()
- {
- }
-
- /// Initializes a new instance of the class.
- /// The client parameters to use in these operations.
- /// The identifier of the parent resource that is the target of operations.
- internal PostgreSqlFlexibleServerActiveDirectoryAdministratorCollection(ArmClient client, ResourceIdentifier id) : base(client, id)
- {
- _postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.PostgreSql.FlexibleServers", PostgreSqlFlexibleServerActiveDirectoryAdministratorResource.ResourceType.Namespace, Diagnostics);
- TryGetApiVersion(PostgreSqlFlexibleServerActiveDirectoryAdministratorResource.ResourceType, out string postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsApiVersion);
- _postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsRestClient = new AdministratorsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsApiVersion);
-#if DEBUG
- ValidateResourceId(Id);
-#endif
- }
-
- internal static void ValidateResourceId(ResourceIdentifier id)
- {
- if (id.ResourceType != PostgreSqlFlexibleServerResource.ResourceType)
- throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, PostgreSqlFlexibleServerResource.ResourceType), nameof(id));
- }
-
- ///
- /// Creates a new server.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/administrators/{objectId}
- ///
- /// -
- /// Operation Id
- /// Administrators_Create
- ///
- ///
- ///
- /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
- /// Guid of the objectId for the administrator.
- /// The required parameters for adding an active directory administrator for a server.
- /// The cancellation token to use.
- /// is an empty string, and was expected to be non-empty.
- /// or is null.
- public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string objectId, PostgreSqlFlexibleServerActiveDirectoryAdministratorCreateOrUpdateContent content, CancellationToken cancellationToken = default)
- {
- Argument.AssertNotNullOrEmpty(objectId, nameof(objectId));
- Argument.AssertNotNull(content, nameof(content));
-
- using var scope = _postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsClientDiagnostics.CreateScope("PostgreSqlFlexibleServerActiveDirectoryAdministratorCollection.CreateOrUpdate");
- scope.Start();
- try
- {
- var response = await _postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, objectId, content, cancellationToken).ConfigureAwait(false);
- var operation = new FlexibleServersArmOperation(new PostgreSqlFlexibleServerActiveDirectoryAdministratorOperationSource(Client), _postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsClientDiagnostics, Pipeline, _postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsRestClient.CreateCreateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, objectId, content).Request, response, OperationFinalStateVia.AzureAsyncOperation);
- if (waitUntil == WaitUntil.Completed)
- await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
- return operation;
- }
- catch (Exception e)
- {
- scope.Failed(e);
- throw;
- }
- }
-
- ///
- /// Creates a new server.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/administrators/{objectId}
- ///
- /// -
- /// Operation Id
- /// Administrators_Create
- ///
- ///
- ///
- /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
- /// Guid of the objectId for the administrator.
- /// The required parameters for adding an active directory administrator for a server.
- /// The cancellation token to use.
- /// is an empty string, and was expected to be non-empty.
- /// or is null.
- public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string objectId, PostgreSqlFlexibleServerActiveDirectoryAdministratorCreateOrUpdateContent content, CancellationToken cancellationToken = default)
- {
- Argument.AssertNotNullOrEmpty(objectId, nameof(objectId));
- Argument.AssertNotNull(content, nameof(content));
-
- using var scope = _postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsClientDiagnostics.CreateScope("PostgreSqlFlexibleServerActiveDirectoryAdministratorCollection.CreateOrUpdate");
- scope.Start();
- try
- {
- var response = _postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, objectId, content, cancellationToken);
- var operation = new FlexibleServersArmOperation(new PostgreSqlFlexibleServerActiveDirectoryAdministratorOperationSource(Client), _postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsClientDiagnostics, Pipeline, _postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsRestClient.CreateCreateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, objectId, content).Request, response, OperationFinalStateVia.AzureAsyncOperation);
- if (waitUntil == WaitUntil.Completed)
- operation.WaitForCompletion(cancellationToken);
- return operation;
- }
- catch (Exception e)
- {
- scope.Failed(e);
- throw;
- }
- }
-
- ///
- /// Gets information about a server.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/administrators/{objectId}
- ///
- /// -
- /// Operation Id
- /// Administrators_Get
- ///
- ///
- ///
- /// Guid of the objectId for the administrator.
- /// The cancellation token to use.
- /// is an empty string, and was expected to be non-empty.
- /// is null.
- public virtual async Task> GetAsync(string objectId, CancellationToken cancellationToken = default)
- {
- Argument.AssertNotNullOrEmpty(objectId, nameof(objectId));
-
- using var scope = _postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsClientDiagnostics.CreateScope("PostgreSqlFlexibleServerActiveDirectoryAdministratorCollection.Get");
- scope.Start();
- try
- {
- var response = await _postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, objectId, cancellationToken).ConfigureAwait(false);
- if (response.Value == null)
- throw new RequestFailedException(response.GetRawResponse());
- return Response.FromValue(new PostgreSqlFlexibleServerActiveDirectoryAdministratorResource(Client, response.Value), response.GetRawResponse());
- }
- catch (Exception e)
- {
- scope.Failed(e);
- throw;
- }
- }
-
- ///
- /// Gets information about a server.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/administrators/{objectId}
- ///
- /// -
- /// Operation Id
- /// Administrators_Get
- ///
- ///
- ///
- /// Guid of the objectId for the administrator.
- /// The cancellation token to use.
- /// is an empty string, and was expected to be non-empty.
- /// is null.
- public virtual Response Get(string objectId, CancellationToken cancellationToken = default)
- {
- Argument.AssertNotNullOrEmpty(objectId, nameof(objectId));
-
- using var scope = _postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsClientDiagnostics.CreateScope("PostgreSqlFlexibleServerActiveDirectoryAdministratorCollection.Get");
- scope.Start();
- try
- {
- var response = _postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, objectId, cancellationToken);
- if (response.Value == null)
- throw new RequestFailedException(response.GetRawResponse());
- return Response.FromValue(new PostgreSqlFlexibleServerActiveDirectoryAdministratorResource(Client, response.Value), response.GetRawResponse());
- }
- catch (Exception e)
- {
- scope.Failed(e);
- throw;
- }
- }
-
- ///
- /// List all the AAD administrators for a given server.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/administrators
- ///
- /// -
- /// Operation Id
- /// Administrators_ListByServer
- ///
- ///
- ///
- /// The cancellation token to use.
- /// An async collection of that may take multiple service requests to iterate over.
- public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default)
- {
- HttpMessage FirstPageRequest(int? pageSizeHint) => _postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsRestClient.CreateListByServerRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name);
- HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsRestClient.CreateListByServerNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name);
- return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new PostgreSqlFlexibleServerActiveDirectoryAdministratorResource(Client, PostgreSqlFlexibleServerActiveDirectoryAdministratorData.DeserializePostgreSqlFlexibleServerActiveDirectoryAdministratorData(e)), _postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsClientDiagnostics, Pipeline, "PostgreSqlFlexibleServerActiveDirectoryAdministratorCollection.GetAll", "value", "nextLink", cancellationToken);
- }
-
- ///
- /// List all the AAD administrators for a given server.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/administrators
- ///
- /// -
- /// Operation Id
- /// Administrators_ListByServer
- ///
- ///
- ///
- /// The cancellation token to use.
- /// A collection of that may take multiple service requests to iterate over.
- public virtual Pageable GetAll(CancellationToken cancellationToken = default)
- {
- HttpMessage FirstPageRequest(int? pageSizeHint) => _postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsRestClient.CreateListByServerRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name);
- HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsRestClient.CreateListByServerNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name);
- return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new PostgreSqlFlexibleServerActiveDirectoryAdministratorResource(Client, PostgreSqlFlexibleServerActiveDirectoryAdministratorData.DeserializePostgreSqlFlexibleServerActiveDirectoryAdministratorData(e)), _postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsClientDiagnostics, Pipeline, "PostgreSqlFlexibleServerActiveDirectoryAdministratorCollection.GetAll", "value", "nextLink", cancellationToken);
- }
-
- ///
- /// Checks to see if the resource exists in azure.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/administrators/{objectId}
- ///
- /// -
- /// Operation Id
- /// Administrators_Get
- ///
- ///
- ///
- /// Guid of the objectId for the administrator.
- /// The cancellation token to use.
- /// is an empty string, and was expected to be non-empty.
- /// is null.
- public virtual async Task> ExistsAsync(string objectId, CancellationToken cancellationToken = default)
- {
- Argument.AssertNotNullOrEmpty(objectId, nameof(objectId));
-
- using var scope = _postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsClientDiagnostics.CreateScope("PostgreSqlFlexibleServerActiveDirectoryAdministratorCollection.Exists");
- scope.Start();
- try
- {
- var response = await _postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, objectId, cancellationToken: cancellationToken).ConfigureAwait(false);
- return Response.FromValue(response.Value != null, response.GetRawResponse());
- }
- catch (Exception e)
- {
- scope.Failed(e);
- throw;
- }
- }
-
- ///
- /// Checks to see if the resource exists in azure.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/administrators/{objectId}
- ///
- /// -
- /// Operation Id
- /// Administrators_Get
- ///
- ///
- ///
- /// Guid of the objectId for the administrator.
- /// The cancellation token to use.
- /// is an empty string, and was expected to be non-empty.
- /// is null.
- public virtual Response Exists(string objectId, CancellationToken cancellationToken = default)
- {
- Argument.AssertNotNullOrEmpty(objectId, nameof(objectId));
-
- using var scope = _postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsClientDiagnostics.CreateScope("PostgreSqlFlexibleServerActiveDirectoryAdministratorCollection.Exists");
- scope.Start();
- try
- {
- var response = _postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, objectId, cancellationToken: cancellationToken);
- return Response.FromValue(response.Value != null, response.GetRawResponse());
- }
- catch (Exception e)
- {
- scope.Failed(e);
- throw;
- }
- }
-
- IEnumerator IEnumerable.GetEnumerator()
- {
- return GetAll().GetEnumerator();
- }
-
- IEnumerator IEnumerable.GetEnumerator()
- {
- return GetAll().GetEnumerator();
- }
-
- IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken)
- {
- return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken);
- }
- }
-}
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlFlexibleServerActiveDirectoryAdministratorData.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlFlexibleServerActiveDirectoryAdministratorData.cs
deleted file mode 100644
index da793611b30ca..0000000000000
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlFlexibleServerActiveDirectoryAdministratorData.cs
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using Azure.Core;
-using Azure.ResourceManager.Models;
-using Azure.ResourceManager.PostgreSql.FlexibleServers.Models;
-
-namespace Azure.ResourceManager.PostgreSql.FlexibleServers
-{
- /// A class representing the PostgreSqlFlexibleServerActiveDirectoryAdministrator data model.
- public partial class PostgreSqlFlexibleServerActiveDirectoryAdministratorData : ResourceData
- {
- /// Initializes a new instance of PostgreSqlFlexibleServerActiveDirectoryAdministratorData.
- public PostgreSqlFlexibleServerActiveDirectoryAdministratorData()
- {
- }
-
- /// Initializes a new instance of PostgreSqlFlexibleServerActiveDirectoryAdministratorData.
- /// The id.
- /// The name.
- /// The resourceType.
- /// The systemData.
- /// The principal type used to represent the type of Active Directory Administrator.
- /// Active Directory administrator principal name.
- /// The objectId of the Active Directory administrator.
- /// The tenantId of the Active Directory administrator.
- internal PostgreSqlFlexibleServerActiveDirectoryAdministratorData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, PostgreSqlFlexibleServerPrincipalType? principalType, string principalName, Guid? objectId, Guid? tenantId) : base(id, name, resourceType, systemData)
- {
- PrincipalType = principalType;
- PrincipalName = principalName;
- ObjectId = objectId;
- TenantId = tenantId;
- }
-
- /// The principal type used to represent the type of Active Directory Administrator.
- public PostgreSqlFlexibleServerPrincipalType? PrincipalType { get; set; }
- /// Active Directory administrator principal name.
- public string PrincipalName { get; set; }
- /// The objectId of the Active Directory administrator.
- public Guid? ObjectId { get; set; }
- /// The tenantId of the Active Directory administrator.
- public Guid? TenantId { get; set; }
- }
-}
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlFlexibleServerActiveDirectoryAdministratorResource.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlFlexibleServerActiveDirectoryAdministratorResource.cs
deleted file mode 100644
index 5e80d22e38a1b..0000000000000
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlFlexibleServerActiveDirectoryAdministratorResource.cs
+++ /dev/null
@@ -1,298 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.Globalization;
-using System.Threading;
-using System.Threading.Tasks;
-using Azure;
-using Azure.Core;
-using Azure.Core.Pipeline;
-using Azure.ResourceManager;
-using Azure.ResourceManager.PostgreSql.FlexibleServers.Models;
-
-namespace Azure.ResourceManager.PostgreSql.FlexibleServers
-{
- ///
- /// A Class representing a PostgreSqlFlexibleServerActiveDirectoryAdministrator along with the instance operations that can be performed on it.
- /// If you have a you can construct a
- /// from an instance of using the GetPostgreSqlFlexibleServerActiveDirectoryAdministratorResource method.
- /// Otherwise you can get one from its parent resource using the GetPostgreSqlFlexibleServerActiveDirectoryAdministrator method.
- ///
- public partial class PostgreSqlFlexibleServerActiveDirectoryAdministratorResource : ArmResource
- {
- /// Generate the resource identifier of a instance.
- public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string objectId)
- {
- var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/administrators/{objectId}";
- return new ResourceIdentifier(resourceId);
- }
-
- private readonly ClientDiagnostics _postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsClientDiagnostics;
- private readonly AdministratorsRestOperations _postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsRestClient;
- private readonly PostgreSqlFlexibleServerActiveDirectoryAdministratorData _data;
-
- /// Initializes a new instance of the class for mocking.
- protected PostgreSqlFlexibleServerActiveDirectoryAdministratorResource()
- {
- }
-
- /// Initializes a new instance of the class.
- /// The client parameters to use in these operations.
- /// The resource that is the target of operations.
- internal PostgreSqlFlexibleServerActiveDirectoryAdministratorResource(ArmClient client, PostgreSqlFlexibleServerActiveDirectoryAdministratorData data) : this(client, data.Id)
- {
- HasData = true;
- _data = data;
- }
-
- /// Initializes a new instance of the class.
- /// The client parameters to use in these operations.
- /// The identifier of the resource that is the target of operations.
- internal PostgreSqlFlexibleServerActiveDirectoryAdministratorResource(ArmClient client, ResourceIdentifier id) : base(client, id)
- {
- _postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.PostgreSql.FlexibleServers", ResourceType.Namespace, Diagnostics);
- TryGetApiVersion(ResourceType, out string postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsApiVersion);
- _postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsRestClient = new AdministratorsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsApiVersion);
-#if DEBUG
- ValidateResourceId(Id);
-#endif
- }
-
- /// Gets the resource type for the operations.
- public static readonly ResourceType ResourceType = "Microsoft.DBforPostgreSQL/flexibleServers/administrators";
-
- /// Gets whether or not the current instance has data.
- public virtual bool HasData { get; }
-
- /// Gets the data representing this Feature.
- /// Throws if there is no data loaded in the current instance.
- public virtual PostgreSqlFlexibleServerActiveDirectoryAdministratorData Data
- {
- get
- {
- if (!HasData)
- throw new InvalidOperationException("The current instance does not have data, you must call Get first.");
- return _data;
- }
- }
-
- internal static void ValidateResourceId(ResourceIdentifier id)
- {
- if (id.ResourceType != ResourceType)
- throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id));
- }
-
- ///
- /// Gets information about a server.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/administrators/{objectId}
- ///
- /// -
- /// Operation Id
- /// Administrators_Get
- ///
- ///
- ///
- /// The cancellation token to use.
- public virtual async Task> GetAsync(CancellationToken cancellationToken = default)
- {
- using var scope = _postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsClientDiagnostics.CreateScope("PostgreSqlFlexibleServerActiveDirectoryAdministratorResource.Get");
- scope.Start();
- try
- {
- var response = await _postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false);
- if (response.Value == null)
- throw new RequestFailedException(response.GetRawResponse());
- return Response.FromValue(new PostgreSqlFlexibleServerActiveDirectoryAdministratorResource(Client, response.Value), response.GetRawResponse());
- }
- catch (Exception e)
- {
- scope.Failed(e);
- throw;
- }
- }
-
- ///
- /// Gets information about a server.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/administrators/{objectId}
- ///
- /// -
- /// Operation Id
- /// Administrators_Get
- ///
- ///
- ///
- /// The cancellation token to use.
- public virtual Response Get(CancellationToken cancellationToken = default)
- {
- using var scope = _postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsClientDiagnostics.CreateScope("PostgreSqlFlexibleServerActiveDirectoryAdministratorResource.Get");
- scope.Start();
- try
- {
- var response = _postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken);
- if (response.Value == null)
- throw new RequestFailedException(response.GetRawResponse());
- return Response.FromValue(new PostgreSqlFlexibleServerActiveDirectoryAdministratorResource(Client, response.Value), response.GetRawResponse());
- }
- catch (Exception e)
- {
- scope.Failed(e);
- throw;
- }
- }
-
- ///
- /// Deletes an Active Directory Administrator associated with the server.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/administrators/{objectId}
- ///
- /// -
- /// Operation Id
- /// Administrators_Delete
- ///
- ///
- ///
- /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
- /// The cancellation token to use.
- public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default)
- {
- using var scope = _postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsClientDiagnostics.CreateScope("PostgreSqlFlexibleServerActiveDirectoryAdministratorResource.Delete");
- scope.Start();
- try
- {
- var response = await _postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false);
- var operation = new FlexibleServersArmOperation(_postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsClientDiagnostics, Pipeline, _postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location);
- if (waitUntil == WaitUntil.Completed)
- await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false);
- return operation;
- }
- catch (Exception e)
- {
- scope.Failed(e);
- throw;
- }
- }
-
- ///
- /// Deletes an Active Directory Administrator associated with the server.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/administrators/{objectId}
- ///
- /// -
- /// Operation Id
- /// Administrators_Delete
- ///
- ///
- ///
- /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
- /// The cancellation token to use.
- public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default)
- {
- using var scope = _postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsClientDiagnostics.CreateScope("PostgreSqlFlexibleServerActiveDirectoryAdministratorResource.Delete");
- scope.Start();
- try
- {
- var response = _postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken);
- var operation = new FlexibleServersArmOperation(_postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsClientDiagnostics, Pipeline, _postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location);
- if (waitUntil == WaitUntil.Completed)
- operation.WaitForCompletionResponse(cancellationToken);
- return operation;
- }
- catch (Exception e)
- {
- scope.Failed(e);
- throw;
- }
- }
-
- ///
- /// Creates a new server.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/administrators/{objectId}
- ///
- /// -
- /// Operation Id
- /// Administrators_Create
- ///
- ///
- ///
- /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
- /// The required parameters for adding an active directory administrator for a server.
- /// The cancellation token to use.
- /// is null.
- public virtual async Task> UpdateAsync(WaitUntil waitUntil, PostgreSqlFlexibleServerActiveDirectoryAdministratorCreateOrUpdateContent content, CancellationToken cancellationToken = default)
- {
- Argument.AssertNotNull(content, nameof(content));
-
- using var scope = _postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsClientDiagnostics.CreateScope("PostgreSqlFlexibleServerActiveDirectoryAdministratorResource.Update");
- scope.Start();
- try
- {
- var response = await _postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, cancellationToken).ConfigureAwait(false);
- var operation = new FlexibleServersArmOperation(new PostgreSqlFlexibleServerActiveDirectoryAdministratorOperationSource(Client), _postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsClientDiagnostics, Pipeline, _postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsRestClient.CreateCreateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.AzureAsyncOperation);
- if (waitUntil == WaitUntil.Completed)
- await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
- return operation;
- }
- catch (Exception e)
- {
- scope.Failed(e);
- throw;
- }
- }
-
- ///
- /// Creates a new server.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/administrators/{objectId}
- ///
- /// -
- /// Operation Id
- /// Administrators_Create
- ///
- ///
- ///
- /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
- /// The required parameters for adding an active directory administrator for a server.
- /// The cancellation token to use.
- /// is null.
- public virtual ArmOperation Update(WaitUntil waitUntil, PostgreSqlFlexibleServerActiveDirectoryAdministratorCreateOrUpdateContent content, CancellationToken cancellationToken = default)
- {
- Argument.AssertNotNull(content, nameof(content));
-
- using var scope = _postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsClientDiagnostics.CreateScope("PostgreSqlFlexibleServerActiveDirectoryAdministratorResource.Update");
- scope.Start();
- try
- {
- var response = _postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, cancellationToken);
- var operation = new FlexibleServersArmOperation(new PostgreSqlFlexibleServerActiveDirectoryAdministratorOperationSource(Client), _postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsClientDiagnostics, Pipeline, _postgreSqlFlexibleServerActiveDirectoryAdministratorAdministratorsRestClient.CreateCreateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.AzureAsyncOperation);
- if (waitUntil == WaitUntil.Completed)
- operation.WaitForCompletion(cancellationToken);
- return operation;
- }
- catch (Exception e)
- {
- scope.Failed(e);
- throw;
- }
- }
- }
-}
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlFlexibleServerBackupCollection.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlFlexibleServerBackupCollection.cs
deleted file mode 100644
index e2866b2b3b6f3..0000000000000
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlFlexibleServerBackupCollection.cs
+++ /dev/null
@@ -1,258 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.Collections;
-using System.Collections.Generic;
-using System.Globalization;
-using System.Threading;
-using System.Threading.Tasks;
-using Azure;
-using Azure.Core;
-using Azure.Core.Pipeline;
-using Azure.ResourceManager;
-
-namespace Azure.ResourceManager.PostgreSql.FlexibleServers
-{
- ///
- /// A class representing a collection of and their operations.
- /// Each in the collection will belong to the same instance of .
- /// To get a instance call the GetPostgreSqlFlexibleServerBackups method from an instance of .
- ///
- public partial class PostgreSqlFlexibleServerBackupCollection : ArmCollection, IEnumerable, IAsyncEnumerable
- {
- private readonly ClientDiagnostics _postgreSqlFlexibleServerBackupBackupsClientDiagnostics;
- private readonly BackupsRestOperations _postgreSqlFlexibleServerBackupBackupsRestClient;
-
- /// Initializes a new instance of the class for mocking.
- protected PostgreSqlFlexibleServerBackupCollection()
- {
- }
-
- /// Initializes a new instance of the class.
- /// The client parameters to use in these operations.
- /// The identifier of the parent resource that is the target of operations.
- internal PostgreSqlFlexibleServerBackupCollection(ArmClient client, ResourceIdentifier id) : base(client, id)
- {
- _postgreSqlFlexibleServerBackupBackupsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.PostgreSql.FlexibleServers", PostgreSqlFlexibleServerBackupResource.ResourceType.Namespace, Diagnostics);
- TryGetApiVersion(PostgreSqlFlexibleServerBackupResource.ResourceType, out string postgreSqlFlexibleServerBackupBackupsApiVersion);
- _postgreSqlFlexibleServerBackupBackupsRestClient = new BackupsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, postgreSqlFlexibleServerBackupBackupsApiVersion);
-#if DEBUG
- ValidateResourceId(Id);
-#endif
- }
-
- internal static void ValidateResourceId(ResourceIdentifier id)
- {
- if (id.ResourceType != PostgreSqlFlexibleServerResource.ResourceType)
- throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, PostgreSqlFlexibleServerResource.ResourceType), nameof(id));
- }
-
- ///
- /// Get specific backup for a given server.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/backups/{backupName}
- ///
- /// -
- /// Operation Id
- /// Backups_Get
- ///
- ///
- ///
- /// The name of the backup.
- /// The cancellation token to use.
- /// is an empty string, and was expected to be non-empty.
- /// is null.
- public virtual async Task> GetAsync(string backupName, CancellationToken cancellationToken = default)
- {
- Argument.AssertNotNullOrEmpty(backupName, nameof(backupName));
-
- using var scope = _postgreSqlFlexibleServerBackupBackupsClientDiagnostics.CreateScope("PostgreSqlFlexibleServerBackupCollection.Get");
- scope.Start();
- try
- {
- var response = await _postgreSqlFlexibleServerBackupBackupsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, backupName, cancellationToken).ConfigureAwait(false);
- if (response.Value == null)
- throw new RequestFailedException(response.GetRawResponse());
- return Response.FromValue(new PostgreSqlFlexibleServerBackupResource(Client, response.Value), response.GetRawResponse());
- }
- catch (Exception e)
- {
- scope.Failed(e);
- throw;
- }
- }
-
- ///
- /// Get specific backup for a given server.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/backups/{backupName}
- ///
- /// -
- /// Operation Id
- /// Backups_Get
- ///
- ///
- ///
- /// The name of the backup.
- /// The cancellation token to use.
- /// is an empty string, and was expected to be non-empty.
- /// is null.
- public virtual Response Get(string backupName, CancellationToken cancellationToken = default)
- {
- Argument.AssertNotNullOrEmpty(backupName, nameof(backupName));
-
- using var scope = _postgreSqlFlexibleServerBackupBackupsClientDiagnostics.CreateScope("PostgreSqlFlexibleServerBackupCollection.Get");
- scope.Start();
- try
- {
- var response = _postgreSqlFlexibleServerBackupBackupsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, backupName, cancellationToken);
- if (response.Value == null)
- throw new RequestFailedException(response.GetRawResponse());
- return Response.FromValue(new PostgreSqlFlexibleServerBackupResource(Client, response.Value), response.GetRawResponse());
- }
- catch (Exception e)
- {
- scope.Failed(e);
- throw;
- }
- }
-
- ///
- /// List all the backups for a given server.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/backups
- ///
- /// -
- /// Operation Id
- /// Backups_ListByServer
- ///
- ///
- ///
- /// The cancellation token to use.
- /// An async collection of that may take multiple service requests to iterate over.
- public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default)
- {
- HttpMessage FirstPageRequest(int? pageSizeHint) => _postgreSqlFlexibleServerBackupBackupsRestClient.CreateListByServerRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name);
- HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _postgreSqlFlexibleServerBackupBackupsRestClient.CreateListByServerNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name);
- return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new PostgreSqlFlexibleServerBackupResource(Client, PostgreSqlFlexibleServerBackupData.DeserializePostgreSqlFlexibleServerBackupData(e)), _postgreSqlFlexibleServerBackupBackupsClientDiagnostics, Pipeline, "PostgreSqlFlexibleServerBackupCollection.GetAll", "value", "nextLink", cancellationToken);
- }
-
- ///
- /// List all the backups for a given server.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/backups
- ///
- /// -
- /// Operation Id
- /// Backups_ListByServer
- ///
- ///
- ///
- /// The cancellation token to use.
- /// A collection of that may take multiple service requests to iterate over.
- public virtual Pageable GetAll(CancellationToken cancellationToken = default)
- {
- HttpMessage FirstPageRequest(int? pageSizeHint) => _postgreSqlFlexibleServerBackupBackupsRestClient.CreateListByServerRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name);
- HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _postgreSqlFlexibleServerBackupBackupsRestClient.CreateListByServerNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name);
- return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new PostgreSqlFlexibleServerBackupResource(Client, PostgreSqlFlexibleServerBackupData.DeserializePostgreSqlFlexibleServerBackupData(e)), _postgreSqlFlexibleServerBackupBackupsClientDiagnostics, Pipeline, "PostgreSqlFlexibleServerBackupCollection.GetAll", "value", "nextLink", cancellationToken);
- }
-
- ///
- /// Checks to see if the resource exists in azure.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/backups/{backupName}
- ///
- /// -
- /// Operation Id
- /// Backups_Get
- ///
- ///
- ///
- /// The name of the backup.
- /// The cancellation token to use.
- /// is an empty string, and was expected to be non-empty.
- /// is null.
- public virtual async Task> ExistsAsync(string backupName, CancellationToken cancellationToken = default)
- {
- Argument.AssertNotNullOrEmpty(backupName, nameof(backupName));
-
- using var scope = _postgreSqlFlexibleServerBackupBackupsClientDiagnostics.CreateScope("PostgreSqlFlexibleServerBackupCollection.Exists");
- scope.Start();
- try
- {
- var response = await _postgreSqlFlexibleServerBackupBackupsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, backupName, cancellationToken: cancellationToken).ConfigureAwait(false);
- return Response.FromValue(response.Value != null, response.GetRawResponse());
- }
- catch (Exception e)
- {
- scope.Failed(e);
- throw;
- }
- }
-
- ///
- /// Checks to see if the resource exists in azure.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/backups/{backupName}
- ///
- /// -
- /// Operation Id
- /// Backups_Get
- ///
- ///
- ///
- /// The name of the backup.
- /// The cancellation token to use.
- /// is an empty string, and was expected to be non-empty.
- /// is null.
- public virtual Response Exists(string backupName, CancellationToken cancellationToken = default)
- {
- Argument.AssertNotNullOrEmpty(backupName, nameof(backupName));
-
- using var scope = _postgreSqlFlexibleServerBackupBackupsClientDiagnostics.CreateScope("PostgreSqlFlexibleServerBackupCollection.Exists");
- scope.Start();
- try
- {
- var response = _postgreSqlFlexibleServerBackupBackupsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, backupName, cancellationToken: cancellationToken);
- return Response.FromValue(response.Value != null, response.GetRawResponse());
- }
- catch (Exception e)
- {
- scope.Failed(e);
- throw;
- }
- }
-
- IEnumerator IEnumerable.GetEnumerator()
- {
- return GetAll().GetEnumerator();
- }
-
- IEnumerator IEnumerable.GetEnumerator()
- {
- return GetAll().GetEnumerator();
- }
-
- IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken)
- {
- return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken);
- }
- }
-}
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlFlexibleServerBackupData.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlFlexibleServerBackupData.cs
deleted file mode 100644
index 907360c08e4fe..0000000000000
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlFlexibleServerBackupData.cs
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using Azure.Core;
-using Azure.ResourceManager.Models;
-using Azure.ResourceManager.PostgreSql.FlexibleServers.Models;
-
-namespace Azure.ResourceManager.PostgreSql.FlexibleServers
-{
- /// A class representing the PostgreSqlFlexibleServerBackup data model.
- public partial class PostgreSqlFlexibleServerBackupData : ResourceData
- {
- /// Initializes a new instance of PostgreSqlFlexibleServerBackupData.
- public PostgreSqlFlexibleServerBackupData()
- {
- }
-
- /// Initializes a new instance of PostgreSqlFlexibleServerBackupData.
- /// The id.
- /// The name.
- /// The resourceType.
- /// The systemData.
- /// Backup type.
- /// Backup completed time (ISO8601 format).
- /// Backup source.
- internal PostgreSqlFlexibleServerBackupData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, PostgreSqlFlexibleServerBackupOrigin? backupType, DateTimeOffset? completedOn, string source) : base(id, name, resourceType, systemData)
- {
- BackupType = backupType;
- CompletedOn = completedOn;
- Source = source;
- }
-
- /// Backup type.
- public PostgreSqlFlexibleServerBackupOrigin? BackupType { get; set; }
- /// Backup completed time (ISO8601 format).
- public DateTimeOffset? CompletedOn { get; set; }
- /// Backup source.
- public string Source { get; set; }
- }
-}
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlFlexibleServerBackupResource.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlFlexibleServerBackupResource.cs
deleted file mode 100644
index 79e2574413e2c..0000000000000
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlFlexibleServerBackupResource.cs
+++ /dev/null
@@ -1,153 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.Globalization;
-using System.Threading;
-using System.Threading.Tasks;
-using Azure;
-using Azure.Core;
-using Azure.Core.Pipeline;
-using Azure.ResourceManager;
-
-namespace Azure.ResourceManager.PostgreSql.FlexibleServers
-{
- ///
- /// A Class representing a PostgreSqlFlexibleServerBackup along with the instance operations that can be performed on it.
- /// If you have a you can construct a
- /// from an instance of using the GetPostgreSqlFlexibleServerBackupResource method.
- /// Otherwise you can get one from its parent resource using the GetPostgreSqlFlexibleServerBackup method.
- ///
- public partial class PostgreSqlFlexibleServerBackupResource : ArmResource
- {
- /// Generate the resource identifier of a instance.
- public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string backupName)
- {
- var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/backups/{backupName}";
- return new ResourceIdentifier(resourceId);
- }
-
- private readonly ClientDiagnostics _postgreSqlFlexibleServerBackupBackupsClientDiagnostics;
- private readonly BackupsRestOperations _postgreSqlFlexibleServerBackupBackupsRestClient;
- private readonly PostgreSqlFlexibleServerBackupData _data;
-
- /// Initializes a new instance of the class for mocking.
- protected PostgreSqlFlexibleServerBackupResource()
- {
- }
-
- /// Initializes a new instance of the class.
- /// The client parameters to use in these operations.
- /// The resource that is the target of operations.
- internal PostgreSqlFlexibleServerBackupResource(ArmClient client, PostgreSqlFlexibleServerBackupData data) : this(client, data.Id)
- {
- HasData = true;
- _data = data;
- }
-
- /// Initializes a new instance of the class.
- /// The client parameters to use in these operations.
- /// The identifier of the resource that is the target of operations.
- internal PostgreSqlFlexibleServerBackupResource(ArmClient client, ResourceIdentifier id) : base(client, id)
- {
- _postgreSqlFlexibleServerBackupBackupsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.PostgreSql.FlexibleServers", ResourceType.Namespace, Diagnostics);
- TryGetApiVersion(ResourceType, out string postgreSqlFlexibleServerBackupBackupsApiVersion);
- _postgreSqlFlexibleServerBackupBackupsRestClient = new BackupsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, postgreSqlFlexibleServerBackupBackupsApiVersion);
-#if DEBUG
- ValidateResourceId(Id);
-#endif
- }
-
- /// Gets the resource type for the operations.
- public static readonly ResourceType ResourceType = "Microsoft.DBforPostgreSQL/flexibleServers/backups";
-
- /// Gets whether or not the current instance has data.
- public virtual bool HasData { get; }
-
- /// Gets the data representing this Feature.
- /// Throws if there is no data loaded in the current instance.
- public virtual PostgreSqlFlexibleServerBackupData Data
- {
- get
- {
- if (!HasData)
- throw new InvalidOperationException("The current instance does not have data, you must call Get first.");
- return _data;
- }
- }
-
- internal static void ValidateResourceId(ResourceIdentifier id)
- {
- if (id.ResourceType != ResourceType)
- throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id));
- }
-
- ///
- /// Get specific backup for a given server.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/backups/{backupName}
- ///
- /// -
- /// Operation Id
- /// Backups_Get
- ///
- ///
- ///
- /// The cancellation token to use.
- public virtual async Task> GetAsync(CancellationToken cancellationToken = default)
- {
- using var scope = _postgreSqlFlexibleServerBackupBackupsClientDiagnostics.CreateScope("PostgreSqlFlexibleServerBackupResource.Get");
- scope.Start();
- try
- {
- var response = await _postgreSqlFlexibleServerBackupBackupsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false);
- if (response.Value == null)
- throw new RequestFailedException(response.GetRawResponse());
- return Response.FromValue(new PostgreSqlFlexibleServerBackupResource(Client, response.Value), response.GetRawResponse());
- }
- catch (Exception e)
- {
- scope.Failed(e);
- throw;
- }
- }
-
- ///
- /// Get specific backup for a given server.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/backups/{backupName}
- ///
- /// -
- /// Operation Id
- /// Backups_Get
- ///
- ///
- ///
- /// The cancellation token to use.
- public virtual Response Get(CancellationToken cancellationToken = default)
- {
- using var scope = _postgreSqlFlexibleServerBackupBackupsClientDiagnostics.CreateScope("PostgreSqlFlexibleServerBackupResource.Get");
- scope.Start();
- try
- {
- var response = _postgreSqlFlexibleServerBackupBackupsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken);
- if (response.Value == null)
- throw new RequestFailedException(response.GetRawResponse());
- return Response.FromValue(new PostgreSqlFlexibleServerBackupResource(Client, response.Value), response.GetRawResponse());
- }
- catch (Exception e)
- {
- scope.Failed(e);
- throw;
- }
- }
- }
-}
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlFlexibleServerCollection.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlFlexibleServerCollection.cs
index a14365d46d856..f3c4ce03e55a1 100644
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlFlexibleServerCollection.cs
+++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlFlexibleServerCollection.cs
@@ -28,8 +28,6 @@ public partial class PostgreSqlFlexibleServerCollection : ArmCollection, IEnumer
{
private readonly ClientDiagnostics _postgreSqlFlexibleServerServersClientDiagnostics;
private readonly ServersRestOperations _postgreSqlFlexibleServerServersRestClient;
- private readonly ClientDiagnostics _replicasClientDiagnostics;
- private readonly ReplicasRestOperations _replicasRestClient;
/// Initializes a new instance of the class for mocking.
protected PostgreSqlFlexibleServerCollection()
@@ -44,8 +42,6 @@ internal PostgreSqlFlexibleServerCollection(ArmClient client, ResourceIdentifier
_postgreSqlFlexibleServerServersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.PostgreSql.FlexibleServers", PostgreSqlFlexibleServerResource.ResourceType.Namespace, Diagnostics);
TryGetApiVersion(PostgreSqlFlexibleServerResource.ResourceType, out string postgreSqlFlexibleServerServersApiVersion);
_postgreSqlFlexibleServerServersRestClient = new ServersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, postgreSqlFlexibleServerServersApiVersion);
- _replicasClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.PostgreSql.FlexibleServers", ProviderConstants.DefaultProviderNamespace, Diagnostics);
- _replicasRestClient = new ReplicasRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint);
#if DEBUG
ValidateResourceId(Id);
#endif
@@ -86,7 +82,7 @@ public virtual async Task> Create
try
{
var response = await _postgreSqlFlexibleServerServersRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, serverName, data, cancellationToken).ConfigureAwait(false);
- var operation = new FlexibleServersArmOperation(new PostgreSqlFlexibleServerOperationSource(Client), _postgreSqlFlexibleServerServersClientDiagnostics, Pipeline, _postgreSqlFlexibleServerServersRestClient.CreateCreateRequest(Id.SubscriptionId, Id.ResourceGroupName, serverName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ var operation = new FlexibleServersArmOperation(new PostgreSqlFlexibleServerOperationSource(Client), _postgreSqlFlexibleServerServersClientDiagnostics, Pipeline, _postgreSqlFlexibleServerServersRestClient.CreateCreateRequest(Id.SubscriptionId, Id.ResourceGroupName, serverName, data).Request, response, OperationFinalStateVia.Location);
if (waitUntil == WaitUntil.Completed)
await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
return operation;
@@ -127,7 +123,7 @@ public virtual ArmOperation CreateOrUpdate(Wai
try
{
var response = _postgreSqlFlexibleServerServersRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, serverName, data, cancellationToken);
- var operation = new FlexibleServersArmOperation(new PostgreSqlFlexibleServerOperationSource(Client), _postgreSqlFlexibleServerServersClientDiagnostics, Pipeline, _postgreSqlFlexibleServerServersRestClient.CreateCreateRequest(Id.SubscriptionId, Id.ResourceGroupName, serverName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ var operation = new FlexibleServersArmOperation(new PostgreSqlFlexibleServerOperationSource(Client), _postgreSqlFlexibleServerServersClientDiagnostics, Pipeline, _postgreSqlFlexibleServerServersRestClient.CreateCreateRequest(Id.SubscriptionId, Id.ResourceGroupName, serverName, data).Request, response, OperationFinalStateVia.Location);
if (waitUntil == WaitUntil.Completed)
operation.WaitForCompletion(cancellationToken);
return operation;
@@ -257,58 +253,6 @@ public virtual Pageable GetAll(CancellationTok
return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new PostgreSqlFlexibleServerResource(Client, PostgreSqlFlexibleServerData.DeserializePostgreSqlFlexibleServerData(e)), _postgreSqlFlexibleServerServersClientDiagnostics, Pipeline, "PostgreSqlFlexibleServerCollection.GetAll", "value", "nextLink", cancellationToken);
}
- ///
- /// List all the replicas for a given server.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/replicas
- ///
- /// -
- /// Operation Id
- /// Replicas_ListByServer
- ///
- ///
- ///
- /// The name of the server.
- /// The cancellation token to use.
- /// is an empty string, and was expected to be non-empty.
- /// is null.
- /// An async collection of that may take multiple service requests to iterate over.
- public virtual AsyncPageable GetReplicasAsync(string serverName, CancellationToken cancellationToken = default)
- {
- Argument.AssertNotNullOrEmpty(serverName, nameof(serverName));
-
- HttpMessage FirstPageRequest(int? pageSizeHint) => _replicasRestClient.CreateListByServerRequest(Id.SubscriptionId, Id.ResourceGroupName, serverName);
- return PageableHelpers.CreateAsyncPageable(FirstPageRequest, null, e => new PostgreSqlFlexibleServerResource(Client, PostgreSqlFlexibleServerData.DeserializePostgreSqlFlexibleServerData(e)), _replicasClientDiagnostics, Pipeline, "PostgreSqlFlexibleServerCollection.GetReplicas", "value", null, cancellationToken);
- }
-
- ///
- /// List all the replicas for a given server.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/replicas
- ///
- /// -
- /// Operation Id
- /// Replicas_ListByServer
- ///
- ///
- ///
- /// The name of the server.
- /// The cancellation token to use.
- /// is an empty string, and was expected to be non-empty.
- /// is null.
- /// A collection of that may take multiple service requests to iterate over.
- public virtual Pageable GetReplicas(string serverName, CancellationToken cancellationToken = default)
- {
- Argument.AssertNotNullOrEmpty(serverName, nameof(serverName));
-
- HttpMessage FirstPageRequest(int? pageSizeHint) => _replicasRestClient.CreateListByServerRequest(Id.SubscriptionId, Id.ResourceGroupName, serverName);
- return PageableHelpers.CreatePageable(FirstPageRequest, null, e => new PostgreSqlFlexibleServerResource(Client, PostgreSqlFlexibleServerData.DeserializePostgreSqlFlexibleServerData(e)), _replicasClientDiagnostics, Pipeline, "PostgreSqlFlexibleServerCollection.GetReplicas", "value", null, cancellationToken);
- }
-
///
/// Checks to see if the resource exists in azure.
///
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlFlexibleServerConfigurationResource.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlFlexibleServerConfigurationResource.cs
index 1546783c24820..62f44973d952c 100644
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlFlexibleServerConfigurationResource.cs
+++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlFlexibleServerConfigurationResource.cs
@@ -13,7 +13,6 @@
using Azure.Core;
using Azure.Core.Pipeline;
using Azure.ResourceManager;
-using Azure.ResourceManager.PostgreSql.FlexibleServers.Models;
namespace Azure.ResourceManager.PostgreSql.FlexibleServers
{
@@ -165,19 +164,19 @@ public virtual Response Get(Cance
///
///
/// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
- /// The required parameters for updating a server configuration.
+ /// The required parameters for updating a server configuration.
/// The cancellation token to use.
- /// is null.
- public virtual async Task> UpdateAsync(WaitUntil waitUntil, PostgreSqlFlexibleServerConfigurationPatch patch, CancellationToken cancellationToken = default)
+ /// is null.
+ public virtual async Task> UpdateAsync(WaitUntil waitUntil, PostgreSqlFlexibleServerConfigurationData data, CancellationToken cancellationToken = default)
{
- Argument.AssertNotNull(patch, nameof(patch));
+ Argument.AssertNotNull(data, nameof(data));
using var scope = _postgreSqlFlexibleServerConfigurationConfigurationsClientDiagnostics.CreateScope("PostgreSqlFlexibleServerConfigurationResource.Update");
scope.Start();
try
{
- var response = await _postgreSqlFlexibleServerConfigurationConfigurationsRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken).ConfigureAwait(false);
- var operation = new FlexibleServersArmOperation(new PostgreSqlFlexibleServerConfigurationOperationSource(Client), _postgreSqlFlexibleServerConfigurationConfigurationsClientDiagnostics, Pipeline, _postgreSqlFlexibleServerConfigurationConfigurationsRestClient.CreateUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ var response = await _postgreSqlFlexibleServerConfigurationConfigurationsRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false);
+ var operation = new FlexibleServersArmOperation(new PostgreSqlFlexibleServerConfigurationOperationSource(Client), _postgreSqlFlexibleServerConfigurationConfigurationsClientDiagnostics, Pipeline, _postgreSqlFlexibleServerConfigurationConfigurationsRestClient.CreateUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.Location);
if (waitUntil == WaitUntil.Completed)
await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
return operation;
@@ -203,19 +202,19 @@ public virtual async Task
///
/// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
- /// The required parameters for updating a server configuration.
+ /// The required parameters for updating a server configuration.
/// The cancellation token to use.
- /// is null.
- public virtual ArmOperation Update(WaitUntil waitUntil, PostgreSqlFlexibleServerConfigurationPatch patch, CancellationToken cancellationToken = default)
+ /// is null.
+ public virtual ArmOperation Update(WaitUntil waitUntil, PostgreSqlFlexibleServerConfigurationData data, CancellationToken cancellationToken = default)
{
- Argument.AssertNotNull(patch, nameof(patch));
+ Argument.AssertNotNull(data, nameof(data));
using var scope = _postgreSqlFlexibleServerConfigurationConfigurationsClientDiagnostics.CreateScope("PostgreSqlFlexibleServerConfigurationResource.Update");
scope.Start();
try
{
- var response = _postgreSqlFlexibleServerConfigurationConfigurationsRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken);
- var operation = new FlexibleServersArmOperation(new PostgreSqlFlexibleServerConfigurationOperationSource(Client), _postgreSqlFlexibleServerConfigurationConfigurationsClientDiagnostics, Pipeline, _postgreSqlFlexibleServerConfigurationConfigurationsRestClient.CreateUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ var response = _postgreSqlFlexibleServerConfigurationConfigurationsRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken);
+ var operation = new FlexibleServersArmOperation(new PostgreSqlFlexibleServerConfigurationOperationSource(Client), _postgreSqlFlexibleServerConfigurationConfigurationsClientDiagnostics, Pipeline, _postgreSqlFlexibleServerConfigurationConfigurationsRestClient.CreateUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.Location);
if (waitUntil == WaitUntil.Completed)
operation.WaitForCompletion(cancellationToken);
return operation;
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 91fa13ac89d2f..c828d8e24d989 100644
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlFlexibleServerData.cs
+++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlFlexibleServerData.cs
@@ -30,7 +30,6 @@ public PostgreSqlFlexibleServerData(AzureLocation location) : base(location)
/// The tags.
/// The location.
/// The SKU (pricing tier) of the server.
- /// Describes the identity of the application.
/// The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).
/// The administrator login password (required for server creation).
/// PostgreSQL Server version.
@@ -38,22 +37,17 @@ public PostgreSqlFlexibleServerData(AzureLocation location) : base(location)
/// A state of a server that is visible to user.
/// The fully qualified domain name of a server.
/// Storage properties of a server.
- /// AuthConfig properties of a server.
- /// Data encryption properties of a server.
/// Backup properties of a server.
/// Network properties of a 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'.
- /// Restore point creation time (ISO8601 format), specifying the time to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore'.
+ /// The source server resource ID to restore from. It's required when 'createMode' is 'PointInTimeRestore'.
+ /// Restore point creation time (ISO8601 format), specifying the time to restore from. It's required when 'createMode' is 'PointInTimeRestore'.
/// availability zone information of the server.
- /// Replication role of the server.
- /// Replicas allowed for a server.
/// The mode to create a new PostgreSQL server.
- internal PostgreSqlFlexibleServerData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, PostgreSqlFlexibleServerSku sku, PostgreSqlFlexibleServerUserAssignedIdentity identity, string administratorLogin, string administratorLoginPassword, PostgreSqlFlexibleServerVersion? version, string minorVersion, PostgreSqlFlexibleServerState? state, string fullyQualifiedDomainName, PostgreSqlFlexibleServerStorage storage, PostgreSqlFlexibleServerAuthConfig authConfig, PostgreSqlFlexibleServerDataEncryption dataEncryption, PostgreSqlFlexibleServerBackupProperties backup, PostgreSqlFlexibleServerNetwork network, PostgreSqlFlexibleServerHighAvailability highAvailability, PostgreSqlFlexibleServerMaintenanceWindow maintenanceWindow, ResourceIdentifier sourceServerResourceId, DateTimeOffset? pointInTimeUtc, string availabilityZone, PostgreSqlFlexibleServerReplicationRole? replicationRole, int? replicaCapacity, PostgreSqlFlexibleServerCreateMode? createMode) : base(id, name, resourceType, systemData, tags, location)
+ internal PostgreSqlFlexibleServerData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, PostgreSqlFlexibleServerSku sku, string administratorLogin, string administratorLoginPassword, PostgreSqlFlexibleServerVersion? version, string minorVersion, PostgreSqlFlexibleServerState? state, string fullyQualifiedDomainName, PostgreSqlFlexibleServerStorage storage, PostgreSqlFlexibleServerBackupProperties backup, PostgreSqlFlexibleServerNetwork network, PostgreSqlFlexibleServerHighAvailability highAvailability, PostgreSqlFlexibleServerMaintenanceWindow maintenanceWindow, ResourceIdentifier sourceServerResourceId, DateTimeOffset? pointInTimeUtc, string availabilityZone, PostgreSqlFlexibleServerCreateMode? createMode) : base(id, name, resourceType, systemData, tags, location)
{
Sku = sku;
- Identity = identity;
AdministratorLogin = administratorLogin;
AdministratorLoginPassword = administratorLoginPassword;
Version = version;
@@ -61,8 +55,6 @@ internal PostgreSqlFlexibleServerData(ResourceIdentifier id, string name, Resour
State = state;
FullyQualifiedDomainName = fullyQualifiedDomainName;
Storage = storage;
- AuthConfig = authConfig;
- DataEncryption = dataEncryption;
Backup = backup;
Network = network;
HighAvailability = highAvailability;
@@ -70,15 +62,11 @@ internal PostgreSqlFlexibleServerData(ResourceIdentifier id, string name, Resour
SourceServerResourceId = sourceServerResourceId;
PointInTimeUtc = pointInTimeUtc;
AvailabilityZone = availabilityZone;
- ReplicationRole = replicationRole;
- ReplicaCapacity = replicaCapacity;
CreateMode = createMode;
}
/// The SKU (pricing tier) of the server.
public PostgreSqlFlexibleServerSku Sku { get; set; }
- /// Describes the identity of the application.
- public PostgreSqlFlexibleServerUserAssignedIdentity Identity { get; set; }
/// The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).
public string AdministratorLogin { get; set; }
/// The administrator login password (required for server creation).
@@ -105,10 +93,6 @@ public int? StorageSizeInGB
}
}
- /// AuthConfig properties of a server.
- public PostgreSqlFlexibleServerAuthConfig AuthConfig { get; set; }
- /// Data encryption properties of a server.
- public PostgreSqlFlexibleServerDataEncryption DataEncryption { get; set; }
/// Backup properties of a server.
public PostgreSqlFlexibleServerBackupProperties Backup { get; set; }
/// Network properties of a server.
@@ -117,16 +101,12 @@ public int? StorageSizeInGB
public PostgreSqlFlexibleServerHighAvailability HighAvailability { get; set; }
/// Maintenance window properties of a server.
public PostgreSqlFlexibleServerMaintenanceWindow MaintenanceWindow { get; set; }
- /// The source server resource ID to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore' or 'Replica'.
+ /// The source server resource ID to restore from. It's required when 'createMode' is 'PointInTimeRestore'.
public ResourceIdentifier SourceServerResourceId { get; set; }
- /// Restore point creation time (ISO8601 format), specifying the time to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore'.
+ /// Restore point creation time (ISO8601 format), specifying the time to restore from. It's required when 'createMode' is 'PointInTimeRestore'.
public DateTimeOffset? PointInTimeUtc { get; set; }
/// availability zone information of the server.
public string AvailabilityZone { get; set; }
- /// Replication role of the server.
- public PostgreSqlFlexibleServerReplicationRole? ReplicationRole { get; set; }
- /// Replicas allowed for a server.
- public int? ReplicaCapacity { get; set; }
/// The mode to create a new PostgreSQL server.
public PostgreSqlFlexibleServerCreateMode? CreateMode { get; set; }
}
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlFlexibleServerDatabaseCollection.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlFlexibleServerDatabaseCollection.cs
index 8656660378e57..85be93d6d8028 100644
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlFlexibleServerDatabaseCollection.cs
+++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlFlexibleServerDatabaseCollection.cs
@@ -81,7 +81,7 @@ public virtual async Task
try
{
var response = await _postgreSqlFlexibleServerDatabaseDatabasesRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, databaseName, data, cancellationToken).ConfigureAwait(false);
- var operation = new FlexibleServersArmOperation(new PostgreSqlFlexibleServerDatabaseOperationSource(Client), _postgreSqlFlexibleServerDatabaseDatabasesClientDiagnostics, Pipeline, _postgreSqlFlexibleServerDatabaseDatabasesRestClient.CreateCreateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, databaseName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ var operation = new FlexibleServersArmOperation(new PostgreSqlFlexibleServerDatabaseOperationSource(Client), _postgreSqlFlexibleServerDatabaseDatabasesClientDiagnostics, Pipeline, _postgreSqlFlexibleServerDatabaseDatabasesRestClient.CreateCreateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, databaseName, data).Request, response, OperationFinalStateVia.Location);
if (waitUntil == WaitUntil.Completed)
await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
return operation;
@@ -122,7 +122,7 @@ public virtual ArmOperation CreateOrUp
try
{
var response = _postgreSqlFlexibleServerDatabaseDatabasesRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, databaseName, data, cancellationToken);
- var operation = new FlexibleServersArmOperation(new PostgreSqlFlexibleServerDatabaseOperationSource(Client), _postgreSqlFlexibleServerDatabaseDatabasesClientDiagnostics, Pipeline, _postgreSqlFlexibleServerDatabaseDatabasesRestClient.CreateCreateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, databaseName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ var operation = new FlexibleServersArmOperation(new PostgreSqlFlexibleServerDatabaseOperationSource(Client), _postgreSqlFlexibleServerDatabaseDatabasesClientDiagnostics, Pipeline, _postgreSqlFlexibleServerDatabaseDatabasesRestClient.CreateCreateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, databaseName, data).Request, response, OperationFinalStateVia.Location);
if (waitUntil == WaitUntil.Completed)
operation.WaitForCompletion(cancellationToken);
return operation;
diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlFlexibleServerDatabaseResource.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlFlexibleServerDatabaseResource.cs
index 0a9dfa9dc332a..bae9c31d07de4 100644
--- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlFlexibleServerDatabaseResource.cs
+++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/PostgreSqlFlexibleServerDatabaseResource.cs
@@ -244,7 +244,7 @@ public virtual async Task