@@ -154,7 +154,7 @@ public static partial class DenyAssignmentsOperationsExtensions
154154 /// The operations group for this extension method.
155155 /// </param>
156156 /// <param name='scope'>
157- /// The scope of the deny assignment .
157+ /// The scope at which the operation is performed .
158158 /// </param>
159159 /// <param name='denyAssignmentId'>
160160 /// The ID of the deny assignment to get.
@@ -171,7 +171,7 @@ public static DenyAssignment Get(this IDenyAssignmentsOperations operations, str
171171 /// The operations group for this extension method.
172172 /// </param>
173173 /// <param name='scope'>
174- /// The scope of the deny assignment .
174+ /// The scope at which the operation is performed .
175175 /// </param>
176176 /// <param name='denyAssignmentId'>
177177 /// The ID of the deny assignment to get.
@@ -187,6 +187,83 @@ public static DenyAssignment Get(this IDenyAssignmentsOperations operations, str
187187 }
188188 }
189189 /// <summary>
190+ /// Create or update a deny assignment by scope and name.
191+ /// </summary>
192+ /// <param name='operations'>
193+ /// The operations group for this extension method.
194+ /// </param>
195+ /// <param name='scope'>
196+ /// The scope at which the operation is performed.
197+ /// </param>
198+ /// <param name='denyAssignmentId'>
199+ /// The ID of the deny assignment to create. A new GUID should be used for each
200+ /// new deny assignment.
201+ /// </param>
202+ public static DenyAssignment CreateOrUpdate ( this IDenyAssignmentsOperations operations , string scope , string denyAssignmentId , DenyAssignment parameters )
203+ {
204+ return ( ( IDenyAssignmentsOperations ) operations ) . CreateOrUpdateAsync ( scope , denyAssignmentId , parameters ) . GetAwaiter ( ) . GetResult ( ) ;
205+ }
206+
207+ /// <summary>
208+ /// Create or update a deny assignment by scope and name.
209+ /// </summary>
210+ /// <param name='operations'>
211+ /// The operations group for this extension method.
212+ /// </param>
213+ /// <param name='scope'>
214+ /// The scope at which the operation is performed.
215+ /// </param>
216+ /// <param name='denyAssignmentId'>
217+ /// The ID of the deny assignment to create. A new GUID should be used for each
218+ /// new deny assignment.
219+ /// </param>
220+ /// <param name='cancellationToken'>
221+ /// The cancellation token.
222+ /// </param>
223+ public static async System . Threading . Tasks . Task < DenyAssignment > CreateOrUpdateAsync ( this IDenyAssignmentsOperations operations , string scope , string denyAssignmentId , DenyAssignment parameters , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) )
224+ {
225+ using ( var _result = await operations . CreateOrUpdateWithHttpMessagesAsync ( scope , denyAssignmentId , parameters , null , cancellationToken ) . ConfigureAwait ( false ) )
226+ {
227+ return _result . Body ;
228+ }
229+ }
230+ /// <summary>
231+ /// Delete a deny assignment by scope and name.
232+ /// </summary>
233+ /// <param name='operations'>
234+ /// The operations group for this extension method.
235+ /// </param>
236+ /// <param name='scope'>
237+ /// The scope at which the operation is performed.
238+ /// </param>
239+ /// <param name='denyAssignmentId'>
240+ /// The ID of the deny assignment to delete.
241+ /// </param>
242+ public static void Delete ( this IDenyAssignmentsOperations operations , string scope , string denyAssignmentId )
243+ {
244+ ( ( IDenyAssignmentsOperations ) operations ) . DeleteAsync ( scope , denyAssignmentId ) . GetAwaiter ( ) . GetResult ( ) ;
245+ }
246+
247+ /// <summary>
248+ /// Delete a deny assignment by scope and name.
249+ /// </summary>
250+ /// <param name='operations'>
251+ /// The operations group for this extension method.
252+ /// </param>
253+ /// <param name='scope'>
254+ /// The scope at which the operation is performed.
255+ /// </param>
256+ /// <param name='denyAssignmentId'>
257+ /// The ID of the deny assignment to delete.
258+ /// </param>
259+ /// <param name='cancellationToken'>
260+ /// The cancellation token.
261+ /// </param>
262+ public static async System . Threading . Tasks . Task DeleteAsync ( this IDenyAssignmentsOperations operations , string scope , string denyAssignmentId , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) )
263+ {
264+ ( await operations . DeleteWithHttpMessagesAsync ( scope , denyAssignmentId , null , cancellationToken ) . ConfigureAwait ( false ) ) . Dispose ( ) ;
265+ }
266+ /// <summary>
190267 /// Gets a deny assignment by ID.
191268 /// </summary>
192269 /// <param name='operations'>
@@ -237,7 +314,7 @@ public static DenyAssignment GetById(this IDenyAssignmentsOperations operations,
237314 ///
238315 /// </param>
239316 /// <param name='scope'>
240- /// The scope of the deny assignments .
317+ /// The scope at which the operation is performed .
241318 /// </param>
242319 public static Microsoft . Rest . Azure . IPage < DenyAssignment > ListForScope ( this IDenyAssignmentsOperations operations , string scope , Microsoft . Rest . Azure . OData . ODataQuery < DenyAssignmentFilter > odataQuery = default ( Microsoft . Rest . Azure . OData . ODataQuery < DenyAssignmentFilter > ) )
243320 {
@@ -254,7 +331,7 @@ public static DenyAssignment GetById(this IDenyAssignmentsOperations operations,
254331 ///
255332 /// </param>
256333 /// <param name='scope'>
257- /// The scope of the deny assignments .
334+ /// The scope at which the operation is performed .
258335 /// </param>
259336 /// <param name='cancellationToken'>
260337 /// The cancellation token.
0 commit comments