-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate Microsoft.Authorization to Autorest.Powershell, update Get-Ro…
…leDefinition Api version - fix test (#23797) * First changes * Migrate Microsoft.Authorization to Autorest.Powershell, update Get-RoleDefinition Api version - fix test * revert sdk changes, modified tests --------- Co-authored-by: Ryan Ren <mumoryan@gmail.com>
- Loading branch information
Showing
119 changed files
with
23,664 additions
and
15,941 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
src/Resources/Authorization.Management.Sdk/Authorization.Management.Sdk.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<PsModuleName>Resources</PsModuleName> | ||
</PropertyGroup> | ||
<Import Project="$(MSBuildThisFileDirectory)..\..\Az.props" /> | ||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
<AssemblyName>Microsoft.Azure.PowerShell.Authorization.Management.Sdk</AssemblyName> | ||
<RootNamespace>Microsoft.Azure.Management.Authorization</RootNamespace> | ||
<NoWarn>$(NoWarn);CS0108;CS1573</NoWarn> | ||
</PropertyGroup> | ||
<Import | ||
Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., build.proj))\src\Az.Post.props" /> | ||
</Project> |
30 changes: 30 additions & 0 deletions
30
src/Resources/Authorization.Management.Sdk/Customizations/DenyAssignmentFilter.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// 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 0.13.0.0 | ||
// Changes may cause incorrect behavior and will be lost if the code is | ||
// regenerated. | ||
|
||
namespace Microsoft.Azure.Management.Authorization.Models | ||
{ | ||
using Rest.Azure.OData; | ||
|
||
/// <summary> | ||
/// Deny Assignments filter | ||
/// </summary> | ||
public partial class DenyAssignmentFilter | ||
{ | ||
[ODataMethod("atScope")] | ||
public bool AtScope() | ||
{ | ||
return true; | ||
} | ||
|
||
[ODataMethod("assignedTo")] | ||
public bool AssignedTo(string principalId) | ||
{ | ||
return true; | ||
} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
src/Resources/Authorization.Management.Sdk/Customizations/RoleAssignmentFilter.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// 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 0.13.0.0 | ||
// Changes may cause incorrect behavior and will be lost if the code is | ||
// regenerated. | ||
|
||
namespace Microsoft.Azure.Management.Authorization.Models | ||
{ | ||
using Rest.Azure.OData; | ||
|
||
/// <summary> | ||
/// Role Assignments filter | ||
/// </summary> | ||
public partial class RoleAssignmentFilter | ||
{ | ||
[ODataMethod("atScope")] | ||
public bool AtScope() | ||
{ | ||
return true; | ||
} | ||
|
||
[ODataMethod("assignedTo")] | ||
public bool AssignedTo(string principalId) | ||
{ | ||
return true; | ||
} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
src/Resources/Authorization.Management.Sdk/Customizations/RoleDefinitionFilter.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// 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 0.13.0.0 | ||
// Changes may cause incorrect behavior and will be lost if the code is | ||
// regenerated. | ||
|
||
namespace Microsoft.Azure.Management.Authorization.Models | ||
{ | ||
using Rest.Azure.OData; | ||
|
||
/// <summary> | ||
/// Role Definitions filter | ||
/// </summary> | ||
public partial class RoleDefinitionFilter | ||
{ | ||
[ODataMethod("atScopeAndBelow")] | ||
public bool AtScopeAndBelow() | ||
{ | ||
return true; | ||
} | ||
} | ||
} |
Oops, something went wrong.