Skip to content

Commit e35791a

Browse files
dvbbYao725
andauthored
[Private] Rename some models (Azure#32796)
* PrivateZone => PrivateDnsZone * update customization * update * update changelog * Update Azure.ResourceManager.Dns.csproj * update dns changelog * make parameter naming consistent `privateZoneName` * update dns changelog Co-authored-by: Yao Kou <yaokou@microsoft.com>
1 parent a2f867e commit e35791a

37 files changed

+371
-367
lines changed

sdk/dns/Azure.ResourceManager.Dns/CHANGELOG.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
# Release History
22

3-
## 1.0.0 (2022-09-29)
3+
## 1.0.0 (2022-12-01)
44

5-
This package is the first stable release of the DNS Management library.
5+
This package is the first stable release of the Azure DNS management library.
66

77
### Breaking Changes
88

9-
- Renamed the model `RecordSetData` to `RecordSetData`.
10-
- Renamed the method `GetAllRecordSets` to `GetAllRecordData`.
11-
- Renamed properties `MaxNumberOfRecordSets`, `MaxNumberOfRecordsPerRecordSet` and `NumberOfRecordSets` in the model `DnsZoneData`.
12-
- Removed the method `GetRecordSets`.
9+
- Add `Dns` prefix for some models
10+
- Rename `RecordSet` to `Record`
11+
- Renamed some properties to more comprehensive names.
1312

1413
### Other Changes
1514

16-
- Upgraded dependent Azure.ResourceManager to 1.3.1.
17-
- Optimized the implementation of methods related to tag operations.
15+
- Upgraded dependent `Azure.ResourceManager` to 1.3.2
16+
- Upgraded dependent `Azure.Core` to 1.26.0
17+
- Optimized the implementation of methods related to tag operations.
1818

1919
## 1.0.0-beta.2 (2022-08-29)
2020

sdk/privatedns/Azure.ResourceManager.PrivateDns/CHANGELOG.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
# Release History
22

3-
## 1.0.0-beta.2 (Unreleased)
4-
5-
### Features Added
3+
## 1.0.0-beta.2 (2022-12-01)
64

75
### Breaking Changes
8-
9-
### Bugs Fixed
6+
7+
- Split `RecordSet` to each `PrivateDns[RecordType]Record`
8+
- Rename `PrivateZone` to `PrivateDnsZone`
9+
- Rename `RecordSet` to `Record`
10+
- Renamed some properties to more comprehensive names.
1011

1112
### Other Changes
13+
- Upgraded dependent `Azure.ResourceManager` to 1.3.2
14+
- Upgraded dependent `Azure.Core` to 1.26.0
1215

1316
## 1.0.0-beta.1 (2022-08-29)
1417

sdk/privatedns/Azure.ResourceManager.PrivateDns/api/Azure.ResourceManager.PrivateDns.netstandard2.0.cs

Lines changed: 31 additions & 31 deletions
Large diffs are not rendered by default.

sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Customization/PrivateDnsARecordCollection.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ namespace Azure.ResourceManager.PrivateDns
2222
{
2323
/// <summary>
2424
/// A class representing a collection of <see cref="PrivateDnsARecordResource" /> and their operations.
25-
/// Each <see cref="PrivateDnsARecordResource" /> in the collection will belong to the same instance of <see cref="PrivateZoneResource" />.
26-
/// To get an <see cref="PrivateDnsARecordCollection" /> instance call the GetPrivateDnsARecords method from an instance of <see cref="PrivateZoneResource" />.
25+
/// Each <see cref="PrivateDnsARecordResource" /> in the collection will belong to the same instance of <see cref="PrivateDnsZoneResource" />.
26+
/// To get an <see cref="PrivateDnsARecordCollection" /> instance call the GetPrivateDnsARecords method from an instance of <see cref="PrivateDnsZoneResource" />.
2727
/// </summary>
2828
public partial class PrivateDnsARecordCollection : ArmCollection, IEnumerable<PrivateDnsARecordResource>, IAsyncEnumerable<PrivateDnsARecordResource>
2929
{
@@ -50,8 +50,8 @@ internal PrivateDnsARecordCollection(ArmClient client, ResourceIdentifier id) :
5050

5151
internal static void ValidateResourceId(ResourceIdentifier id)
5252
{
53-
if (id.ResourceType != PrivateZoneResource.ResourceType)
54-
throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, PrivateZoneResource.ResourceType), nameof(id));
53+
if (id.ResourceType != PrivateDnsZoneResource.ResourceType)
54+
throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, PrivateDnsZoneResource.ResourceType), nameof(id));
5555
}
5656

5757
/// <summary>

sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Customization/PrivateDnsARecordResource.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace Azure.ResourceManager.PrivateDns
2121
/// A Class representing an PrivateDnsARecord along with the instance operations that can be performed on it.
2222
/// If you have a <see cref="ResourceIdentifier" /> you can construct an <see cref="PrivateDnsARecordResource" />
2323
/// from an instance of <see cref="ArmClient" /> using the GetPrivateDnsARecordResource method.
24-
/// Otherwise you can get one from its parent resource <see cref="PrivateZoneResource" /> using the GetPrivateDnsARecord method.
24+
/// Otherwise you can get one from its parent resource <see cref="PrivateDnsZoneResource" /> using the GetPrivateDnsARecord method.
2525
/// </summary>
2626
public partial class PrivateDnsARecordResource : ArmResource
2727
{

sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Customization/PrivateDnsAaaaRecordCollection.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ namespace Azure.ResourceManager.PrivateDns
2222
{
2323
/// <summary>
2424
/// A class representing a collection of <see cref="PrivateDnsAaaaRecordResource" /> and their operations.
25-
/// Each <see cref="PrivateDnsAaaaRecordResource" /> in the collection will belong to the same instance of <see cref="PrivateZoneResource" />.
26-
/// To get an <see cref="PrivateDnsAaaaRecordCollection" /> instance call the GetPrivateDnsAaaaRecords method from an instance of <see cref="PrivateZoneResource" />.
25+
/// Each <see cref="PrivateDnsAaaaRecordResource" /> in the collection will belong to the same instance of <see cref="PrivateDnsZoneResource" />.
26+
/// To get an <see cref="PrivateDnsAaaaRecordCollection" /> instance call the GetPrivateDnsAaaaRecords method from an instance of <see cref="PrivateDnsZoneResource" />.
2727
/// </summary>
2828
public partial class PrivateDnsAaaaRecordCollection : ArmCollection, IEnumerable<PrivateDnsAaaaRecordResource>, IAsyncEnumerable<PrivateDnsAaaaRecordResource>
2929
{
@@ -50,8 +50,8 @@ internal PrivateDnsAaaaRecordCollection(ArmClient client, ResourceIdentifier id)
5050

5151
internal static void ValidateResourceId(ResourceIdentifier id)
5252
{
53-
if (id.ResourceType != PrivateZoneResource.ResourceType)
54-
throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, PrivateZoneResource.ResourceType), nameof(id));
53+
if (id.ResourceType != PrivateDnsZoneResource.ResourceType)
54+
throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, PrivateDnsZoneResource.ResourceType), nameof(id));
5555
}
5656

5757
/// <summary>

sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Customization/PrivateDnsAaaaRecordResource.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace Azure.ResourceManager.PrivateDns
2121
/// A Class representing an PrivateDnsAaaaRecord along with the instance operations that can be performed on it.
2222
/// If you have a <see cref="ResourceIdentifier" /> you can construct an <see cref="PrivateDnsAaaaRecordResource" />
2323
/// from an instance of <see cref="ArmClient" /> using the GetPrivateDnsAaaaRecordResource method.
24-
/// Otherwise you can get one from its parent resource <see cref="PrivateZoneResource" /> using the GetPrivateDnsAaaaRecord method.
24+
/// Otherwise you can get one from its parent resource <see cref="PrivateDnsZoneResource" /> using the GetPrivateDnsAaaaRecord method.
2525
/// </summary>
2626
public partial class PrivateDnsAaaaRecordResource : ArmResource
2727
{

sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Customization/PrivateDnsCnameRecordCollection.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ namespace Azure.ResourceManager.PrivateDns
2222
{
2323
/// <summary>
2424
/// A class representing a collection of <see cref="PrivateDnsCnameRecordResource" /> and their operations.
25-
/// Each <see cref="PrivateDnsCnameRecordResource" /> in the collection will belong to the same instance of <see cref="PrivateZoneResource" />.
26-
/// To get a <see cref="PrivateDnsCnameRecordCollection" /> instance call the GetPrivateDnsCnameRecords method from an instance of <see cref="PrivateZoneResource" />.
25+
/// Each <see cref="PrivateDnsCnameRecordResource" /> in the collection will belong to the same instance of <see cref="PrivateDnsZoneResource" />.
26+
/// To get a <see cref="PrivateDnsCnameRecordCollection" /> instance call the GetPrivateDnsCnameRecords method from an instance of <see cref="PrivateDnsZoneResource" />.
2727
/// </summary>
2828
public partial class PrivateDnsCnameRecordCollection : ArmCollection, IEnumerable<PrivateDnsCnameRecordResource>, IAsyncEnumerable<PrivateDnsCnameRecordResource>
2929
{
@@ -50,8 +50,8 @@ internal PrivateDnsCnameRecordCollection(ArmClient client, ResourceIdentifier id
5050

5151
internal static void ValidateResourceId(ResourceIdentifier id)
5252
{
53-
if (id.ResourceType != PrivateZoneResource.ResourceType)
54-
throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, PrivateZoneResource.ResourceType), nameof(id));
53+
if (id.ResourceType != PrivateDnsZoneResource.ResourceType)
54+
throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, PrivateDnsZoneResource.ResourceType), nameof(id));
5555
}
5656

5757
/// <summary>

sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Customization/PrivateDnsCnameRecordResource.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace Azure.ResourceManager.PrivateDns
2121
/// A Class representing a PrivateDnsCnameRecord along with the instance operations that can be performed on it.
2222
/// If you have a <see cref="ResourceIdentifier" /> you can construct a <see cref="PrivateDnsCnameRecordResource" />
2323
/// from an instance of <see cref="ArmClient" /> using the GetPrivateDnsCnameRecordResource method.
24-
/// Otherwise you can get one from its parent resource <see cref="PrivateZoneResource" /> using the GetPrivateDnsCnameRecord method.
24+
/// Otherwise you can get one from its parent resource <see cref="PrivateDnsZoneResource" /> using the GetPrivateDnsCnameRecord method.
2525
/// </summary>
2626
public partial class PrivateDnsCnameRecordResource : ArmResource
2727
{

sdk/privatedns/Azure.ResourceManager.PrivateDns/src/Customization/PrivateDnsMXRecordCollection.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ namespace Azure.ResourceManager.PrivateDns
2222
{
2323
/// <summary>
2424
/// A class representing a collection of <see cref="PrivateDnsMXRecordResource" /> and their operations.
25-
/// Each <see cref="PrivateDnsMXRecordResource" /> in the collection will belong to the same instance of <see cref="PrivateZoneResource" />.
26-
/// To get a <see cref="PrivateDnsMXRecordCollection" /> instance call the GetPrivateDnsMXRecords method from an instance of <see cref="PrivateZoneResource" />.
25+
/// Each <see cref="PrivateDnsMXRecordResource" /> in the collection will belong to the same instance of <see cref="PrivateDnsZoneResource" />.
26+
/// To get a <see cref="PrivateDnsMXRecordCollection" /> instance call the GetPrivateDnsMXRecords method from an instance of <see cref="PrivateDnsZoneResource" />.
2727
/// </summary>
2828
public partial class PrivateDnsMXRecordCollection : ArmCollection, IEnumerable<PrivateDnsMXRecordResource>, IAsyncEnumerable<PrivateDnsMXRecordResource>
2929
{
@@ -50,8 +50,8 @@ internal PrivateDnsMXRecordCollection(ArmClient client, ResourceIdentifier id) :
5050

5151
internal static void ValidateResourceId(ResourceIdentifier id)
5252
{
53-
if (id.ResourceType != PrivateZoneResource.ResourceType)
54-
throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, PrivateZoneResource.ResourceType), nameof(id));
53+
if (id.ResourceType != PrivateDnsZoneResource.ResourceType)
54+
throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, PrivateDnsZoneResource.ResourceType), nameof(id));
5555
}
5656

5757
/// <summary>

0 commit comments

Comments
 (0)