From 2f3e11e553bee82adb5db1ca24f4dbf9583ed823 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 4 Apr 2023 05:16:06 +0000 Subject: [PATCH] CodeGen from PR 23423 in Azure/azure-rest-api-specs Merge be346ca5d4e12e45963ea2a420104e2787af4084 into c3a00cf753f01728e49bdb232054b0964075ec45 --- ...zure.ResourceManager.PostgreSql.netstandard2.0.cs | 7 +------ .../Models/PostgreSqlFlexibleServerDataEncryption.cs | 4 ++-- .../Models/PostgreSqlFlexibleServerIdentityType.cs | 3 --- .../Models/PostgreSqlFlexibleServerKeyType.cs | 8 ++++---- .../PostgreSqlFlexibleServerReplicationRole.cs | 12 ------------ .../Azure.ResourceManager.PostgreSql/src/autorest.md | 4 ++-- 6 files changed, 9 insertions(+), 29 deletions(-) diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/api/Azure.ResourceManager.PostgreSql.netstandard2.0.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/api/Azure.ResourceManager.PostgreSql.netstandard2.0.cs index 7c02cf257eda9..aeefb9aee8878 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/api/Azure.ResourceManager.PostgreSql.netstandard2.0.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/api/Azure.ResourceManager.PostgreSql.netstandard2.0.cs @@ -971,7 +971,6 @@ internal PostgreSqlFlexibleServerHyperscaleNodeEditionCapability() { } private readonly int _dummyPrimitive; public PostgreSqlFlexibleServerIdentityType(string value) { throw null; } public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerIdentityType None { get { throw null; } } - public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerIdentityType SystemAssigned { get { throw null; } } public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerIdentityType UserAssigned { get { throw null; } } public bool Equals(Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerIdentityType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] @@ -990,7 +989,7 @@ internal PostgreSqlFlexibleServerHyperscaleNodeEditionCapability() { } private readonly int _dummyPrimitive; public PostgreSqlFlexibleServerKeyType(string value) { throw null; } public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerKeyType AzureKeyVault { get { throw null; } } - public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerKeyType SystemAssigned { get { throw null; } } + public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerKeyType SystemManaged { get { throw null; } } public bool Equals(Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerKeyType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } @@ -1142,12 +1141,8 @@ public PostgreSqlFlexibleServerPatch() { } public PostgreSqlFlexibleServerReplicationRole(string value) { throw null; } public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerReplicationRole AsyncReplica { get { throw null; } } public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerReplicationRole GeoAsyncReplica { get { throw null; } } - public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerReplicationRole GeoSyncReplica { get { throw null; } } public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerReplicationRole None { get { throw null; } } public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerReplicationRole Primary { get { throw null; } } - public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerReplicationRole Secondary { get { throw null; } } - public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerReplicationRole SyncReplica { get { throw null; } } - public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerReplicationRole WalReplica { get { throw null; } } public bool Equals(Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerReplicationRole other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerDataEncryption.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerDataEncryption.cs index 365884adabb4e..111c992ac848d 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerDataEncryption.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerDataEncryption.cs @@ -21,7 +21,7 @@ public PostgreSqlFlexibleServerDataEncryption() /// Initializes a new instance of PostgreSqlFlexibleServerDataEncryption. /// URI for the key for data encryption for primary server. /// Resource Id for the User assigned identity to be used for data encryption for primary server. - /// Data encryption type to depict if it is System assigned vs Azure Key vault. + /// Data encryption type to depict if it is System Managed vs Azure Key vault. internal PostgreSqlFlexibleServerDataEncryption(Uri primaryKeyUri, ResourceIdentifier primaryUserAssignedIdentityId, PostgreSqlFlexibleServerKeyType? keyType) { PrimaryKeyUri = primaryKeyUri; @@ -33,7 +33,7 @@ internal PostgreSqlFlexibleServerDataEncryption(Uri primaryKeyUri, ResourceIdent public Uri PrimaryKeyUri { get; set; } /// Resource Id for the User assigned identity to be used for data encryption for primary server. public ResourceIdentifier PrimaryUserAssignedIdentityId { get; set; } - /// Data encryption type to depict if it is System assigned vs Azure Key vault. + /// Data encryption type to depict if it is System Managed vs Azure Key vault. public PostgreSqlFlexibleServerKeyType? KeyType { get; set; } } } diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerIdentityType.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerIdentityType.cs index fdc200e8082c5..d740d3e7039c5 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerIdentityType.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerIdentityType.cs @@ -23,13 +23,10 @@ public PostgreSqlFlexibleServerIdentityType(string value) } private const string NoneValue = "None"; - private const string SystemAssignedValue = "SystemAssigned"; private const string UserAssignedValue = "UserAssigned"; /// None. public static PostgreSqlFlexibleServerIdentityType None { get; } = new PostgreSqlFlexibleServerIdentityType(NoneValue); - /// SystemAssigned. - public static PostgreSqlFlexibleServerIdentityType SystemAssigned { get; } = new PostgreSqlFlexibleServerIdentityType(SystemAssignedValue); /// UserAssigned. public static PostgreSqlFlexibleServerIdentityType UserAssigned { get; } = new PostgreSqlFlexibleServerIdentityType(UserAssignedValue); /// Determines if two values are the same. diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerKeyType.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerKeyType.cs index 4c2c933963e9d..51613de146b09 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerKeyType.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerKeyType.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models { - /// Data encryption type to depict if it is System assigned vs Azure Key vault. + /// Data encryption type to depict if it is System Managed vs Azure Key vault. public readonly partial struct PostgreSqlFlexibleServerKeyType : IEquatable { private readonly string _value; @@ -22,11 +22,11 @@ public PostgreSqlFlexibleServerKeyType(string value) _value = value ?? throw new ArgumentNullException(nameof(value)); } - private const string SystemAssignedValue = "SystemAssigned"; + private const string SystemManagedValue = "SystemManaged"; private const string AzureKeyVaultValue = "AzureKeyVault"; - /// SystemAssigned. - public static PostgreSqlFlexibleServerKeyType SystemAssigned { get; } = new PostgreSqlFlexibleServerKeyType(SystemAssignedValue); + /// SystemManaged. + public static PostgreSqlFlexibleServerKeyType SystemManaged { get; } = new PostgreSqlFlexibleServerKeyType(SystemManagedValue); /// AzureKeyVault. public static PostgreSqlFlexibleServerKeyType AzureKeyVault { get; } = new PostgreSqlFlexibleServerKeyType(AzureKeyVaultValue); /// Determines if two values are the same. diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerReplicationRole.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerReplicationRole.cs index 2bcb72478ded2..119ec06dd4e26 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerReplicationRole.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/Models/PostgreSqlFlexibleServerReplicationRole.cs @@ -24,27 +24,15 @@ public PostgreSqlFlexibleServerReplicationRole(string value) private const string NoneValue = "None"; private const string PrimaryValue = "Primary"; - private const string SecondaryValue = "Secondary"; - private const string WalReplicaValue = "WalReplica"; - private const string SyncReplicaValue = "SyncReplica"; private const string AsyncReplicaValue = "AsyncReplica"; - private const string GeoSyncReplicaValue = "GeoSyncReplica"; private const string GeoAsyncReplicaValue = "GeoAsyncReplica"; /// None. public static PostgreSqlFlexibleServerReplicationRole None { get; } = new PostgreSqlFlexibleServerReplicationRole(NoneValue); /// Primary. public static PostgreSqlFlexibleServerReplicationRole Primary { get; } = new PostgreSqlFlexibleServerReplicationRole(PrimaryValue); - /// Secondary. - public static PostgreSqlFlexibleServerReplicationRole Secondary { get; } = new PostgreSqlFlexibleServerReplicationRole(SecondaryValue); - /// WalReplica. - public static PostgreSqlFlexibleServerReplicationRole WalReplica { get; } = new PostgreSqlFlexibleServerReplicationRole(WalReplicaValue); - /// SyncReplica. - public static PostgreSqlFlexibleServerReplicationRole SyncReplica { get; } = new PostgreSqlFlexibleServerReplicationRole(SyncReplicaValue); /// AsyncReplica. public static PostgreSqlFlexibleServerReplicationRole AsyncReplica { get; } = new PostgreSqlFlexibleServerReplicationRole(AsyncReplicaValue); - /// GeoSyncReplica. - public static PostgreSqlFlexibleServerReplicationRole GeoSyncReplica { get; } = new PostgreSqlFlexibleServerReplicationRole(GeoSyncReplicaValue); /// GeoAsyncReplica. public static PostgreSqlFlexibleServerReplicationRole GeoAsyncReplica { get; } = new PostgreSqlFlexibleServerReplicationRole(GeoAsyncReplicaValue); /// Determines if two values are the same. diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/autorest.md b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/autorest.md index d97f998ed5891..cf2ddea56f2ce 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/autorest.md +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/autorest.md @@ -21,7 +21,7 @@ batch: ``` yaml $(tag) == 'package-2020-01-01' namespace: Azure.ResourceManager.PostgreSql -require: https://github.com/Azure/azure-rest-api-specs/blob/eca38ee0caf445cb1e79c8e7bbaf9e1dca36479a/specification/postgresql/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/postgresql/resource-manager/readme.md output-folder: $(this-folder)/PostgreSql/Generated format-by-name-rules: @@ -146,7 +146,7 @@ directive: ``` yaml $(tag) == 'package-flexibleserver-2022-12-01' namespace: Azure.ResourceManager.PostgreSql.FlexibleServers -require: https://github.com/Azure/azure-rest-api-specs/blob/deba715c80b5b523a84d32fa2764c0f6e867b4d0/specification/postgresql/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/postgresql/resource-manager/readme.md output-folder: $(this-folder)/PostgreSqlFlexibleServers/Generated format-by-name-rules: