Skip to content

Commit c64893c

Browse files
SiddharthChatrolaMsshahabhijeet
authored andcommitted
Updating .net sdk from latest api version (#3932)
* Updating .net sdk from latest api version * Regenerated code and adding some new files * Changing package version and making it non preview * Undo comments in AssemblyInfo * Added release notes
1 parent 03dbdba commit c64893c

File tree

76 files changed

+17386
-3655
lines changed

Some content is hidden

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

76 files changed

+17386
-3655
lines changed

src/SDKs/RedisCache/AzSdk.RP.props

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
<!--This file and it's contents are updated at build time moving or editing might result in build failure. Take due deligence while editing this file-->
3+
<PropertyGroup>
4+
<AzureApiTag>Cache_2017-10-01;</AzureApiTag>
5+
<PackageTags>$(PackageTags);$(CommonTags);$(AzureApiTag);</PackageTags>
6+
</PropertyGroup>
7+
</Project>

src/SDKs/RedisCache/Management.Redis/Generated/FirewallRulesOperations.cs

Lines changed: 1053 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 240 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,240 @@
1+
// <auto-generated>
2+
// Copyright (c) Microsoft Corporation. All rights reserved.
3+
// Licensed under the MIT License. See License.txt in the project root for
4+
// license information.
5+
//
6+
// Code generated by Microsoft (R) AutoRest Code Generator.
7+
// Changes may cause incorrect behavior and will be lost if the code is
8+
// regenerated.
9+
// </auto-generated>
10+
11+
namespace Microsoft.Azure.Management.Redis
12+
{
13+
using Microsoft.Rest;
14+
using Microsoft.Rest.Azure;
15+
using Models;
16+
using System.Threading;
17+
using System.Threading.Tasks;
18+
19+
/// <summary>
20+
/// Extension methods for FirewallRulesOperations.
21+
/// </summary>
22+
public static partial class FirewallRulesOperationsExtensions
23+
{
24+
/// <summary>
25+
/// Gets all firewall rules in the specified redis cache.
26+
/// </summary>
27+
/// <param name='operations'>
28+
/// The operations group for this extension method.
29+
/// </param>
30+
/// <param name='resourceGroupName'>
31+
/// The name of the resource group.
32+
/// </param>
33+
/// <param name='cacheName'>
34+
/// The name of the Redis cache.
35+
/// </param>
36+
public static IPage<RedisFirewallRule> ListByRedisResource(this IFirewallRulesOperations operations, string resourceGroupName, string cacheName)
37+
{
38+
return operations.ListByRedisResourceAsync(resourceGroupName, cacheName).GetAwaiter().GetResult();
39+
}
40+
41+
/// <summary>
42+
/// Gets all firewall rules in the specified redis cache.
43+
/// </summary>
44+
/// <param name='operations'>
45+
/// The operations group for this extension method.
46+
/// </param>
47+
/// <param name='resourceGroupName'>
48+
/// The name of the resource group.
49+
/// </param>
50+
/// <param name='cacheName'>
51+
/// The name of the Redis cache.
52+
/// </param>
53+
/// <param name='cancellationToken'>
54+
/// The cancellation token.
55+
/// </param>
56+
public static async Task<IPage<RedisFirewallRule>> ListByRedisResourceAsync(this IFirewallRulesOperations operations, string resourceGroupName, string cacheName, CancellationToken cancellationToken = default(CancellationToken))
57+
{
58+
using (var _result = await operations.ListByRedisResourceWithHttpMessagesAsync(resourceGroupName, cacheName, null, cancellationToken).ConfigureAwait(false))
59+
{
60+
return _result.Body;
61+
}
62+
}
63+
64+
/// <summary>
65+
/// Create or update a redis cache firewall rule
66+
/// </summary>
67+
/// <param name='operations'>
68+
/// The operations group for this extension method.
69+
/// </param>
70+
/// <param name='resourceGroupName'>
71+
/// The name of the resource group.
72+
/// </param>
73+
/// <param name='cacheName'>
74+
/// The name of the Redis cache.
75+
/// </param>
76+
/// <param name='ruleName'>
77+
/// The name of the firewall rule.
78+
/// </param>
79+
/// <param name='parameters'>
80+
/// Parameters supplied to the create or update redis firewall rule operation.
81+
/// </param>
82+
public static RedisFirewallRule CreateOrUpdate(this IFirewallRulesOperations operations, string resourceGroupName, string cacheName, string ruleName, RedisFirewallRuleCreateParameters parameters)
83+
{
84+
return operations.CreateOrUpdateAsync(resourceGroupName, cacheName, ruleName, parameters).GetAwaiter().GetResult();
85+
}
86+
87+
/// <summary>
88+
/// Create or update a redis cache firewall rule
89+
/// </summary>
90+
/// <param name='operations'>
91+
/// The operations group for this extension method.
92+
/// </param>
93+
/// <param name='resourceGroupName'>
94+
/// The name of the resource group.
95+
/// </param>
96+
/// <param name='cacheName'>
97+
/// The name of the Redis cache.
98+
/// </param>
99+
/// <param name='ruleName'>
100+
/// The name of the firewall rule.
101+
/// </param>
102+
/// <param name='parameters'>
103+
/// Parameters supplied to the create or update redis firewall rule operation.
104+
/// </param>
105+
/// <param name='cancellationToken'>
106+
/// The cancellation token.
107+
/// </param>
108+
public static async Task<RedisFirewallRule> CreateOrUpdateAsync(this IFirewallRulesOperations operations, string resourceGroupName, string cacheName, string ruleName, RedisFirewallRuleCreateParameters parameters, CancellationToken cancellationToken = default(CancellationToken))
109+
{
110+
using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, cacheName, ruleName, parameters, null, cancellationToken).ConfigureAwait(false))
111+
{
112+
return _result.Body;
113+
}
114+
}
115+
116+
/// <summary>
117+
/// Gets a single firewall rule in a specified redis cache.
118+
/// </summary>
119+
/// <param name='operations'>
120+
/// The operations group for this extension method.
121+
/// </param>
122+
/// <param name='resourceGroupName'>
123+
/// The name of the resource group.
124+
/// </param>
125+
/// <param name='cacheName'>
126+
/// The name of the Redis cache.
127+
/// </param>
128+
/// <param name='ruleName'>
129+
/// The name of the firewall rule.
130+
/// </param>
131+
public static RedisFirewallRule Get(this IFirewallRulesOperations operations, string resourceGroupName, string cacheName, string ruleName)
132+
{
133+
return operations.GetAsync(resourceGroupName, cacheName, ruleName).GetAwaiter().GetResult();
134+
}
135+
136+
/// <summary>
137+
/// Gets a single firewall rule in a specified redis cache.
138+
/// </summary>
139+
/// <param name='operations'>
140+
/// The operations group for this extension method.
141+
/// </param>
142+
/// <param name='resourceGroupName'>
143+
/// The name of the resource group.
144+
/// </param>
145+
/// <param name='cacheName'>
146+
/// The name of the Redis cache.
147+
/// </param>
148+
/// <param name='ruleName'>
149+
/// The name of the firewall rule.
150+
/// </param>
151+
/// <param name='cancellationToken'>
152+
/// The cancellation token.
153+
/// </param>
154+
public static async Task<RedisFirewallRule> GetAsync(this IFirewallRulesOperations operations, string resourceGroupName, string cacheName, string ruleName, CancellationToken cancellationToken = default(CancellationToken))
155+
{
156+
using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, cacheName, ruleName, null, cancellationToken).ConfigureAwait(false))
157+
{
158+
return _result.Body;
159+
}
160+
}
161+
162+
/// <summary>
163+
/// Deletes a single firewall rule in a specified redis cache.
164+
/// </summary>
165+
/// <param name='operations'>
166+
/// The operations group for this extension method.
167+
/// </param>
168+
/// <param name='resourceGroupName'>
169+
/// The name of the resource group.
170+
/// </param>
171+
/// <param name='cacheName'>
172+
/// The name of the Redis cache.
173+
/// </param>
174+
/// <param name='ruleName'>
175+
/// The name of the firewall rule.
176+
/// </param>
177+
public static void Delete(this IFirewallRulesOperations operations, string resourceGroupName, string cacheName, string ruleName)
178+
{
179+
operations.DeleteAsync(resourceGroupName, cacheName, ruleName).GetAwaiter().GetResult();
180+
}
181+
182+
/// <summary>
183+
/// Deletes a single firewall rule in a specified redis cache.
184+
/// </summary>
185+
/// <param name='operations'>
186+
/// The operations group for this extension method.
187+
/// </param>
188+
/// <param name='resourceGroupName'>
189+
/// The name of the resource group.
190+
/// </param>
191+
/// <param name='cacheName'>
192+
/// The name of the Redis cache.
193+
/// </param>
194+
/// <param name='ruleName'>
195+
/// The name of the firewall rule.
196+
/// </param>
197+
/// <param name='cancellationToken'>
198+
/// The cancellation token.
199+
/// </param>
200+
public static async Task DeleteAsync(this IFirewallRulesOperations operations, string resourceGroupName, string cacheName, string ruleName, CancellationToken cancellationToken = default(CancellationToken))
201+
{
202+
(await operations.DeleteWithHttpMessagesAsync(resourceGroupName, cacheName, ruleName, null, cancellationToken).ConfigureAwait(false)).Dispose();
203+
}
204+
205+
/// <summary>
206+
/// Gets all firewall rules in the specified redis cache.
207+
/// </summary>
208+
/// <param name='operations'>
209+
/// The operations group for this extension method.
210+
/// </param>
211+
/// <param name='nextPageLink'>
212+
/// The NextLink from the previous successful call to List operation.
213+
/// </param>
214+
public static IPage<RedisFirewallRule> ListByRedisResourceNext(this IFirewallRulesOperations operations, string nextPageLink)
215+
{
216+
return operations.ListByRedisResourceNextAsync(nextPageLink).GetAwaiter().GetResult();
217+
}
218+
219+
/// <summary>
220+
/// Gets all firewall rules in the specified redis cache.
221+
/// </summary>
222+
/// <param name='operations'>
223+
/// The operations group for this extension method.
224+
/// </param>
225+
/// <param name='nextPageLink'>
226+
/// The NextLink from the previous successful call to List operation.
227+
/// </param>
228+
/// <param name='cancellationToken'>
229+
/// The cancellation token.
230+
/// </param>
231+
public static async Task<IPage<RedisFirewallRule>> ListByRedisResourceNextAsync(this IFirewallRulesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
232+
{
233+
using (var _result = await operations.ListByRedisResourceNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
234+
{
235+
return _result.Body;
236+
}
237+
}
238+
239+
}
240+
}

0 commit comments

Comments
 (0)