Skip to content

Commit 9d70411

Browse files
committed
mitigate the breaking change
1 parent 989b8ea commit 9d70411

File tree

7 files changed

+190
-7
lines changed

7 files changed

+190
-7
lines changed

sdk/provisioning/Azure.Provisioning.RedisEnterprise/CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
# Release History
22

3-
## 1.1.0-beta.1 (Unreleased)
3+
## 1.1.0-beta.1 (2025-11-27)
44

55
### Features Added
66

7+
- Update api-version to `2025-07-01`.
8+
- Removed `ExperimentalAttribute` on the assembly.
9+
710
### Breaking Changes
811

12+
- Deprecated models `RedisEnterprisePrivateEndpointConnectionData`. Please use `RedisEnterprisePrivateEndpointConnection` instead.
13+
- Deprecated properties `RedisEnterpriseCluster.PrivateEndpointConnections`. Please use `RedisEnterpriseCluster.PrivateEndpointConnectionResources` instead.
14+
915
### Bugs Fixed
1016

1117
### Other Changes

sdk/provisioning/Azure.Provisioning.RedisEnterprise/api/Azure.Provisioning.RedisEnterprise.net8.0.cs

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ public partial class RedisEnterpriseCluster : Azure.Provisioning.Primitives.Prov
7171
public Azure.Provisioning.BicepValue<Azure.Core.AzureLocation> Location { get { throw null; } set { } }
7272
public Azure.Provisioning.BicepValue<Azure.Provisioning.RedisEnterprise.RedisEnterpriseTlsVersion> MinimumTlsVersion { get { throw null; } set { } }
7373
public Azure.Provisioning.BicepValue<string> Name { get { throw null; } set { } }
74-
public Azure.Provisioning.BicepList<Azure.Provisioning.RedisEnterprise.RedisEnterprisePrivateEndpointConnection> PrivateEndpointConnections { get { throw null; } }
74+
public Azure.Provisioning.BicepList<Azure.Provisioning.RedisEnterprise.RedisEnterprisePrivateEndpointConnection> PrivateEndpointConnectionResources { get { throw null; } }
75+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
76+
public Azure.Provisioning.BicepList<Azure.Provisioning.RedisEnterprise.RedisEnterprisePrivateEndpointConnectionData> PrivateEndpointConnections { get { throw null; } }
7577
public Azure.Provisioning.BicepValue<Azure.Provisioning.RedisEnterprise.RedisEnterpriseProvisioningStatus> ProvisioningState { get { throw null; } }
7678
public Azure.Provisioning.BicepValue<Azure.Provisioning.RedisEnterprise.RedisEnterprisePublicNetworkAccess> PublicNetworkAccess { get { throw null; } set { } }
7779
public Azure.Provisioning.BicepValue<string> RedisVersion { get { throw null; } }
@@ -271,6 +273,19 @@ public static partial class ResourceVersions
271273
public static readonly string V2025_07_01;
272274
}
273275
}
276+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
277+
public partial class RedisEnterprisePrivateEndpointConnectionData : Azure.Provisioning.Primitives.ProvisionableConstruct
278+
{
279+
public RedisEnterprisePrivateEndpointConnectionData() { }
280+
public Azure.Provisioning.RedisEnterprise.RedisEnterprisePrivateLinkServiceConnectionState ConnectionState { get { throw null; } set { } }
281+
public Azure.Provisioning.BicepValue<Azure.Core.ResourceIdentifier> Id { get { throw null; } }
282+
public Azure.Provisioning.BicepValue<string> Name { get { throw null; } }
283+
public Azure.Provisioning.BicepValue<Azure.Core.ResourceIdentifier> PrivateEndpointId { get { throw null; } }
284+
public Azure.Provisioning.BicepValue<Azure.Provisioning.RedisEnterprise.RedisEnterprisePrivateEndpointConnectionProvisioningState> ProvisioningState { get { throw null; } }
285+
public Azure.Provisioning.BicepValue<Azure.Core.ResourceType> ResourceType { get { throw null; } }
286+
public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } }
287+
protected override void DefineProvisionableProperties() { }
288+
}
274289
public enum RedisEnterprisePrivateEndpointConnectionProvisioningState
275290
{
276291
Succeeded = 0,

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

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ public partial class RedisEnterpriseCluster : Azure.Provisioning.Primitives.Prov
7171
public Azure.Provisioning.BicepValue<Azure.Core.AzureLocation> Location { get { throw null; } set { } }
7272
public Azure.Provisioning.BicepValue<Azure.Provisioning.RedisEnterprise.RedisEnterpriseTlsVersion> MinimumTlsVersion { get { throw null; } set { } }
7373
public Azure.Provisioning.BicepValue<string> Name { get { throw null; } set { } }
74-
public Azure.Provisioning.BicepList<Azure.Provisioning.RedisEnterprise.RedisEnterprisePrivateEndpointConnection> PrivateEndpointConnections { get { throw null; } }
74+
public Azure.Provisioning.BicepList<Azure.Provisioning.RedisEnterprise.RedisEnterprisePrivateEndpointConnection> PrivateEndpointConnectionResources { get { throw null; } }
75+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
76+
public Azure.Provisioning.BicepList<Azure.Provisioning.RedisEnterprise.RedisEnterprisePrivateEndpointConnectionData> PrivateEndpointConnections { get { throw null; } }
7577
public Azure.Provisioning.BicepValue<Azure.Provisioning.RedisEnterprise.RedisEnterpriseProvisioningStatus> ProvisioningState { get { throw null; } }
7678
public Azure.Provisioning.BicepValue<Azure.Provisioning.RedisEnterprise.RedisEnterprisePublicNetworkAccess> PublicNetworkAccess { get { throw null; } set { } }
7779
public Azure.Provisioning.BicepValue<string> RedisVersion { get { throw null; } }
@@ -271,6 +273,19 @@ public static partial class ResourceVersions
271273
public static readonly string V2025_07_01;
272274
}
273275
}
276+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
277+
public partial class RedisEnterprisePrivateEndpointConnectionData : Azure.Provisioning.Primitives.ProvisionableConstruct
278+
{
279+
public RedisEnterprisePrivateEndpointConnectionData() { }
280+
public Azure.Provisioning.RedisEnterprise.RedisEnterprisePrivateLinkServiceConnectionState ConnectionState { get { throw null; } set { } }
281+
public Azure.Provisioning.BicepValue<Azure.Core.ResourceIdentifier> Id { get { throw null; } }
282+
public Azure.Provisioning.BicepValue<string> Name { get { throw null; } }
283+
public Azure.Provisioning.BicepValue<Azure.Core.ResourceIdentifier> PrivateEndpointId { get { throw null; } }
284+
public Azure.Provisioning.BicepValue<Azure.Provisioning.RedisEnterprise.RedisEnterprisePrivateEndpointConnectionProvisioningState> ProvisioningState { get { throw null; } }
285+
public Azure.Provisioning.BicepValue<Azure.Core.ResourceType> ResourceType { get { throw null; } }
286+
public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } }
287+
protected override void DefineProvisionableProperties() { }
288+
}
274289
public enum RedisEnterprisePrivateEndpointConnectionProvisioningState
275290
{
276291
Succeeded = 0,
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
4+
#nullable enable
5+
6+
using System.ComponentModel;
7+
using Azure.Core;
8+
using Azure.Provisioning.Primitives;
9+
using Azure.Provisioning.Resources;
10+
11+
namespace Azure.Provisioning.RedisEnterprise;
12+
13+
/// <summary>
14+
/// A class representing the RedisEnterprisePrivateEndpointConnection data
15+
/// model. The Private Endpoint Connection resource.
16+
/// </summary>
17+
[EditorBrowsable(EditorBrowsableState.Never)]
18+
public partial class RedisEnterprisePrivateEndpointConnectionData : ProvisionableConstruct
19+
{
20+
/// <summary>
21+
/// Gets Id.
22+
/// </summary>
23+
public BicepValue<ResourceIdentifier> PrivateEndpointId
24+
{
25+
get { Initialize(); return _privateEndpointId!; }
26+
}
27+
private BicepValue<ResourceIdentifier>? _privateEndpointId;
28+
29+
/// <summary>
30+
/// A collection of information about the state of the connection between
31+
/// service consumer and provider.
32+
/// </summary>
33+
public RedisEnterprisePrivateLinkServiceConnectionState ConnectionState
34+
{
35+
get { Initialize(); return _connectionState!; }
36+
set { Initialize(); AssignOrReplace(ref _connectionState, value); }
37+
}
38+
private RedisEnterprisePrivateLinkServiceConnectionState? _connectionState;
39+
40+
/// <summary>
41+
/// The provisioning state of the private endpoint connection resource.
42+
/// </summary>
43+
public BicepValue<RedisEnterprisePrivateEndpointConnectionProvisioningState> ProvisioningState
44+
{
45+
get { Initialize(); return _provisioningState!; }
46+
}
47+
private BicepValue<RedisEnterprisePrivateEndpointConnectionProvisioningState>? _provisioningState;
48+
49+
/// <summary>
50+
/// Gets the Id.
51+
/// </summary>
52+
public BicepValue<ResourceIdentifier> Id
53+
{
54+
get { Initialize(); return _id!; }
55+
}
56+
private BicepValue<ResourceIdentifier>? _id;
57+
58+
/// <summary>
59+
/// Gets the Name.
60+
/// </summary>
61+
public BicepValue<string> Name
62+
{
63+
get { Initialize(); return _name!; }
64+
}
65+
private BicepValue<string>? _name;
66+
67+
/// <summary>
68+
/// Gets the ResourceType.
69+
/// </summary>
70+
public BicepValue<ResourceType> ResourceType
71+
{
72+
get { Initialize(); return _resourceType!; }
73+
}
74+
private BicepValue<ResourceType>? _resourceType;
75+
76+
/// <summary>
77+
/// Gets the SystemData.
78+
/// </summary>
79+
public SystemData SystemData
80+
{
81+
get { Initialize(); return _systemData!; }
82+
}
83+
private SystemData? _systemData;
84+
85+
/// <summary>
86+
/// Creates a new RedisEnterprisePrivateEndpointConnectionData.
87+
/// </summary>
88+
public RedisEnterprisePrivateEndpointConnectionData()
89+
{
90+
}
91+
92+
/// <summary>
93+
/// Define all the provisionable properties of
94+
/// RedisEnterprisePrivateEndpointConnectionData.
95+
/// </summary>
96+
protected override void DefineProvisionableProperties()
97+
{
98+
base.DefineProvisionableProperties();
99+
_privateEndpointId = DefineProperty<ResourceIdentifier>("PrivateEndpointId", ["properties", "privateEndpoint", "id"], isOutput: true);
100+
_connectionState = DefineModelProperty<RedisEnterprisePrivateLinkServiceConnectionState>("ConnectionState", ["properties", "privateLinkServiceConnectionState"]);
101+
_provisioningState = DefineProperty<RedisEnterprisePrivateEndpointConnectionProvisioningState>("ProvisioningState", ["properties", "provisioningState"], isOutput: true);
102+
_id = DefineProperty<ResourceIdentifier>("Id", ["id"], isOutput: true);
103+
_name = DefineProperty<string>("Name", ["name"], isOutput: true);
104+
_resourceType = DefineProperty<ResourceType>("ResourceType", ["ResourceType"], isOutput: true);
105+
_systemData = DefineModelProperty<SystemData>("SystemData", ["systemData"], isOutput: true);
106+
}
107+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
4+
#nullable enable
5+
6+
using System.ComponentModel;
7+
8+
namespace Azure.Provisioning.RedisEnterprise;
9+
10+
/// <summary>
11+
/// RedisEnterpriseCluster.
12+
/// </summary>
13+
public partial class RedisEnterpriseCluster
14+
{
15+
/// <summary>
16+
/// List of private endpoint connections associated with the specified
17+
/// Redis Enterprise cluster.
18+
///
19+
/// This property is obsoleted in favor of 'PrivateEndpointConnectionResources' property.
20+
/// </summary>
21+
[EditorBrowsable(EditorBrowsableState.Never)]
22+
public BicepList<RedisEnterprisePrivateEndpointConnectionData> PrivateEndpointConnections
23+
{
24+
get { Initialize(); return _privateEndpointConnections!; }
25+
}
26+
private BicepList<RedisEnterprisePrivateEndpointConnectionData>? _privateEndpointConnections;
27+
28+
private partial void DefineAdditionalProperties()
29+
{
30+
_privateEndpointConnections = DefineListProperty<RedisEnterprisePrivateEndpointConnectionData>("PrivateEndpointConnections", ["properties", "privateEndpointConnections"], isOutput: true);
31+
}
32+
}

sdk/provisioning/Azure.Provisioning.RedisEnterprise/src/Generated/RedisEnterpriseCluster.cs

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

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ public class RedisEnterpriseSpecification() :
1111
{
1212
protected override void Customize()
1313
{
14+
CustomizeProperty<RedisEnterpriseClusterResource>("PrivateEndpointConnections", p => p.Name = "PrivateEndpointConnectionResources");
15+
CustomizeResource<RedisEnterpriseClusterResource>(r =>
16+
{
17+
r.GeneratePartialPropertyDefinition = true;
18+
});
1419
// Naming requirements
1520
AddNameRequirements<RedisEnterpriseClusterResource>(min: 1, max: 60, lower: true, upper: true, digits: true, hyphen: true);
1621
AddNameRequirements<RedisEnterpriseDatabaseResource>(min: 1, max: 60, lower: true, upper: true, digits: true, hyphen: true);

0 commit comments

Comments
 (0)