Skip to content

Commit

Permalink
Migrate Microsoft.Authorization to Autorest.Powershell, update Get-Ro…
Browse files Browse the repository at this point in the history
…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
mumoryan and Ryan Ren authored Dec 21, 2023
1 parent abc5ec2 commit 34937fa
Show file tree
Hide file tree
Showing 119 changed files with 23,664 additions and 15,941 deletions.
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>
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;
}
}
}
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;
}
}
}
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;
}
}
}
Loading

0 comments on commit 34937fa

Please sign in to comment.