Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,9 @@ public AuthorizationManagementClient(System.Uri baseUri, Microsoft.Rest.ServiceC
/// <param name='rootHandler'>
/// Optional. The http client handler used to handle http transport.
/// </param>
/// <param name='handlers'>
/// Optional. The delegating handlers to add to the http client pipeline.
/// </param>
/// <exception cref="System.ArgumentNullException">
/// Thrown when a required parameter is null
/// </exception>
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public static partial class DenyAssignmentsOperationsExtensions
/// The operations group for this extension method.
/// </param>
/// <param name='scope'>
/// The scope of the deny assignment.
/// The scope at which the operation is performed.
/// </param>
/// <param name='denyAssignmentId'>
/// The ID of the deny assignment to get.
Expand All @@ -171,7 +171,7 @@ public static DenyAssignment Get(this IDenyAssignmentsOperations operations, str
/// The operations group for this extension method.
/// </param>
/// <param name='scope'>
/// The scope of the deny assignment.
/// The scope at which the operation is performed.
/// </param>
/// <param name='denyAssignmentId'>
/// The ID of the deny assignment to get.
Expand All @@ -187,6 +187,83 @@ public static DenyAssignment Get(this IDenyAssignmentsOperations operations, str
}
}
/// <summary>
/// Create or update a deny assignment by scope and name.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='scope'>
/// The scope at which the operation is performed.
/// </param>
/// <param name='denyAssignmentId'>
/// The ID of the deny assignment to create. A new GUID should be used for each
/// new deny assignment.
/// </param>
public static DenyAssignment CreateOrUpdate(this IDenyAssignmentsOperations operations, string scope, string denyAssignmentId, DenyAssignment parameters)
{
return ((IDenyAssignmentsOperations)operations).CreateOrUpdateAsync(scope, denyAssignmentId, parameters).GetAwaiter().GetResult();
}

/// <summary>
/// Create or update a deny assignment by scope and name.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='scope'>
/// The scope at which the operation is performed.
/// </param>
/// <param name='denyAssignmentId'>
/// The ID of the deny assignment to create. A new GUID should be used for each
/// new deny assignment.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
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))
{
using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(scope, denyAssignmentId, parameters, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Delete a deny assignment by scope and name.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='scope'>
/// The scope at which the operation is performed.
/// </param>
/// <param name='denyAssignmentId'>
/// The ID of the deny assignment to delete.
/// </param>
public static void Delete(this IDenyAssignmentsOperations operations, string scope, string denyAssignmentId)
{
((IDenyAssignmentsOperations)operations).DeleteAsync(scope, denyAssignmentId).GetAwaiter().GetResult();
}

/// <summary>
/// Delete a deny assignment by scope and name.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='scope'>
/// The scope at which the operation is performed.
/// </param>
/// <param name='denyAssignmentId'>
/// The ID of the deny assignment to delete.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async System.Threading.Tasks.Task DeleteAsync(this IDenyAssignmentsOperations operations, string scope, string denyAssignmentId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
(await operations.DeleteWithHttpMessagesAsync(scope, denyAssignmentId, null, cancellationToken).ConfigureAwait(false)).Dispose();
}
/// <summary>
/// Gets a deny assignment by ID.
/// </summary>
/// <param name='operations'>
Expand Down Expand Up @@ -237,7 +314,7 @@ public static DenyAssignment GetById(this IDenyAssignmentsOperations operations,
///
/// </param>
/// <param name='scope'>
/// The scope of the deny assignments.
/// The scope at which the operation is performed.
/// </param>
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>))
{
Expand All @@ -254,7 +331,7 @@ public static DenyAssignment GetById(this IDenyAssignmentsOperations operations,
///
/// </param>
/// <param name='scope'>
/// The scope of the deny assignments.
/// The scope at which the operation is performed.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public partial interface IDenyAssignmentsOperations
/// Get the specified deny assignment.
/// </remarks>
/// <param name='scope'>
/// The scope of the deny assignment.
/// The scope at which the operation is performed.
/// </param>
/// <param name='denyAssignmentId'>
/// The ID of the deny assignment to get.
Expand All @@ -126,6 +126,59 @@ public partial interface IDenyAssignmentsOperations
/// </exception>
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<DenyAssignment>> GetWithHttpMessagesAsync(string scope, string denyAssignmentId, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));

/// <summary>
/// Create or update a deny assignment by scope and name.
/// </summary>
/// <remarks>
/// Create or update a deny assignment by scope and name.
/// </remarks>
/// <param name='scope'>
/// The scope at which the operation is performed.
/// </param>
/// <param name='denyAssignmentId'>
/// The ID of the deny assignment to create. A new GUID should be used for each
/// new deny assignment.
/// </param>
/// <param name='parameters'>
/// Parameters for the deny assignment.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<DenyAssignment>> CreateOrUpdateWithHttpMessagesAsync(string scope, string denyAssignmentId, DenyAssignment parameters, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));

/// <summary>
/// Delete a deny assignment by scope and name.
/// </summary>
/// <remarks>
/// Delete a deny assignment by scope and name.
/// </remarks>
/// <param name='scope'>
/// The scope at which the operation is performed.
/// </param>
/// <param name='denyAssignmentId'>
/// The ID of the deny assignment to delete.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse> DeleteWithHttpMessagesAsync(string scope, string denyAssignmentId, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));

/// <summary>
/// Gets a deny assignment by ID.
/// </summary>
Expand Down Expand Up @@ -163,7 +216,7 @@ public partial interface IDenyAssignmentsOperations
///
/// </param>
/// <param name='scope'>
/// The scope of the deny assignments.
/// The scope at which the operation is performed.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

namespace Microsoft.Azure.Management.Authorization.Models
{

/// <summary>
/// Defines values for CreatedByType.
/// </summary>


public static class CreatedByType
{
public const string User = "User";
public const string Application = "Application";
public const string ManagedIdentity = "ManagedIdentity";
public const string Key = "Key";
}
}
Loading
Loading