Skip to content

Commit e6c02ae

Browse files
ajtiwari07ArcturusZhanglive1206
authored
Azure Redis .Net SDK update for new api v2023-04-01 (Azure#36451)
* SDK and Tests generated. * fix customized code * All existing tests run with local app registration * Update failing UTs * Modified test with storage-subscription-id param. * regen after merge * Remove stale commentary * Added changelogs and removed assertions. * Update the version from the change log. * Change log merged from latest main commit. * Extra whitespace removed. * Change log updated. * fix * test * Fix DFE dependency --------- Co-authored-by: ArcturusZhang <[email protected]> Co-authored-by: Wei Hu <[email protected]>
1 parent db66fe2 commit e6c02ae

File tree

46 files changed

+9937
-16647
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+9937
-16647
lines changed

eng/Directory.Build.Common.targets

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,6 @@
213213
<ItemGroup Condition="'$(IsMgmtLibrary)' == 'true' and '$(IsTestProject)' != 'true'">
214214

215215
<PackageReference Include="Azure.Core" />
216-
<PackageReference Include="Azure.Core.Expressions.DataFactory"/>
217216
<PackageReference Include="System.Text.Json" />
218217

219218
<!-- TODO: Review these file references-->
@@ -223,6 +222,11 @@
223222
<Compile Include="$(AzureCoreSharedSources)ApiVersionString.cs" LinkBase="Shared/Core" />
224223
</ItemGroup>
225224

225+
<!-- DataFactory Project Specific Overrides-->
226+
<ItemGroup Condition="$(MSBuildProjectName) == 'Azure.ResourceManager.DataFactory'">
227+
<PackageReference Include="Azure.Core.Expressions.DataFactory"/>
228+
</ItemGroup>
229+
226230
<!-- Management Client TEST Project Specific Overrides -->
227231
<ItemGroup Condition="('$(IsMgmtLibrary)' == 'true' and '$(IsTestProject)' == 'true') or '$(IsStorageTest)' == 'true'">
228232
<ProjectReference Condition="'$(IsMgmtLibrary)' == 'true' and '$(IsTestProject)' == 'true'" Include="$(AzureCoreTestFramework)" />

sdk/redis/Azure.ResourceManager.Redis/CHANGELOG.md

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

3-
## 1.2.0-beta.2 (Unreleased)
3+
## 1.2.0 (2023-06-24)
44

55
### Features Added
66

7-
### Breaking Changes
7+
- Enable Persistence(aof/rdb) on storage account in a different subscription than the cache via Managed Identity Auth Type. RedisConfiguration has a new property storage-subscription-id.
88

99
### Bugs Fixed
1010

11-
### Other Changes
11+
- Updated validation to ensure access to storage account while enabling persistence.
1212

1313
## 1.2.0-beta.1 (2023-05-31)
1414

sdk/redis/Azure.ResourceManager.Redis/api/Azure.ResourceManager.Redis.netstandard2.0.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ namespace Azure.ResourceManager.Redis.Models
261261
public static partial class ArmRedisModelFactory
262262
{
263263
public static Azure.ResourceManager.Redis.Models.RedisAccessKeys RedisAccessKeys(string primaryKey = null, string secondaryKey = null) { throw null; }
264-
public static Azure.ResourceManager.Redis.Models.RedisCommonConfiguration RedisCommonConfiguration(bool? isRdbBackupEnabled = default(bool?), string rdbBackupFrequency = null, int? rdbBackupMaxSnapshotCount = default(int?), string rdbStorageConnectionString = null, bool? isAofBackupEnabled = default(bool?), string aofStorageConnectionString0 = null, string aofStorageConnectionString1 = null, string maxFragmentationMemoryReserved = null, string maxMemoryPolicy = null, string maxMemoryReserved = null, string maxMemoryDelta = null, string maxClients = null, string preferredDataArchiveAuthMethod = null, string preferredDataPersistenceAuthMethod = null, string zonalConfiguration = null, string authNotRequired = null, System.Collections.Generic.IDictionary<string, System.BinaryData> additionalProperties = null) { throw null; }
264+
public static Azure.ResourceManager.Redis.Models.RedisCommonConfiguration RedisCommonConfiguration(bool? isRdbBackupEnabled = default(bool?), string rdbBackupFrequency = null, int? rdbBackupMaxSnapshotCount = default(int?), string rdbStorageConnectionString = null, bool? isAofBackupEnabled = default(bool?), string aofStorageConnectionString0 = null, string aofStorageConnectionString1 = null, string maxFragmentationMemoryReserved = null, string maxMemoryPolicy = null, string maxMemoryReserved = null, string maxMemoryDelta = null, string maxClients = null, string preferredDataArchiveAuthMethod = null, string preferredDataPersistenceAuthMethod = null, string zonalConfiguration = null, string authNotRequired = null, string storageSubscriptionId = null, System.Collections.Generic.IDictionary<string, System.BinaryData> additionalProperties = null) { throw null; }
265265
public static Azure.ResourceManager.Redis.RedisData RedisData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary<string, string> tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), System.Collections.Generic.IEnumerable<string> zones = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.Redis.Models.RedisCommonConfiguration redisConfiguration = null, string redisVersion = null, bool? enableNonSslPort = default(bool?), int? replicasPerMaster = default(int?), int? replicasPerPrimary = default(int?), System.Collections.Generic.IDictionary<string, string> tenantSettings = null, int? shardCount = default(int?), Azure.ResourceManager.Redis.Models.RedisTlsVersion? minimumTlsVersion = default(Azure.ResourceManager.Redis.Models.RedisTlsVersion?), Azure.ResourceManager.Redis.Models.RedisPublicNetworkAccess? publicNetworkAccess = default(Azure.ResourceManager.Redis.Models.RedisPublicNetworkAccess?), Azure.ResourceManager.Redis.Models.RedisSku sku = null, Azure.Core.ResourceIdentifier subnetId = null, System.Net.IPAddress staticIP = null, Azure.ResourceManager.Redis.Models.RedisProvisioningState? provisioningState = default(Azure.ResourceManager.Redis.Models.RedisProvisioningState?), string hostName = null, int? port = default(int?), int? sslPort = default(int?), Azure.ResourceManager.Redis.Models.RedisAccessKeys accessKeys = null, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Resources.Models.SubResource> linkedServers = null, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Redis.Models.RedisInstanceDetails> instances = null, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Redis.RedisPrivateEndpointConnectionData> privateEndpointConnections = null) { throw null; }
266266
public static Azure.ResourceManager.Redis.RedisFirewallRuleData RedisFirewallRuleData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Net.IPAddress startIP = null, System.Net.IPAddress endIP = null) { throw null; }
267267
public static Azure.ResourceManager.Redis.Models.RedisForceRebootResult RedisForceRebootResult(string message = null) { throw null; }
@@ -280,13 +280,15 @@ public ExportRdbContent(string prefix, string container) { }
280280
public string Format { get { throw null; } set { } }
281281
public string PreferredDataArchiveAuthMethod { get { throw null; } set { } }
282282
public string Prefix { get { throw null; } }
283+
public string StorageSubscriptionId { get { throw null; } set { } }
283284
}
284285
public partial class ImportRdbContent
285286
{
286287
public ImportRdbContent(System.Collections.Generic.IEnumerable<string> files) { }
287288
public System.Collections.Generic.IList<string> Files { get { throw null; } }
288289
public string Format { get { throw null; } set { } }
289290
public string PreferredDataArchiveAuthMethod { get { throw null; } set { } }
291+
public string StorageSubscriptionId { get { throw null; } set { } }
290292
}
291293
public partial class RedisAccessKeys
292294
{
@@ -313,6 +315,7 @@ public RedisCommonConfiguration() { }
313315
public string RdbBackupFrequency { get { throw null; } set { } }
314316
public int? RdbBackupMaxSnapshotCount { get { throw null; } set { } }
315317
public string RdbStorageConnectionString { get { throw null; } set { } }
318+
public string StorageSubscriptionId { get { throw null; } set { } }
316319
public string ZonalConfiguration { get { throw null; } }
317320
}
318321
public partial class RedisCreateOrUpdateContent

sdk/redis/Azure.ResourceManager.Redis/samples/Generated/Samples/Sample_RedisCollection.cs

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

sdk/redis/Azure.ResourceManager.Redis/samples/Generated/Samples/Sample_RedisFirewallRuleCollection.cs

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

sdk/redis/Azure.ResourceManager.Redis/samples/Generated/Samples/Sample_RedisFirewallRuleResource.cs

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

0 commit comments

Comments
 (0)