Skip to content

Commit 34937fa

Browse files
mumoryanRyan Ren
andauthored
Migrate Microsoft.Authorization to Autorest.Powershell, update Get-RoleDefinition 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 <[email protected]>
1 parent abc5ec2 commit 34937fa

File tree

119 files changed

+23664
-15941
lines changed

Some content is hidden

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

119 files changed

+23664
-15941
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<PsModuleName>Resources</PsModuleName>
4+
</PropertyGroup>
5+
<Import Project="$(MSBuildThisFileDirectory)..\..\Az.props" />
6+
<PropertyGroup>
7+
<TargetFramework>netstandard2.0</TargetFramework>
8+
<AssemblyName>Microsoft.Azure.PowerShell.Authorization.Management.Sdk</AssemblyName>
9+
<RootNamespace>Microsoft.Azure.Management.Authorization</RootNamespace>
10+
<NoWarn>$(NoWarn);CS0108;CS1573</NoWarn>
11+
</PropertyGroup>
12+
<Import
13+
Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., build.proj))\src\Az.Post.props" />
14+
</Project>
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License. See License.txt in the project root for
3+
// license information.
4+
//
5+
// Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
6+
// Changes may cause incorrect behavior and will be lost if the code is
7+
// regenerated.
8+
9+
namespace Microsoft.Azure.Management.Authorization.Models
10+
{
11+
using Rest.Azure.OData;
12+
13+
/// <summary>
14+
/// Deny Assignments filter
15+
/// </summary>
16+
public partial class DenyAssignmentFilter
17+
{
18+
[ODataMethod("atScope")]
19+
public bool AtScope()
20+
{
21+
return true;
22+
}
23+
24+
[ODataMethod("assignedTo")]
25+
public bool AssignedTo(string principalId)
26+
{
27+
return true;
28+
}
29+
}
30+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License. See License.txt in the project root for
3+
// license information.
4+
//
5+
// Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
6+
// Changes may cause incorrect behavior and will be lost if the code is
7+
// regenerated.
8+
9+
namespace Microsoft.Azure.Management.Authorization.Models
10+
{
11+
using Rest.Azure.OData;
12+
13+
/// <summary>
14+
/// Role Assignments filter
15+
/// </summary>
16+
public partial class RoleAssignmentFilter
17+
{
18+
[ODataMethod("atScope")]
19+
public bool AtScope()
20+
{
21+
return true;
22+
}
23+
24+
[ODataMethod("assignedTo")]
25+
public bool AssignedTo(string principalId)
26+
{
27+
return true;
28+
}
29+
}
30+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License. See License.txt in the project root for
3+
// license information.
4+
//
5+
// Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
6+
// Changes may cause incorrect behavior and will be lost if the code is
7+
// regenerated.
8+
9+
namespace Microsoft.Azure.Management.Authorization.Models
10+
{
11+
using Rest.Azure.OData;
12+
13+
/// <summary>
14+
/// Role Definitions filter
15+
/// </summary>
16+
public partial class RoleDefinitionFilter
17+
{
18+
[ODataMethod("atScopeAndBelow")]
19+
public bool AtScopeAndBelow()
20+
{
21+
return true;
22+
}
23+
}
24+
}

0 commit comments

Comments
 (0)