exports/ProxyCmdletDefinitions.ps1
# ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Get request from privilegedApproval .Description Get request from privilegedApproval .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleAssignmentRequest .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IIdentityAzureAdpimIdentity>: Identity Parameter [PrivilegedApprovalId <String>]: key: privilegedApproval-id of privilegedApproval [PrivilegedOperationEventId <String>]: key: privilegedOperationEvent-id of privilegedOperationEvent [PrivilegedRoleAssignmentId <String>]: key: privilegedRoleAssignment-id of privilegedRoleAssignment [PrivilegedRoleAssignmentRequestId <String>]: key: privilegedRoleAssignmentRequest-id of privilegedRoleAssignmentRequest [PrivilegedRoleId <String>]: key: privilegedRole-id of privilegedRole .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.azureadpim/get-mgprivilegedapprovalrequest #> function Get-MgPrivilegedApprovalRequest { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleAssignmentRequest])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: privilegedApproval-id of privilegedApproval ${PrivilegedApprovalId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Alias('Expand')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Expand related entities ${ExpandProperty}, [Parameter()] [Alias('Select')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Select properties to be returned ${Property}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Microsoft.Graph.Identity.AzureADPIM.private\Get-MgPrivilegedApprovalRequest_Get'; GetViaIdentity = 'Microsoft.Graph.Identity.AzureADPIM.private\Get-MgPrivilegedApprovalRequest_GetViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Get roleInfo from privilegedApproval .Description Get roleInfo from privilegedApproval .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRole .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IIdentityAzureAdpimIdentity>: Identity Parameter [PrivilegedApprovalId <String>]: key: privilegedApproval-id of privilegedApproval [PrivilegedOperationEventId <String>]: key: privilegedOperationEvent-id of privilegedOperationEvent [PrivilegedRoleAssignmentId <String>]: key: privilegedRoleAssignment-id of privilegedRoleAssignment [PrivilegedRoleAssignmentRequestId <String>]: key: privilegedRoleAssignmentRequest-id of privilegedRoleAssignmentRequest [PrivilegedRoleId <String>]: key: privilegedRole-id of privilegedRole .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.azureadpim/get-mgprivilegedapprovalroleinfo #> function Get-MgPrivilegedApprovalRoleInfo { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRole])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: privilegedApproval-id of privilegedApproval ${PrivilegedApprovalId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Alias('Expand')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Expand related entities ${ExpandProperty}, [Parameter()] [Alias('Select')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Select properties to be returned ${Property}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Microsoft.Graph.Identity.AzureADPIM.private\Get-MgPrivilegedApprovalRoleInfo_Get'; GetViaIdentity = 'Microsoft.Graph.Identity.AzureADPIM.private\Get-MgPrivilegedApprovalRoleInfo_GetViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Get entity from privilegedApproval by key .Description Get entity from privilegedApproval by key .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedApproval .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IIdentityAzureAdpimIdentity>: Identity Parameter [PrivilegedApprovalId <String>]: key: privilegedApproval-id of privilegedApproval [PrivilegedOperationEventId <String>]: key: privilegedOperationEvent-id of privilegedOperationEvent [PrivilegedRoleAssignmentId <String>]: key: privilegedRoleAssignment-id of privilegedRoleAssignment [PrivilegedRoleAssignmentRequestId <String>]: key: privilegedRoleAssignmentRequest-id of privilegedRoleAssignmentRequest [PrivilegedRoleId <String>]: key: privilegedRole-id of privilegedRole .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.azureadpim/get-mgprivilegedapproval #> function Get-MgPrivilegedApproval { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedApproval])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: privilegedApproval-id of privilegedApproval ${PrivilegedApprovalId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Alias('Expand')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Expand related entities ${ExpandProperty}, [Parameter()] [Alias('Select')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Select properties to be returned ${Property}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Management.Automation.SwitchParameter] # Include count of items ${Count}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Filter items by property values ${Filter}, [Parameter(ParameterSetName='List')] [Alias('Top', 'Limit')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Show only the first n items ${PageSize}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Search items by search phrases ${Search}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Skip the first n items ${Skip}, [Parameter(ParameterSetName='List')] [Alias('OrderBy')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Order items by property values ${Sort}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # List all pages ${All} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Microsoft.Graph.Identity.AzureADPIM.private\Get-MgPrivilegedApproval_Get'; GetViaIdentity = 'Microsoft.Graph.Identity.AzureADPIM.private\Get-MgPrivilegedApproval_GetViaIdentity'; List = 'Microsoft.Graph.Identity.AzureADPIM.private\Get-MgPrivilegedApproval_List'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Get entity from privilegedOperationEvents by key .Description Get entity from privilegedOperationEvents by key .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedOperationEvent .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IIdentityAzureAdpimIdentity>: Identity Parameter [PrivilegedApprovalId <String>]: key: privilegedApproval-id of privilegedApproval [PrivilegedOperationEventId <String>]: key: privilegedOperationEvent-id of privilegedOperationEvent [PrivilegedRoleAssignmentId <String>]: key: privilegedRoleAssignment-id of privilegedRoleAssignment [PrivilegedRoleAssignmentRequestId <String>]: key: privilegedRoleAssignmentRequest-id of privilegedRoleAssignmentRequest [PrivilegedRoleId <String>]: key: privilegedRole-id of privilegedRole .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.azureadpim/get-mgprivilegedoperationeventprivilegedoperationeventprivilegedoperationevent #> function Get-MgPrivilegedOperationEventPrivilegedOperationEventPrivilegedOperationEvent { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedOperationEvent])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: privilegedOperationEvent-id of privilegedOperationEvent ${PrivilegedOperationEventId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Alias('Expand')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Expand related entities ${ExpandProperty}, [Parameter()] [Alias('Select')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Select properties to be returned ${Property}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Management.Automation.SwitchParameter] # Include count of items ${Count}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Filter items by property values ${Filter}, [Parameter(ParameterSetName='List')] [Alias('Top', 'Limit')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Show only the first n items ${PageSize}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Search items by search phrases ${Search}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Skip the first n items ${Skip}, [Parameter(ParameterSetName='List')] [Alias('OrderBy')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Order items by property values ${Sort}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # List all pages ${All} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Microsoft.Graph.Identity.AzureADPIM.private\Get-MgPrivilegedOperationEventPrivilegedOperationEventPrivilegedOperationEvent_Get'; GetViaIdentity = 'Microsoft.Graph.Identity.AzureADPIM.private\Get-MgPrivilegedOperationEventPrivilegedOperationEventPrivilegedOperationEvent_GetViaIdentity'; List = 'Microsoft.Graph.Identity.AzureADPIM.private\Get-MgPrivilegedOperationEventPrivilegedOperationEventPrivilegedOperationEvent_List'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Get entity from privilegedRoleAssignments by key .Description Get entity from privilegedRoleAssignments by key .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleAssignment .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IIdentityAzureAdpimIdentity>: Identity Parameter [PrivilegedApprovalId <String>]: key: privilegedApproval-id of privilegedApproval [PrivilegedOperationEventId <String>]: key: privilegedOperationEvent-id of privilegedOperationEvent [PrivilegedRoleAssignmentId <String>]: key: privilegedRoleAssignment-id of privilegedRoleAssignment [PrivilegedRoleAssignmentRequestId <String>]: key: privilegedRoleAssignmentRequest-id of privilegedRoleAssignmentRequest [PrivilegedRoleId <String>]: key: privilegedRole-id of privilegedRole .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.azureadpim/get-mgprivilegedroleassignmentprivilegedroleassignmentprivilegedroleassignment #> function Get-MgPrivilegedRoleAssignmentPrivilegedRoleAssignmentPrivilegedRoleAssignment { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleAssignment])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: privilegedRoleAssignment-id of privilegedRoleAssignment ${PrivilegedRoleAssignmentId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Alias('Expand')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Expand related entities ${ExpandProperty}, [Parameter()] [Alias('Select')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Select properties to be returned ${Property}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Management.Automation.SwitchParameter] # Include count of items ${Count}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Filter items by property values ${Filter}, [Parameter(ParameterSetName='List')] [Alias('Top', 'Limit')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Show only the first n items ${PageSize}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Search items by search phrases ${Search}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Skip the first n items ${Skip}, [Parameter(ParameterSetName='List')] [Alias('OrderBy')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Order items by property values ${Sort}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # List all pages ${All} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Microsoft.Graph.Identity.AzureADPIM.private\Get-MgPrivilegedRoleAssignmentPrivilegedRoleAssignmentPrivilegedRoleAssignment_Get'; GetViaIdentity = 'Microsoft.Graph.Identity.AzureADPIM.private\Get-MgPrivilegedRoleAssignmentPrivilegedRoleAssignmentPrivilegedRoleAssignment_GetViaIdentity'; List = 'Microsoft.Graph.Identity.AzureADPIM.private\Get-MgPrivilegedRoleAssignmentPrivilegedRoleAssignmentPrivilegedRoleAssignment_List'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Get entity from privilegedRoleAssignmentRequests by key .Description Get entity from privilegedRoleAssignmentRequests by key .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleAssignmentRequest .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IIdentityAzureAdpimIdentity>: Identity Parameter [PrivilegedApprovalId <String>]: key: privilegedApproval-id of privilegedApproval [PrivilegedOperationEventId <String>]: key: privilegedOperationEvent-id of privilegedOperationEvent [PrivilegedRoleAssignmentId <String>]: key: privilegedRoleAssignment-id of privilegedRoleAssignment [PrivilegedRoleAssignmentRequestId <String>]: key: privilegedRoleAssignmentRequest-id of privilegedRoleAssignmentRequest [PrivilegedRoleId <String>]: key: privilegedRole-id of privilegedRole .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.azureadpim/get-mgprivilegedroleassignmentrequestprivilegedroleassignmentrequestprivilegedroleassignmentrequest #> function Get-MgPrivilegedRoleAssignmentRequestPrivilegedRoleAssignmentRequestPrivilegedRoleAssignmentRequest { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleAssignmentRequest])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: privilegedRoleAssignmentRequest-id of privilegedRoleAssignmentRequest ${PrivilegedRoleAssignmentRequestId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Alias('Expand')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Expand related entities ${ExpandProperty}, [Parameter()] [Alias('Select')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Select properties to be returned ${Property}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Management.Automation.SwitchParameter] # Include count of items ${Count}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Filter items by property values ${Filter}, [Parameter(ParameterSetName='List')] [Alias('Top', 'Limit')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Show only the first n items ${PageSize}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Search items by search phrases ${Search}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Skip the first n items ${Skip}, [Parameter(ParameterSetName='List')] [Alias('OrderBy')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Order items by property values ${Sort}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # List all pages ${All} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Microsoft.Graph.Identity.AzureADPIM.private\Get-MgPrivilegedRoleAssignmentRequestPrivilegedRoleAssignmentRequestPrivilegedRoleAssignmentRequest_Get'; GetViaIdentity = 'Microsoft.Graph.Identity.AzureADPIM.private\Get-MgPrivilegedRoleAssignmentRequestPrivilegedRoleAssignmentRequestPrivilegedRoleAssignmentRequest_GetViaIdentity'; List = 'Microsoft.Graph.Identity.AzureADPIM.private\Get-MgPrivilegedRoleAssignmentRequestPrivilegedRoleAssignmentRequestPrivilegedRoleAssignmentRequest_List'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Get roleInfo from privilegedRoleAssignmentRequests .Description Get roleInfo from privilegedRoleAssignmentRequests .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRole .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IIdentityAzureAdpimIdentity>: Identity Parameter [PrivilegedApprovalId <String>]: key: privilegedApproval-id of privilegedApproval [PrivilegedOperationEventId <String>]: key: privilegedOperationEvent-id of privilegedOperationEvent [PrivilegedRoleAssignmentId <String>]: key: privilegedRoleAssignment-id of privilegedRoleAssignment [PrivilegedRoleAssignmentRequestId <String>]: key: privilegedRoleAssignmentRequest-id of privilegedRoleAssignmentRequest [PrivilegedRoleId <String>]: key: privilegedRole-id of privilegedRole .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.azureadpim/get-mgprivilegedroleassignmentrequestroleinfo #> function Get-MgPrivilegedRoleAssignmentRequestRoleInfo { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRole])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: privilegedRoleAssignmentRequest-id of privilegedRoleAssignmentRequest ${PrivilegedRoleAssignmentRequestId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Alias('Expand')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Expand related entities ${ExpandProperty}, [Parameter()] [Alias('Select')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Select properties to be returned ${Property}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Microsoft.Graph.Identity.AzureADPIM.private\Get-MgPrivilegedRoleAssignmentRequestRoleInfo_Get'; GetViaIdentity = 'Microsoft.Graph.Identity.AzureADPIM.private\Get-MgPrivilegedRoleAssignmentRequestRoleInfo_GetViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Get roleInfo from privilegedRoleAssignments .Description Get roleInfo from privilegedRoleAssignments .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRole .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IIdentityAzureAdpimIdentity>: Identity Parameter [PrivilegedApprovalId <String>]: key: privilegedApproval-id of privilegedApproval [PrivilegedOperationEventId <String>]: key: privilegedOperationEvent-id of privilegedOperationEvent [PrivilegedRoleAssignmentId <String>]: key: privilegedRoleAssignment-id of privilegedRoleAssignment [PrivilegedRoleAssignmentRequestId <String>]: key: privilegedRoleAssignmentRequest-id of privilegedRoleAssignmentRequest [PrivilegedRoleId <String>]: key: privilegedRole-id of privilegedRole .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.azureadpim/get-mgprivilegedroleassignmentroleinfo #> function Get-MgPrivilegedRoleAssignmentRoleInfo { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRole])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: privilegedRoleAssignment-id of privilegedRoleAssignment ${PrivilegedRoleAssignmentId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Alias('Expand')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Expand related entities ${ExpandProperty}, [Parameter()] [Alias('Select')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Select properties to be returned ${Property}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Microsoft.Graph.Identity.AzureADPIM.private\Get-MgPrivilegedRoleAssignmentRoleInfo_Get'; GetViaIdentity = 'Microsoft.Graph.Identity.AzureADPIM.private\Get-MgPrivilegedRoleAssignmentRoleInfo_GetViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Get assignments from privilegedRoles .Description Get assignments from privilegedRoles .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleAssignment .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IIdentityAzureAdpimIdentity>: Identity Parameter [PrivilegedApprovalId <String>]: key: privilegedApproval-id of privilegedApproval [PrivilegedOperationEventId <String>]: key: privilegedOperationEvent-id of privilegedOperationEvent [PrivilegedRoleAssignmentId <String>]: key: privilegedRoleAssignment-id of privilegedRoleAssignment [PrivilegedRoleAssignmentRequestId <String>]: key: privilegedRoleAssignmentRequest-id of privilegedRoleAssignmentRequest [PrivilegedRoleId <String>]: key: privilegedRole-id of privilegedRole .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.azureadpim/get-mgprivilegedroleassignment #> function Get-MgPrivilegedRoleAssignment { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleAssignment])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: privilegedRoleAssignment-id of privilegedRoleAssignment ${PrivilegedRoleAssignmentId}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: privilegedRole-id of privilegedRole ${PrivilegedRoleId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Alias('Expand')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Expand related entities ${ExpandProperty}, [Parameter()] [Alias('Select')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Select properties to be returned ${Property}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Management.Automation.SwitchParameter] # Include count of items ${Count}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Filter items by property values ${Filter}, [Parameter(ParameterSetName='List')] [Alias('Top', 'Limit')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Show only the first n items ${PageSize}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Search items by search phrases ${Search}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Skip the first n items ${Skip}, [Parameter(ParameterSetName='List')] [Alias('OrderBy')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Order items by property values ${Sort}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # List all pages ${All} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Microsoft.Graph.Identity.AzureADPIM.private\Get-MgPrivilegedRoleAssignment_Get'; GetViaIdentity = 'Microsoft.Graph.Identity.AzureADPIM.private\Get-MgPrivilegedRoleAssignment_GetViaIdentity'; List = 'Microsoft.Graph.Identity.AzureADPIM.private\Get-MgPrivilegedRoleAssignment_List'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Get settings from privilegedRoles .Description Get settings from privilegedRoles .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleSettings .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IIdentityAzureAdpimIdentity>: Identity Parameter [PrivilegedApprovalId <String>]: key: privilegedApproval-id of privilegedApproval [PrivilegedOperationEventId <String>]: key: privilegedOperationEvent-id of privilegedOperationEvent [PrivilegedRoleAssignmentId <String>]: key: privilegedRoleAssignment-id of privilegedRoleAssignment [PrivilegedRoleAssignmentRequestId <String>]: key: privilegedRoleAssignmentRequest-id of privilegedRoleAssignmentRequest [PrivilegedRoleId <String>]: key: privilegedRole-id of privilegedRole .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.azureadpim/get-mgprivilegedrolesetting #> function Get-MgPrivilegedRoleSetting { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleSettings])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: privilegedRole-id of privilegedRole ${PrivilegedRoleId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Alias('Expand')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Expand related entities ${ExpandProperty}, [Parameter()] [Alias('Select')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Select properties to be returned ${Property}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Microsoft.Graph.Identity.AzureADPIM.private\Get-MgPrivilegedRoleSetting_Get'; GetViaIdentity = 'Microsoft.Graph.Identity.AzureADPIM.private\Get-MgPrivilegedRoleSetting_GetViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Get summary from privilegedRoles .Description Get summary from privilegedRoles .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleSummary .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IIdentityAzureAdpimIdentity>: Identity Parameter [PrivilegedApprovalId <String>]: key: privilegedApproval-id of privilegedApproval [PrivilegedOperationEventId <String>]: key: privilegedOperationEvent-id of privilegedOperationEvent [PrivilegedRoleAssignmentId <String>]: key: privilegedRoleAssignment-id of privilegedRoleAssignment [PrivilegedRoleAssignmentRequestId <String>]: key: privilegedRoleAssignmentRequest-id of privilegedRoleAssignmentRequest [PrivilegedRoleId <String>]: key: privilegedRole-id of privilegedRole .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.azureadpim/get-mgprivilegedrolesummary #> function Get-MgPrivilegedRoleSummary { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleSummary])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: privilegedRole-id of privilegedRole ${PrivilegedRoleId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Alias('Expand')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Expand related entities ${ExpandProperty}, [Parameter()] [Alias('Select')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Select properties to be returned ${Property}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Microsoft.Graph.Identity.AzureADPIM.private\Get-MgPrivilegedRoleSummary_Get'; GetViaIdentity = 'Microsoft.Graph.Identity.AzureADPIM.private\Get-MgPrivilegedRoleSummary_GetViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Get entity from privilegedRoles by key .Description Get entity from privilegedRoles by key .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRole .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IIdentityAzureAdpimIdentity>: Identity Parameter [PrivilegedApprovalId <String>]: key: privilegedApproval-id of privilegedApproval [PrivilegedOperationEventId <String>]: key: privilegedOperationEvent-id of privilegedOperationEvent [PrivilegedRoleAssignmentId <String>]: key: privilegedRoleAssignment-id of privilegedRoleAssignment [PrivilegedRoleAssignmentRequestId <String>]: key: privilegedRoleAssignmentRequest-id of privilegedRoleAssignmentRequest [PrivilegedRoleId <String>]: key: privilegedRole-id of privilegedRole .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.azureadpim/get-mgprivilegedrole #> function Get-MgPrivilegedRole { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRole])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: privilegedRole-id of privilegedRole ${PrivilegedRoleId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Alias('Expand')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Expand related entities ${ExpandProperty}, [Parameter()] [Alias('Select')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Select properties to be returned ${Property}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Management.Automation.SwitchParameter] # Include count of items ${Count}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Filter items by property values ${Filter}, [Parameter(ParameterSetName='List')] [Alias('Top', 'Limit')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Show only the first n items ${PageSize}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Search items by search phrases ${Search}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Skip the first n items ${Skip}, [Parameter(ParameterSetName='List')] [Alias('OrderBy')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Order items by property values ${Sort}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # List all pages ${All} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Microsoft.Graph.Identity.AzureADPIM.private\Get-MgPrivilegedRole_Get'; GetViaIdentity = 'Microsoft.Graph.Identity.AzureADPIM.private\Get-MgPrivilegedRole_GetViaIdentity'; List = 'Microsoft.Graph.Identity.AzureADPIM.private\Get-MgPrivilegedRole_List'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke function myRequests .Description Invoke function myRequests .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedApproval .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.azureadpim/invoke-mgmyprivilegedapprovalrequest #> function Invoke-MgMyPrivilegedApprovalRequest { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedApproval])] [CmdletBinding(DefaultParameterSetName='My', PositionalBinding=$false)] param( [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ My = 'Microsoft.Graph.Identity.AzureADPIM.private\Invoke-MgMyPrivilegedApprovalRequest_My'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke function my .Description Invoke function my .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleAssignmentRequest .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.azureadpim/invoke-mgmyprivilegedroleassignmentrequest #> function Invoke-MgMyPrivilegedRoleAssignmentRequest { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleAssignmentRequest])] [CmdletBinding(DefaultParameterSetName='My', PositionalBinding=$false)] param( [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ My = 'Microsoft.Graph.Identity.AzureADPIM.private\Invoke-MgMyPrivilegedRoleAssignmentRequest_My'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke function my .Description Invoke function my .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleAssignment .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.azureadpim/invoke-mgmyprivilegedroleassignment #> function Invoke-MgMyPrivilegedRoleAssignment { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleAssignment])] [CmdletBinding(DefaultParameterSetName='My', PositionalBinding=$false)] param( [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ My = 'Microsoft.Graph.Identity.AzureADPIM.private\Invoke-MgMyPrivilegedRoleAssignment_My'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action selfActivate .Description Invoke action selfActivate .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity .Inputs Microsoft.Graph.PowerShell.Models.IPathsFneytmPrivilegedrolesPrivilegedroleIdMicrosoftGraphSelfactivatePostRequestbodyContentApplicationJsonSchema .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleAssignment .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPathsFneytmPrivilegedrolesPrivilegedroleIdMicrosoftGraphSelfactivatePostRequestbodyContentApplicationJsonSchema>: . [Duration <String>]: [Reason <String>]: [TicketNumber <String>]: [TicketSystem <String>]: INPUTOBJECT <IIdentityAzureAdpimIdentity>: Identity Parameter [PrivilegedApprovalId <String>]: key: privilegedApproval-id of privilegedApproval [PrivilegedOperationEventId <String>]: key: privilegedOperationEvent-id of privilegedOperationEvent [PrivilegedRoleAssignmentId <String>]: key: privilegedRoleAssignment-id of privilegedRoleAssignment [PrivilegedRoleAssignmentRequestId <String>]: key: privilegedRoleAssignmentRequest-id of privilegedRoleAssignmentRequest [PrivilegedRoleId <String>]: key: privilegedRole-id of privilegedRole .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.azureadpim/invoke-mgselfprivilegedroleactivate #> function Invoke-MgSelfPrivilegedRoleActivate { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleAssignment])] [CmdletBinding(DefaultParameterSetName='SelfExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Self', Mandatory)] [Parameter(ParameterSetName='SelfExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: privilegedRole-id of privilegedRole ${PrivilegedRoleId}, [Parameter(ParameterSetName='SelfViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='SelfViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Self', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='SelfViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPathsFneytmPrivilegedrolesPrivilegedroleIdMicrosoftGraphSelfactivatePostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='SelfExpanded')] [Parameter(ParameterSetName='SelfViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Duration}, [Parameter(ParameterSetName='SelfExpanded')] [Parameter(ParameterSetName='SelfViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Reason}, [Parameter(ParameterSetName='SelfExpanded')] [Parameter(ParameterSetName='SelfViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${TicketNumber}, [Parameter(ParameterSetName='SelfExpanded')] [Parameter(ParameterSetName='SelfViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${TicketSystem}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Self = 'Microsoft.Graph.Identity.AzureADPIM.private\Invoke-MgSelfPrivilegedRoleActivate_Self'; SelfExpanded = 'Microsoft.Graph.Identity.AzureADPIM.private\Invoke-MgSelfPrivilegedRoleActivate_SelfExpanded'; SelfViaIdentity = 'Microsoft.Graph.Identity.AzureADPIM.private\Invoke-MgSelfPrivilegedRoleActivate_SelfViaIdentity'; SelfViaIdentityExpanded = 'Microsoft.Graph.Identity.AzureADPIM.private\Invoke-MgSelfPrivilegedRoleActivate_SelfViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action selfDeactivate .Description Invoke action selfDeactivate .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleAssignment .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IIdentityAzureAdpimIdentity>: Identity Parameter [PrivilegedApprovalId <String>]: key: privilegedApproval-id of privilegedApproval [PrivilegedOperationEventId <String>]: key: privilegedOperationEvent-id of privilegedOperationEvent [PrivilegedRoleAssignmentId <String>]: key: privilegedRoleAssignment-id of privilegedRoleAssignment [PrivilegedRoleAssignmentRequestId <String>]: key: privilegedRoleAssignmentRequest-id of privilegedRoleAssignmentRequest [PrivilegedRoleId <String>]: key: privilegedRole-id of privilegedRole .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.azureadpim/invoke-mgselfprivilegedroledeactivate #> function Invoke-MgSelfPrivilegedRoleDeactivate { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleAssignment])] [CmdletBinding(DefaultParameterSetName='Self', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Self', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: privilegedRole-id of privilegedRole ${PrivilegedRoleId}, [Parameter(ParameterSetName='SelfViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Self = 'Microsoft.Graph.Identity.AzureADPIM.private\Invoke-MgSelfPrivilegedRoleDeactivate_Self'; SelfViaIdentity = 'Microsoft.Graph.Identity.AzureADPIM.private\Invoke-MgSelfPrivilegedRoleDeactivate_SelfViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Add new entity to privilegedApproval .Description Add new entity to privilegedApproval .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedApproval .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedApproval .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IMicrosoftGraphPrivilegedApproval>: privilegedApproval [Id <String>]: Read-only. [ApprovalDuration <TimeSpan?>]: [ApprovalState <String>]: approvalState [ApprovalType <String>]: [ApproverReason <String>]: [EndDateTime <DateTime?>]: [Request <IMicrosoftGraphPrivilegedRoleAssignmentRequest>]: privilegedRoleAssignmentRequest [Id <String>]: Read-only. [AssignmentState <String>]: [Duration <String>]: [Reason <String>]: [RequestedDateTime <DateTime?>]: [RoleId <String>]: [RoleInfoAssignments <IMicrosoftGraphPrivilegedRoleAssignment[]>]: [Id <String>]: Read-only. [ExpirationDateTime <DateTime?>]: [IsElevated <Boolean?>]: [ResultMessage <String>]: [RoleId <String>]: [RoleInfoAssignments <IMicrosoftGraphPrivilegedRoleAssignment[]>]: [RoleInfoId <String>]: Read-only. [RoleInfoName <String>]: [SettingApprovalOnElevation <Boolean?>]: [SettingApproverIds <String[]>]: [SettingElevationDuration <TimeSpan?>]: [SettingId <String>]: Read-only. [SettingIsMfaOnElevationConfigurable <Boolean?>]: [SettingLastGlobalAdmin <Boolean?>]: [SettingMaxElavationDuration <TimeSpan?>]: [SettingMfaOnElevation <Boolean?>]: [SettingMinElevationDuration <TimeSpan?>]: [SettingNotificationToUserOnElevation <Boolean?>]: [SettingTicketingInfoOnElevation <Boolean?>]: [SummaryElevatedCount <Int32?>]: [SummaryId <String>]: Read-only. [SummaryManagedCount <Int32?>]: [SummaryMfaEnabled <Boolean?>]: [SummaryStatus <String>]: roleSummaryStatus [SummaryUsersCount <Int32?>]: [UserId <String>]: [RoleInfoId <String>]: Read-only. [RoleInfoName <String>]: [ScheduleDuration <TimeSpan?>]: [ScheduleEndDateTime <DateTime?>]: [ScheduleStartDateTime <DateTime?>]: [ScheduleType <String>]: [SettingApprovalOnElevation <Boolean?>]: [SettingApproverIds <String[]>]: [SettingElevationDuration <TimeSpan?>]: [SettingId <String>]: Read-only. [SettingIsMfaOnElevationConfigurable <Boolean?>]: [SettingLastGlobalAdmin <Boolean?>]: [SettingMaxElavationDuration <TimeSpan?>]: [SettingMfaOnElevation <Boolean?>]: [SettingMinElevationDuration <TimeSpan?>]: [SettingNotificationToUserOnElevation <Boolean?>]: [SettingTicketingInfoOnElevation <Boolean?>]: [Status <String>]: [SummaryElevatedCount <Int32?>]: [SummaryId <String>]: Read-only. [SummaryManagedCount <Int32?>]: [SummaryMfaEnabled <Boolean?>]: [SummaryStatus <String>]: roleSummaryStatus [SummaryUsersCount <Int32?>]: [TicketNumber <String>]: [TicketSystem <String>]: [Type <String>]: [UserId <String>]: [RequestorReason <String>]: [RoleId <String>]: [RoleInfoAssignments <IMicrosoftGraphPrivilegedRoleAssignment[]>]: [RoleInfoId <String>]: Read-only. [RoleInfoName <String>]: [SettingApprovalOnElevation <Boolean?>]: [SettingApproverIds <String[]>]: [SettingElevationDuration <TimeSpan?>]: [SettingId <String>]: Read-only. [SettingIsMfaOnElevationConfigurable <Boolean?>]: [SettingLastGlobalAdmin <Boolean?>]: [SettingMaxElavationDuration <TimeSpan?>]: [SettingMfaOnElevation <Boolean?>]: [SettingMinElevationDuration <TimeSpan?>]: [SettingNotificationToUserOnElevation <Boolean?>]: [SettingTicketingInfoOnElevation <Boolean?>]: [StartDateTime <DateTime?>]: [SummaryElevatedCount <Int32?>]: [SummaryId <String>]: Read-only. [SummaryManagedCount <Int32?>]: [SummaryMfaEnabled <Boolean?>]: [SummaryStatus <String>]: roleSummaryStatus [SummaryUsersCount <Int32?>]: [UserId <String>]: REQUEST <IMicrosoftGraphPrivilegedRoleAssignmentRequest>: privilegedRoleAssignmentRequest [Id <String>]: Read-only. [AssignmentState <String>]: [Duration <String>]: [Reason <String>]: [RequestedDateTime <DateTime?>]: [RoleId <String>]: [RoleInfoAssignments <IMicrosoftGraphPrivilegedRoleAssignment[]>]: [Id <String>]: Read-only. [ExpirationDateTime <DateTime?>]: [IsElevated <Boolean?>]: [ResultMessage <String>]: [RoleId <String>]: [RoleInfoAssignments <IMicrosoftGraphPrivilegedRoleAssignment[]>]: [RoleInfoId <String>]: Read-only. [RoleInfoName <String>]: [SettingApprovalOnElevation <Boolean?>]: [SettingApproverIds <String[]>]: [SettingElevationDuration <TimeSpan?>]: [SettingId <String>]: Read-only. [SettingIsMfaOnElevationConfigurable <Boolean?>]: [SettingLastGlobalAdmin <Boolean?>]: [SettingMaxElavationDuration <TimeSpan?>]: [SettingMfaOnElevation <Boolean?>]: [SettingMinElevationDuration <TimeSpan?>]: [SettingNotificationToUserOnElevation <Boolean?>]: [SettingTicketingInfoOnElevation <Boolean?>]: [SummaryElevatedCount <Int32?>]: [SummaryId <String>]: Read-only. [SummaryManagedCount <Int32?>]: [SummaryMfaEnabled <Boolean?>]: [SummaryStatus <String>]: roleSummaryStatus [SummaryUsersCount <Int32?>]: [UserId <String>]: [RoleInfoId <String>]: Read-only. [RoleInfoName <String>]: [ScheduleDuration <TimeSpan?>]: [ScheduleEndDateTime <DateTime?>]: [ScheduleStartDateTime <DateTime?>]: [ScheduleType <String>]: [SettingApprovalOnElevation <Boolean?>]: [SettingApproverIds <String[]>]: [SettingElevationDuration <TimeSpan?>]: [SettingId <String>]: Read-only. [SettingIsMfaOnElevationConfigurable <Boolean?>]: [SettingLastGlobalAdmin <Boolean?>]: [SettingMaxElavationDuration <TimeSpan?>]: [SettingMfaOnElevation <Boolean?>]: [SettingMinElevationDuration <TimeSpan?>]: [SettingNotificationToUserOnElevation <Boolean?>]: [SettingTicketingInfoOnElevation <Boolean?>]: [Status <String>]: [SummaryElevatedCount <Int32?>]: [SummaryId <String>]: Read-only. [SummaryManagedCount <Int32?>]: [SummaryMfaEnabled <Boolean?>]: [SummaryStatus <String>]: roleSummaryStatus [SummaryUsersCount <Int32?>]: [TicketNumber <String>]: [TicketSystem <String>]: [Type <String>]: [UserId <String>]: ROLEINFOASSIGNMENTS <IMicrosoftGraphPrivilegedRoleAssignment[]>: . [Id <String>]: Read-only. [ExpirationDateTime <DateTime?>]: [IsElevated <Boolean?>]: [ResultMessage <String>]: [RoleId <String>]: [RoleInfoAssignments <IMicrosoftGraphPrivilegedRoleAssignment[]>]: [RoleInfoId <String>]: Read-only. [RoleInfoName <String>]: [SettingApprovalOnElevation <Boolean?>]: [SettingApproverIds <String[]>]: [SettingElevationDuration <TimeSpan?>]: [SettingId <String>]: Read-only. [SettingIsMfaOnElevationConfigurable <Boolean?>]: [SettingLastGlobalAdmin <Boolean?>]: [SettingMaxElavationDuration <TimeSpan?>]: [SettingMfaOnElevation <Boolean?>]: [SettingMinElevationDuration <TimeSpan?>]: [SettingNotificationToUserOnElevation <Boolean?>]: [SettingTicketingInfoOnElevation <Boolean?>]: [SummaryElevatedCount <Int32?>]: [SummaryId <String>]: Read-only. [SummaryManagedCount <Int32?>]: [SummaryMfaEnabled <Boolean?>]: [SummaryStatus <String>]: roleSummaryStatus [SummaryUsersCount <Int32?>]: [UserId <String>]: .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.azureadpim/new-mgprivilegedapproval #> function New-MgPrivilegedApproval { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedApproval])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedApproval] # privilegedApproval # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.TimeSpan] # . ${ApprovalDuration}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # approvalState ${ApprovalState}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${ApprovalType}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${ApproverReason}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${EndDateTime}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleAssignmentRequest] # privilegedRoleAssignmentRequest # To construct, see NOTES section for REQUEST properties and create a hash table. ${Request}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${RequestorReason}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${RoleId}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleAssignment[]] # . # To construct, see NOTES section for ROLEINFOASSIGNMENTS properties and create a hash table. ${RoleInfoAssignments}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${RoleInfoId}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${RoleInfoName}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingApprovalOnElevation}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String[]] # . ${SettingApproverIds}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.TimeSpan] # . ${SettingElevationDuration}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${SettingId}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingIsMfaOnElevationConfigurable}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingLastGlobalAdmin}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.TimeSpan] # . ${SettingMaxElavationDuration}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingMfaOnElevation}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.TimeSpan] # . ${SettingMinElevationDuration}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingNotificationToUserOnElevation}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingTicketingInfoOnElevation}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${StartDateTime}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Int32] # . ${SummaryElevatedCount}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${SummaryId}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Int32] # . ${SummaryManagedCount}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SummaryMfaEnabled}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # roleSummaryStatus ${SummaryStatus}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Int32] # . ${SummaryUsersCount}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${UserId}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Create = 'Microsoft.Graph.Identity.AzureADPIM.private\New-MgPrivilegedApproval_Create'; CreateExpanded = 'Microsoft.Graph.Identity.AzureADPIM.private\New-MgPrivilegedApproval_CreateExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Add new entity to privilegedOperationEvents .Description Add new entity to privilegedOperationEvents .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedOperationEvent .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedOperationEvent .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IMicrosoftGraphPrivilegedOperationEvent>: privilegedOperationEvent [Id <String>]: Read-only. [AdditionalInformation <String>]: [CreationDateTime <DateTime?>]: [ExpirationDateTime <DateTime?>]: [ReferenceKey <String>]: [ReferenceSystem <String>]: [RequestType <String>]: [RequestorId <String>]: [RequestorName <String>]: [RoleId <String>]: [RoleName <String>]: [TenantId <String>]: [UserId <String>]: [UserMail <String>]: [UserName <String>]: .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.azureadpim/new-mgprivilegedoperationeventprivilegedoperationeventprivilegedoperationevent #> function New-MgPrivilegedOperationEventPrivilegedOperationEventPrivilegedOperationEvent { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedOperationEvent])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedOperationEvent] # privilegedOperationEvent # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${AdditionalInformation}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${CreationDateTime}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${ExpirationDateTime}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${ReferenceKey}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${ReferenceSystem}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${RequestType}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${RequestorId}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${RequestorName}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${RoleId}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${RoleName}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${TenantId}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${UserId}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${UserMail}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${UserName}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Create = 'Microsoft.Graph.Identity.AzureADPIM.private\New-MgPrivilegedOperationEventPrivilegedOperationEventPrivilegedOperationEvent_Create'; CreateExpanded = 'Microsoft.Graph.Identity.AzureADPIM.private\New-MgPrivilegedOperationEventPrivilegedOperationEventPrivilegedOperationEvent_CreateExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action makeEligible .Description Invoke action makeEligible .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleAssignment .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IIdentityAzureAdpimIdentity>: Identity Parameter [PrivilegedApprovalId <String>]: key: privilegedApproval-id of privilegedApproval [PrivilegedOperationEventId <String>]: key: privilegedOperationEvent-id of privilegedOperationEvent [PrivilegedRoleAssignmentId <String>]: key: privilegedRoleAssignment-id of privilegedRoleAssignment [PrivilegedRoleAssignmentRequestId <String>]: key: privilegedRoleAssignmentRequest-id of privilegedRoleAssignmentRequest [PrivilegedRoleId <String>]: key: privilegedRole-id of privilegedRole .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.azureadpim/new-mgprivilegedroleassignmenteligible #> function New-MgPrivilegedRoleAssignmentEligible { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleAssignment])] [CmdletBinding(DefaultParameterSetName='Make', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Make', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: privilegedRoleAssignment-id of privilegedRoleAssignment ${PrivilegedRoleAssignmentId}, [Parameter(ParameterSetName='MakeViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Make = 'Microsoft.Graph.Identity.AzureADPIM.private\New-MgPrivilegedRoleAssignmentEligible_Make'; MakeViaIdentity = 'Microsoft.Graph.Identity.AzureADPIM.private\New-MgPrivilegedRoleAssignmentEligible_MakeViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action makePermanent .Description Invoke action makePermanent .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity .Inputs Microsoft.Graph.PowerShell.Models.IPaths1Ao8IriPrivilegedroleassignmentsPrivilegedroleassignmentIdMicrosoftGraphMakepermanentPostRequestbodyContentApplicationJsonSchema .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleAssignment .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPaths1Ao8IriPrivilegedroleassignmentsPrivilegedroleassignmentIdMicrosoftGraphMakepermanentPostRequestbodyContentApplicationJsonSchema>: . [Reason <String>]: [TicketNumber <String>]: [TicketSystem <String>]: INPUTOBJECT <IIdentityAzureAdpimIdentity>: Identity Parameter [PrivilegedApprovalId <String>]: key: privilegedApproval-id of privilegedApproval [PrivilegedOperationEventId <String>]: key: privilegedOperationEvent-id of privilegedOperationEvent [PrivilegedRoleAssignmentId <String>]: key: privilegedRoleAssignment-id of privilegedRoleAssignment [PrivilegedRoleAssignmentRequestId <String>]: key: privilegedRoleAssignmentRequest-id of privilegedRoleAssignmentRequest [PrivilegedRoleId <String>]: key: privilegedRole-id of privilegedRole .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.azureadpim/new-mgprivilegedroleassignmentpermanent #> function New-MgPrivilegedRoleAssignmentPermanent { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleAssignment])] [CmdletBinding(DefaultParameterSetName='MakeExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Make', Mandatory)] [Parameter(ParameterSetName='MakeExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: privilegedRoleAssignment-id of privilegedRoleAssignment ${PrivilegedRoleAssignmentId}, [Parameter(ParameterSetName='MakeViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='MakeViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Make', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='MakeViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPaths1Ao8IriPrivilegedroleassignmentsPrivilegedroleassignmentIdMicrosoftGraphMakepermanentPostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='MakeExpanded')] [Parameter(ParameterSetName='MakeViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Reason}, [Parameter(ParameterSetName='MakeExpanded')] [Parameter(ParameterSetName='MakeViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${TicketNumber}, [Parameter(ParameterSetName='MakeExpanded')] [Parameter(ParameterSetName='MakeViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${TicketSystem}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Make = 'Microsoft.Graph.Identity.AzureADPIM.private\New-MgPrivilegedRoleAssignmentPermanent_Make'; MakeExpanded = 'Microsoft.Graph.Identity.AzureADPIM.private\New-MgPrivilegedRoleAssignmentPermanent_MakeExpanded'; MakeViaIdentity = 'Microsoft.Graph.Identity.AzureADPIM.private\New-MgPrivilegedRoleAssignmentPermanent_MakeViaIdentity'; MakeViaIdentityExpanded = 'Microsoft.Graph.Identity.AzureADPIM.private\New-MgPrivilegedRoleAssignmentPermanent_MakeViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Add new entity to privilegedRoleAssignments .Description Add new entity to privilegedRoleAssignments .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleAssignment .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleAssignment .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IMicrosoftGraphPrivilegedRoleAssignment>: privilegedRoleAssignment [Id <String>]: Read-only. [ExpirationDateTime <DateTime?>]: [IsElevated <Boolean?>]: [ResultMessage <String>]: [RoleId <String>]: [RoleInfoAssignments <IMicrosoftGraphPrivilegedRoleAssignment[]>]: [RoleInfoId <String>]: Read-only. [RoleInfoName <String>]: [SettingApprovalOnElevation <Boolean?>]: [SettingApproverIds <String[]>]: [SettingElevationDuration <TimeSpan?>]: [SettingId <String>]: Read-only. [SettingIsMfaOnElevationConfigurable <Boolean?>]: [SettingLastGlobalAdmin <Boolean?>]: [SettingMaxElavationDuration <TimeSpan?>]: [SettingMfaOnElevation <Boolean?>]: [SettingMinElevationDuration <TimeSpan?>]: [SettingNotificationToUserOnElevation <Boolean?>]: [SettingTicketingInfoOnElevation <Boolean?>]: [SummaryElevatedCount <Int32?>]: [SummaryId <String>]: Read-only. [SummaryManagedCount <Int32?>]: [SummaryMfaEnabled <Boolean?>]: [SummaryStatus <String>]: roleSummaryStatus [SummaryUsersCount <Int32?>]: [UserId <String>]: ROLEINFOASSIGNMENTS <IMicrosoftGraphPrivilegedRoleAssignment[]>: . [Id <String>]: Read-only. [ExpirationDateTime <DateTime?>]: [IsElevated <Boolean?>]: [ResultMessage <String>]: [RoleId <String>]: [RoleInfoAssignments <IMicrosoftGraphPrivilegedRoleAssignment[]>]: [RoleInfoId <String>]: Read-only. [RoleInfoName <String>]: [SettingApprovalOnElevation <Boolean?>]: [SettingApproverIds <String[]>]: [SettingElevationDuration <TimeSpan?>]: [SettingId <String>]: Read-only. [SettingIsMfaOnElevationConfigurable <Boolean?>]: [SettingLastGlobalAdmin <Boolean?>]: [SettingMaxElavationDuration <TimeSpan?>]: [SettingMfaOnElevation <Boolean?>]: [SettingMinElevationDuration <TimeSpan?>]: [SettingNotificationToUserOnElevation <Boolean?>]: [SettingTicketingInfoOnElevation <Boolean?>]: [SummaryElevatedCount <Int32?>]: [SummaryId <String>]: Read-only. [SummaryManagedCount <Int32?>]: [SummaryMfaEnabled <Boolean?>]: [SummaryStatus <String>]: roleSummaryStatus [SummaryUsersCount <Int32?>]: [UserId <String>]: .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.azureadpim/new-mgprivilegedroleassignmentprivilegedroleassignmentprivilegedroleassignment #> function New-MgPrivilegedRoleAssignmentPrivilegedRoleAssignmentPrivilegedRoleAssignment { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleAssignment])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleAssignment] # privilegedRoleAssignment # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${ExpirationDateTime}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${IsElevated}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${ResultMessage}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${RoleId}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleAssignment[]] # . # To construct, see NOTES section for ROLEINFOASSIGNMENTS properties and create a hash table. ${RoleInfoAssignments}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${RoleInfoId}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${RoleInfoName}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingApprovalOnElevation}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String[]] # . ${SettingApproverIds}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.TimeSpan] # . ${SettingElevationDuration}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${SettingId}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingIsMfaOnElevationConfigurable}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingLastGlobalAdmin}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.TimeSpan] # . ${SettingMaxElavationDuration}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingMfaOnElevation}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.TimeSpan] # . ${SettingMinElevationDuration}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingNotificationToUserOnElevation}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingTicketingInfoOnElevation}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Int32] # . ${SummaryElevatedCount}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${SummaryId}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Int32] # . ${SummaryManagedCount}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SummaryMfaEnabled}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # roleSummaryStatus ${SummaryStatus}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Int32] # . ${SummaryUsersCount}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${UserId}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Create = 'Microsoft.Graph.Identity.AzureADPIM.private\New-MgPrivilegedRoleAssignmentPrivilegedRoleAssignmentPrivilegedRoleAssignment_Create'; CreateExpanded = 'Microsoft.Graph.Identity.AzureADPIM.private\New-MgPrivilegedRoleAssignmentPrivilegedRoleAssignmentPrivilegedRoleAssignment_CreateExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Add new entity to privilegedRoleAssignmentRequests .Description Add new entity to privilegedRoleAssignmentRequests .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleAssignmentRequest .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleAssignmentRequest .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IMicrosoftGraphPrivilegedRoleAssignmentRequest>: privilegedRoleAssignmentRequest [Id <String>]: Read-only. [AssignmentState <String>]: [Duration <String>]: [Reason <String>]: [RequestedDateTime <DateTime?>]: [RoleId <String>]: [RoleInfoAssignments <IMicrosoftGraphPrivilegedRoleAssignment[]>]: [Id <String>]: Read-only. [ExpirationDateTime <DateTime?>]: [IsElevated <Boolean?>]: [ResultMessage <String>]: [RoleId <String>]: [RoleInfoAssignments <IMicrosoftGraphPrivilegedRoleAssignment[]>]: [RoleInfoId <String>]: Read-only. [RoleInfoName <String>]: [SettingApprovalOnElevation <Boolean?>]: [SettingApproverIds <String[]>]: [SettingElevationDuration <TimeSpan?>]: [SettingId <String>]: Read-only. [SettingIsMfaOnElevationConfigurable <Boolean?>]: [SettingLastGlobalAdmin <Boolean?>]: [SettingMaxElavationDuration <TimeSpan?>]: [SettingMfaOnElevation <Boolean?>]: [SettingMinElevationDuration <TimeSpan?>]: [SettingNotificationToUserOnElevation <Boolean?>]: [SettingTicketingInfoOnElevation <Boolean?>]: [SummaryElevatedCount <Int32?>]: [SummaryId <String>]: Read-only. [SummaryManagedCount <Int32?>]: [SummaryMfaEnabled <Boolean?>]: [SummaryStatus <String>]: roleSummaryStatus [SummaryUsersCount <Int32?>]: [UserId <String>]: [RoleInfoId <String>]: Read-only. [RoleInfoName <String>]: [ScheduleDuration <TimeSpan?>]: [ScheduleEndDateTime <DateTime?>]: [ScheduleStartDateTime <DateTime?>]: [ScheduleType <String>]: [SettingApprovalOnElevation <Boolean?>]: [SettingApproverIds <String[]>]: [SettingElevationDuration <TimeSpan?>]: [SettingId <String>]: Read-only. [SettingIsMfaOnElevationConfigurable <Boolean?>]: [SettingLastGlobalAdmin <Boolean?>]: [SettingMaxElavationDuration <TimeSpan?>]: [SettingMfaOnElevation <Boolean?>]: [SettingMinElevationDuration <TimeSpan?>]: [SettingNotificationToUserOnElevation <Boolean?>]: [SettingTicketingInfoOnElevation <Boolean?>]: [Status <String>]: [SummaryElevatedCount <Int32?>]: [SummaryId <String>]: Read-only. [SummaryManagedCount <Int32?>]: [SummaryMfaEnabled <Boolean?>]: [SummaryStatus <String>]: roleSummaryStatus [SummaryUsersCount <Int32?>]: [TicketNumber <String>]: [TicketSystem <String>]: [Type <String>]: [UserId <String>]: ROLEINFOASSIGNMENTS <IMicrosoftGraphPrivilegedRoleAssignment[]>: . [Id <String>]: Read-only. [ExpirationDateTime <DateTime?>]: [IsElevated <Boolean?>]: [ResultMessage <String>]: [RoleId <String>]: [RoleInfoAssignments <IMicrosoftGraphPrivilegedRoleAssignment[]>]: [RoleInfoId <String>]: Read-only. [RoleInfoName <String>]: [SettingApprovalOnElevation <Boolean?>]: [SettingApproverIds <String[]>]: [SettingElevationDuration <TimeSpan?>]: [SettingId <String>]: Read-only. [SettingIsMfaOnElevationConfigurable <Boolean?>]: [SettingLastGlobalAdmin <Boolean?>]: [SettingMaxElavationDuration <TimeSpan?>]: [SettingMfaOnElevation <Boolean?>]: [SettingMinElevationDuration <TimeSpan?>]: [SettingNotificationToUserOnElevation <Boolean?>]: [SettingTicketingInfoOnElevation <Boolean?>]: [SummaryElevatedCount <Int32?>]: [SummaryId <String>]: Read-only. [SummaryManagedCount <Int32?>]: [SummaryMfaEnabled <Boolean?>]: [SummaryStatus <String>]: roleSummaryStatus [SummaryUsersCount <Int32?>]: [UserId <String>]: .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.azureadpim/new-mgprivilegedroleassignmentrequestprivilegedroleassignmentrequestprivilegedroleassignmentrequest #> function New-MgPrivilegedRoleAssignmentRequestPrivilegedRoleAssignmentRequestPrivilegedRoleAssignmentRequest { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleAssignmentRequest])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleAssignmentRequest] # privilegedRoleAssignmentRequest # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${AssignmentState}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Duration}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Reason}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${RequestedDateTime}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${RoleId}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleAssignment[]] # . # To construct, see NOTES section for ROLEINFOASSIGNMENTS properties and create a hash table. ${RoleInfoAssignments}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${RoleInfoId}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${RoleInfoName}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.TimeSpan] # . ${ScheduleDuration}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${ScheduleEndDateTime}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${ScheduleStartDateTime}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${ScheduleType}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingApprovalOnElevation}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String[]] # . ${SettingApproverIds}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.TimeSpan] # . ${SettingElevationDuration}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${SettingId}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingIsMfaOnElevationConfigurable}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingLastGlobalAdmin}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.TimeSpan] # . ${SettingMaxElavationDuration}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingMfaOnElevation}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.TimeSpan] # . ${SettingMinElevationDuration}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingNotificationToUserOnElevation}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingTicketingInfoOnElevation}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Status}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Int32] # . ${SummaryElevatedCount}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${SummaryId}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Int32] # . ${SummaryManagedCount}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SummaryMfaEnabled}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # roleSummaryStatus ${SummaryStatus}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Int32] # . ${SummaryUsersCount}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${TicketNumber}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${TicketSystem}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Type}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${UserId}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Create = 'Microsoft.Graph.Identity.AzureADPIM.private\New-MgPrivilegedRoleAssignmentRequestPrivilegedRoleAssignmentRequestPrivilegedRoleAssignmentRequest_Create'; CreateExpanded = 'Microsoft.Graph.Identity.AzureADPIM.private\New-MgPrivilegedRoleAssignmentRequestPrivilegedRoleAssignmentRequestPrivilegedRoleAssignmentRequest_CreateExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Add new entity to privilegedRoles .Description Add new entity to privilegedRoles .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRole .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRole .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. ASSIGNMENTS <IMicrosoftGraphPrivilegedRoleAssignment[]>: . [Id <String>]: Read-only. [ExpirationDateTime <DateTime?>]: [IsElevated <Boolean?>]: [ResultMessage <String>]: [RoleId <String>]: [RoleInfoAssignments <IMicrosoftGraphPrivilegedRoleAssignment[]>]: [RoleInfoId <String>]: Read-only. [RoleInfoName <String>]: [SettingApprovalOnElevation <Boolean?>]: [SettingApproverIds <String[]>]: [SettingElevationDuration <TimeSpan?>]: [SettingId <String>]: Read-only. [SettingIsMfaOnElevationConfigurable <Boolean?>]: [SettingLastGlobalAdmin <Boolean?>]: [SettingMaxElavationDuration <TimeSpan?>]: [SettingMfaOnElevation <Boolean?>]: [SettingMinElevationDuration <TimeSpan?>]: [SettingNotificationToUserOnElevation <Boolean?>]: [SettingTicketingInfoOnElevation <Boolean?>]: [SummaryElevatedCount <Int32?>]: [SummaryId <String>]: Read-only. [SummaryManagedCount <Int32?>]: [SummaryMfaEnabled <Boolean?>]: [SummaryStatus <String>]: roleSummaryStatus [SummaryUsersCount <Int32?>]: [UserId <String>]: BODYPARAMETER <IMicrosoftGraphPrivilegedRole>: privilegedRole [Id <String>]: Read-only. [Assignments <IMicrosoftGraphPrivilegedRoleAssignment[]>]: [Id <String>]: Read-only. [ExpirationDateTime <DateTime?>]: [IsElevated <Boolean?>]: [ResultMessage <String>]: [RoleId <String>]: [RoleInfoAssignments <IMicrosoftGraphPrivilegedRoleAssignment[]>]: [RoleInfoId <String>]: Read-only. [RoleInfoName <String>]: [SettingApprovalOnElevation <Boolean?>]: [SettingApproverIds <String[]>]: [SettingElevationDuration <TimeSpan?>]: [SettingId <String>]: Read-only. [SettingIsMfaOnElevationConfigurable <Boolean?>]: [SettingLastGlobalAdmin <Boolean?>]: [SettingMaxElavationDuration <TimeSpan?>]: [SettingMfaOnElevation <Boolean?>]: [SettingMinElevationDuration <TimeSpan?>]: [SettingNotificationToUserOnElevation <Boolean?>]: [SettingTicketingInfoOnElevation <Boolean?>]: [SummaryElevatedCount <Int32?>]: [SummaryId <String>]: Read-only. [SummaryManagedCount <Int32?>]: [SummaryMfaEnabled <Boolean?>]: [SummaryStatus <String>]: roleSummaryStatus [SummaryUsersCount <Int32?>]: [UserId <String>]: [Name <String>]: [SettingApprovalOnElevation <Boolean?>]: [SettingApproverIds <String[]>]: [SettingElevationDuration <TimeSpan?>]: [SettingId <String>]: Read-only. [SettingIsMfaOnElevationConfigurable <Boolean?>]: [SettingLastGlobalAdmin <Boolean?>]: [SettingMaxElavationDuration <TimeSpan?>]: [SettingMfaOnElevation <Boolean?>]: [SettingMinElevationDuration <TimeSpan?>]: [SettingNotificationToUserOnElevation <Boolean?>]: [SettingTicketingInfoOnElevation <Boolean?>]: [SummaryElevatedCount <Int32?>]: [SummaryId <String>]: Read-only. [SummaryManagedCount <Int32?>]: [SummaryMfaEnabled <Boolean?>]: [SummaryStatus <String>]: roleSummaryStatus [SummaryUsersCount <Int32?>]: .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.azureadpim/new-mgprivilegedrole #> function New-MgPrivilegedRole { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRole])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRole] # privilegedRole # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleAssignment[]] # . # To construct, see NOTES section for ASSIGNMENTS properties and create a hash table. ${Assignments}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Name}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingApprovalOnElevation}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String[]] # . ${SettingApproverIds}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.TimeSpan] # . ${SettingElevationDuration}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${SettingId}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingIsMfaOnElevationConfigurable}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingLastGlobalAdmin}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.TimeSpan] # . ${SettingMaxElavationDuration}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingMfaOnElevation}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.TimeSpan] # . ${SettingMinElevationDuration}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingNotificationToUserOnElevation}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingTicketingInfoOnElevation}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Int32] # . ${SummaryElevatedCount}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${SummaryId}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Int32] # . ${SummaryManagedCount}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SummaryMfaEnabled}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # roleSummaryStatus ${SummaryStatus}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Int32] # . ${SummaryUsersCount}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Create = 'Microsoft.Graph.Identity.AzureADPIM.private\New-MgPrivilegedRole_Create'; CreateExpanded = 'Microsoft.Graph.Identity.AzureADPIM.private\New-MgPrivilegedRole_CreateExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Delete entity from privilegedApproval .Description Delete entity from privilegedApproval .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IIdentityAzureAdpimIdentity>: Identity Parameter [PrivilegedApprovalId <String>]: key: privilegedApproval-id of privilegedApproval [PrivilegedOperationEventId <String>]: key: privilegedOperationEvent-id of privilegedOperationEvent [PrivilegedRoleAssignmentId <String>]: key: privilegedRoleAssignment-id of privilegedRoleAssignment [PrivilegedRoleAssignmentRequestId <String>]: key: privilegedRoleAssignmentRequest-id of privilegedRoleAssignmentRequest [PrivilegedRoleId <String>]: key: privilegedRole-id of privilegedRole .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.azureadpim/remove-mgprivilegedapproval #> function Remove-MgPrivilegedApproval { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: privilegedApproval-id of privilegedApproval ${PrivilegedApprovalId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Header')] [System.String] # ETag ${IfMatch}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Delete = 'Microsoft.Graph.Identity.AzureADPIM.private\Remove-MgPrivilegedApproval_Delete'; DeleteViaIdentity = 'Microsoft.Graph.Identity.AzureADPIM.private\Remove-MgPrivilegedApproval_DeleteViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Delete entity from privilegedOperationEvents .Description Delete entity from privilegedOperationEvents .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IIdentityAzureAdpimIdentity>: Identity Parameter [PrivilegedApprovalId <String>]: key: privilegedApproval-id of privilegedApproval [PrivilegedOperationEventId <String>]: key: privilegedOperationEvent-id of privilegedOperationEvent [PrivilegedRoleAssignmentId <String>]: key: privilegedRoleAssignment-id of privilegedRoleAssignment [PrivilegedRoleAssignmentRequestId <String>]: key: privilegedRoleAssignmentRequest-id of privilegedRoleAssignmentRequest [PrivilegedRoleId <String>]: key: privilegedRole-id of privilegedRole .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.azureadpim/remove-mgprivilegedoperationeventprivilegedoperationeventprivilegedoperationevent #> function Remove-MgPrivilegedOperationEventPrivilegedOperationEventPrivilegedOperationEvent { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: privilegedOperationEvent-id of privilegedOperationEvent ${PrivilegedOperationEventId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Header')] [System.String] # ETag ${IfMatch}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Delete = 'Microsoft.Graph.Identity.AzureADPIM.private\Remove-MgPrivilegedOperationEventPrivilegedOperationEventPrivilegedOperationEvent_Delete'; DeleteViaIdentity = 'Microsoft.Graph.Identity.AzureADPIM.private\Remove-MgPrivilegedOperationEventPrivilegedOperationEventPrivilegedOperationEvent_DeleteViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Delete entity from privilegedRoleAssignments .Description Delete entity from privilegedRoleAssignments .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IIdentityAzureAdpimIdentity>: Identity Parameter [PrivilegedApprovalId <String>]: key: privilegedApproval-id of privilegedApproval [PrivilegedOperationEventId <String>]: key: privilegedOperationEvent-id of privilegedOperationEvent [PrivilegedRoleAssignmentId <String>]: key: privilegedRoleAssignment-id of privilegedRoleAssignment [PrivilegedRoleAssignmentRequestId <String>]: key: privilegedRoleAssignmentRequest-id of privilegedRoleAssignmentRequest [PrivilegedRoleId <String>]: key: privilegedRole-id of privilegedRole .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.azureadpim/remove-mgprivilegedroleassignmentprivilegedroleassignmentprivilegedroleassignment #> function Remove-MgPrivilegedRoleAssignmentPrivilegedRoleAssignmentPrivilegedRoleAssignment { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: privilegedRoleAssignment-id of privilegedRoleAssignment ${PrivilegedRoleAssignmentId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Header')] [System.String] # ETag ${IfMatch}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Delete = 'Microsoft.Graph.Identity.AzureADPIM.private\Remove-MgPrivilegedRoleAssignmentPrivilegedRoleAssignmentPrivilegedRoleAssignment_Delete'; DeleteViaIdentity = 'Microsoft.Graph.Identity.AzureADPIM.private\Remove-MgPrivilegedRoleAssignmentPrivilegedRoleAssignmentPrivilegedRoleAssignment_DeleteViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Delete entity from privilegedRoleAssignmentRequests .Description Delete entity from privilegedRoleAssignmentRequests .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IIdentityAzureAdpimIdentity>: Identity Parameter [PrivilegedApprovalId <String>]: key: privilegedApproval-id of privilegedApproval [PrivilegedOperationEventId <String>]: key: privilegedOperationEvent-id of privilegedOperationEvent [PrivilegedRoleAssignmentId <String>]: key: privilegedRoleAssignment-id of privilegedRoleAssignment [PrivilegedRoleAssignmentRequestId <String>]: key: privilegedRoleAssignmentRequest-id of privilegedRoleAssignmentRequest [PrivilegedRoleId <String>]: key: privilegedRole-id of privilegedRole .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.azureadpim/remove-mgprivilegedroleassignmentrequestprivilegedroleassignmentrequestprivilegedroleassignmentrequest #> function Remove-MgPrivilegedRoleAssignmentRequestPrivilegedRoleAssignmentRequestPrivilegedRoleAssignmentRequest { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: privilegedRoleAssignmentRequest-id of privilegedRoleAssignmentRequest ${PrivilegedRoleAssignmentRequestId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Header')] [System.String] # ETag ${IfMatch}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Delete = 'Microsoft.Graph.Identity.AzureADPIM.private\Remove-MgPrivilegedRoleAssignmentRequestPrivilegedRoleAssignmentRequestPrivilegedRoleAssignmentRequest_Delete'; DeleteViaIdentity = 'Microsoft.Graph.Identity.AzureADPIM.private\Remove-MgPrivilegedRoleAssignmentRequestPrivilegedRoleAssignmentRequestPrivilegedRoleAssignmentRequest_DeleteViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Delete entity from privilegedRoles .Description Delete entity from privilegedRoles .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IIdentityAzureAdpimIdentity>: Identity Parameter [PrivilegedApprovalId <String>]: key: privilegedApproval-id of privilegedApproval [PrivilegedOperationEventId <String>]: key: privilegedOperationEvent-id of privilegedOperationEvent [PrivilegedRoleAssignmentId <String>]: key: privilegedRoleAssignment-id of privilegedRoleAssignment [PrivilegedRoleAssignmentRequestId <String>]: key: privilegedRoleAssignmentRequest-id of privilegedRoleAssignmentRequest [PrivilegedRoleId <String>]: key: privilegedRole-id of privilegedRole .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.azureadpim/remove-mgprivilegedrole #> function Remove-MgPrivilegedRole { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: privilegedRole-id of privilegedRole ${PrivilegedRoleId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Header')] [System.String] # ETag ${IfMatch}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Delete = 'Microsoft.Graph.Identity.AzureADPIM.private\Remove-MgPrivilegedRole_Delete'; DeleteViaIdentity = 'Microsoft.Graph.Identity.AzureADPIM.private\Remove-MgPrivilegedRole_DeleteViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action cancel .Description Invoke action cancel .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleAssignmentRequest .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IIdentityAzureAdpimIdentity>: Identity Parameter [PrivilegedApprovalId <String>]: key: privilegedApproval-id of privilegedApproval [PrivilegedOperationEventId <String>]: key: privilegedOperationEvent-id of privilegedOperationEvent [PrivilegedRoleAssignmentId <String>]: key: privilegedRoleAssignment-id of privilegedRoleAssignment [PrivilegedRoleAssignmentRequestId <String>]: key: privilegedRoleAssignmentRequest-id of privilegedRoleAssignmentRequest [PrivilegedRoleId <String>]: key: privilegedRole-id of privilegedRole .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.azureadpim/stop-mgprivilegedroleassignmentrequest #> function Stop-MgPrivilegedRoleAssignmentRequest { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleAssignmentRequest])] [CmdletBinding(DefaultParameterSetName='Cancel', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Cancel', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: privilegedRoleAssignmentRequest-id of privilegedRoleAssignmentRequest ${PrivilegedRoleAssignmentRequestId}, [Parameter(ParameterSetName='CancelViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Cancel = 'Microsoft.Graph.Identity.AzureADPIM.private\Stop-MgPrivilegedRoleAssignmentRequest_Cancel'; CancelViaIdentity = 'Microsoft.Graph.Identity.AzureADPIM.private\Stop-MgPrivilegedRoleAssignmentRequest_CancelViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Update the navigation property roleInfo in privilegedApproval .Description Update the navigation property roleInfo in privilegedApproval .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRole .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. ASSIGNMENTS <IMicrosoftGraphPrivilegedRoleAssignment[]>: . [Id <String>]: Read-only. [ExpirationDateTime <DateTime?>]: [IsElevated <Boolean?>]: [ResultMessage <String>]: [RoleId <String>]: [RoleInfoAssignments <IMicrosoftGraphPrivilegedRoleAssignment[]>]: [RoleInfoId <String>]: Read-only. [RoleInfoName <String>]: [SettingApprovalOnElevation <Boolean?>]: [SettingApproverIds <String[]>]: [SettingElevationDuration <TimeSpan?>]: [SettingId <String>]: Read-only. [SettingIsMfaOnElevationConfigurable <Boolean?>]: [SettingLastGlobalAdmin <Boolean?>]: [SettingMaxElavationDuration <TimeSpan?>]: [SettingMfaOnElevation <Boolean?>]: [SettingMinElevationDuration <TimeSpan?>]: [SettingNotificationToUserOnElevation <Boolean?>]: [SettingTicketingInfoOnElevation <Boolean?>]: [SummaryElevatedCount <Int32?>]: [SummaryId <String>]: Read-only. [SummaryManagedCount <Int32?>]: [SummaryMfaEnabled <Boolean?>]: [SummaryStatus <String>]: roleSummaryStatus [SummaryUsersCount <Int32?>]: [UserId <String>]: BODYPARAMETER <IMicrosoftGraphPrivilegedRole>: privilegedRole [Id <String>]: Read-only. [Assignments <IMicrosoftGraphPrivilegedRoleAssignment[]>]: [Id <String>]: Read-only. [ExpirationDateTime <DateTime?>]: [IsElevated <Boolean?>]: [ResultMessage <String>]: [RoleId <String>]: [RoleInfoAssignments <IMicrosoftGraphPrivilegedRoleAssignment[]>]: [RoleInfoId <String>]: Read-only. [RoleInfoName <String>]: [SettingApprovalOnElevation <Boolean?>]: [SettingApproverIds <String[]>]: [SettingElevationDuration <TimeSpan?>]: [SettingId <String>]: Read-only. [SettingIsMfaOnElevationConfigurable <Boolean?>]: [SettingLastGlobalAdmin <Boolean?>]: [SettingMaxElavationDuration <TimeSpan?>]: [SettingMfaOnElevation <Boolean?>]: [SettingMinElevationDuration <TimeSpan?>]: [SettingNotificationToUserOnElevation <Boolean?>]: [SettingTicketingInfoOnElevation <Boolean?>]: [SummaryElevatedCount <Int32?>]: [SummaryId <String>]: Read-only. [SummaryManagedCount <Int32?>]: [SummaryMfaEnabled <Boolean?>]: [SummaryStatus <String>]: roleSummaryStatus [SummaryUsersCount <Int32?>]: [UserId <String>]: [Name <String>]: [SettingApprovalOnElevation <Boolean?>]: [SettingApproverIds <String[]>]: [SettingElevationDuration <TimeSpan?>]: [SettingId <String>]: Read-only. [SettingIsMfaOnElevationConfigurable <Boolean?>]: [SettingLastGlobalAdmin <Boolean?>]: [SettingMaxElavationDuration <TimeSpan?>]: [SettingMfaOnElevation <Boolean?>]: [SettingMinElevationDuration <TimeSpan?>]: [SettingNotificationToUserOnElevation <Boolean?>]: [SettingTicketingInfoOnElevation <Boolean?>]: [SummaryElevatedCount <Int32?>]: [SummaryId <String>]: Read-only. [SummaryManagedCount <Int32?>]: [SummaryMfaEnabled <Boolean?>]: [SummaryStatus <String>]: roleSummaryStatus [SummaryUsersCount <Int32?>]: INPUTOBJECT <IIdentityAzureAdpimIdentity>: Identity Parameter [PrivilegedApprovalId <String>]: key: privilegedApproval-id of privilegedApproval [PrivilegedOperationEventId <String>]: key: privilegedOperationEvent-id of privilegedOperationEvent [PrivilegedRoleAssignmentId <String>]: key: privilegedRoleAssignment-id of privilegedRoleAssignment [PrivilegedRoleAssignmentRequestId <String>]: key: privilegedRoleAssignmentRequest-id of privilegedRoleAssignmentRequest [PrivilegedRoleId <String>]: key: privilegedRole-id of privilegedRole .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.azureadpim/update-mgprivilegedapprovalroleinfo #> function Update-MgPrivilegedApprovalRoleInfo { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: privilegedApproval-id of privilegedApproval ${PrivilegedApprovalId}, [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRole] # privilegedRole # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleAssignment[]] # . # To construct, see NOTES section for ASSIGNMENTS properties and create a hash table. ${Assignments}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Name}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingApprovalOnElevation}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String[]] # . ${SettingApproverIds}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.TimeSpan] # . ${SettingElevationDuration}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${SettingId}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingIsMfaOnElevationConfigurable}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingLastGlobalAdmin}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.TimeSpan] # . ${SettingMaxElavationDuration}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingMfaOnElevation}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.TimeSpan] # . ${SettingMinElevationDuration}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingNotificationToUserOnElevation}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingTicketingInfoOnElevation}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Int32] # . ${SummaryElevatedCount}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${SummaryId}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Int32] # . ${SummaryManagedCount}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SummaryMfaEnabled}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # roleSummaryStatus ${SummaryStatus}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Int32] # . ${SummaryUsersCount}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Update = 'Microsoft.Graph.Identity.AzureADPIM.private\Update-MgPrivilegedApprovalRoleInfo_Update'; UpdateExpanded = 'Microsoft.Graph.Identity.AzureADPIM.private\Update-MgPrivilegedApprovalRoleInfo_UpdateExpanded'; UpdateViaIdentity = 'Microsoft.Graph.Identity.AzureADPIM.private\Update-MgPrivilegedApprovalRoleInfo_UpdateViaIdentity'; UpdateViaIdentityExpanded = 'Microsoft.Graph.Identity.AzureADPIM.private\Update-MgPrivilegedApprovalRoleInfo_UpdateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Update entity in privilegedApproval .Description Update entity in privilegedApproval .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedApproval .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IMicrosoftGraphPrivilegedApproval>: privilegedApproval [Id <String>]: Read-only. [ApprovalDuration <TimeSpan?>]: [ApprovalState <String>]: approvalState [ApprovalType <String>]: [ApproverReason <String>]: [EndDateTime <DateTime?>]: [Request <IMicrosoftGraphPrivilegedRoleAssignmentRequest>]: privilegedRoleAssignmentRequest [Id <String>]: Read-only. [AssignmentState <String>]: [Duration <String>]: [Reason <String>]: [RequestedDateTime <DateTime?>]: [RoleId <String>]: [RoleInfoAssignments <IMicrosoftGraphPrivilegedRoleAssignment[]>]: [Id <String>]: Read-only. [ExpirationDateTime <DateTime?>]: [IsElevated <Boolean?>]: [ResultMessage <String>]: [RoleId <String>]: [RoleInfoAssignments <IMicrosoftGraphPrivilegedRoleAssignment[]>]: [RoleInfoId <String>]: Read-only. [RoleInfoName <String>]: [SettingApprovalOnElevation <Boolean?>]: [SettingApproverIds <String[]>]: [SettingElevationDuration <TimeSpan?>]: [SettingId <String>]: Read-only. [SettingIsMfaOnElevationConfigurable <Boolean?>]: [SettingLastGlobalAdmin <Boolean?>]: [SettingMaxElavationDuration <TimeSpan?>]: [SettingMfaOnElevation <Boolean?>]: [SettingMinElevationDuration <TimeSpan?>]: [SettingNotificationToUserOnElevation <Boolean?>]: [SettingTicketingInfoOnElevation <Boolean?>]: [SummaryElevatedCount <Int32?>]: [SummaryId <String>]: Read-only. [SummaryManagedCount <Int32?>]: [SummaryMfaEnabled <Boolean?>]: [SummaryStatus <String>]: roleSummaryStatus [SummaryUsersCount <Int32?>]: [UserId <String>]: [RoleInfoId <String>]: Read-only. [RoleInfoName <String>]: [ScheduleDuration <TimeSpan?>]: [ScheduleEndDateTime <DateTime?>]: [ScheduleStartDateTime <DateTime?>]: [ScheduleType <String>]: [SettingApprovalOnElevation <Boolean?>]: [SettingApproverIds <String[]>]: [SettingElevationDuration <TimeSpan?>]: [SettingId <String>]: Read-only. [SettingIsMfaOnElevationConfigurable <Boolean?>]: [SettingLastGlobalAdmin <Boolean?>]: [SettingMaxElavationDuration <TimeSpan?>]: [SettingMfaOnElevation <Boolean?>]: [SettingMinElevationDuration <TimeSpan?>]: [SettingNotificationToUserOnElevation <Boolean?>]: [SettingTicketingInfoOnElevation <Boolean?>]: [Status <String>]: [SummaryElevatedCount <Int32?>]: [SummaryId <String>]: Read-only. [SummaryManagedCount <Int32?>]: [SummaryMfaEnabled <Boolean?>]: [SummaryStatus <String>]: roleSummaryStatus [SummaryUsersCount <Int32?>]: [TicketNumber <String>]: [TicketSystem <String>]: [Type <String>]: [UserId <String>]: [RequestorReason <String>]: [RoleId <String>]: [RoleInfoAssignments <IMicrosoftGraphPrivilegedRoleAssignment[]>]: [RoleInfoId <String>]: Read-only. [RoleInfoName <String>]: [SettingApprovalOnElevation <Boolean?>]: [SettingApproverIds <String[]>]: [SettingElevationDuration <TimeSpan?>]: [SettingId <String>]: Read-only. [SettingIsMfaOnElevationConfigurable <Boolean?>]: [SettingLastGlobalAdmin <Boolean?>]: [SettingMaxElavationDuration <TimeSpan?>]: [SettingMfaOnElevation <Boolean?>]: [SettingMinElevationDuration <TimeSpan?>]: [SettingNotificationToUserOnElevation <Boolean?>]: [SettingTicketingInfoOnElevation <Boolean?>]: [StartDateTime <DateTime?>]: [SummaryElevatedCount <Int32?>]: [SummaryId <String>]: Read-only. [SummaryManagedCount <Int32?>]: [SummaryMfaEnabled <Boolean?>]: [SummaryStatus <String>]: roleSummaryStatus [SummaryUsersCount <Int32?>]: [UserId <String>]: INPUTOBJECT <IIdentityAzureAdpimIdentity>: Identity Parameter [PrivilegedApprovalId <String>]: key: privilegedApproval-id of privilegedApproval [PrivilegedOperationEventId <String>]: key: privilegedOperationEvent-id of privilegedOperationEvent [PrivilegedRoleAssignmentId <String>]: key: privilegedRoleAssignment-id of privilegedRoleAssignment [PrivilegedRoleAssignmentRequestId <String>]: key: privilegedRoleAssignmentRequest-id of privilegedRoleAssignmentRequest [PrivilegedRoleId <String>]: key: privilegedRole-id of privilegedRole REQUEST <IMicrosoftGraphPrivilegedRoleAssignmentRequest>: privilegedRoleAssignmentRequest [Id <String>]: Read-only. [AssignmentState <String>]: [Duration <String>]: [Reason <String>]: [RequestedDateTime <DateTime?>]: [RoleId <String>]: [RoleInfoAssignments <IMicrosoftGraphPrivilegedRoleAssignment[]>]: [Id <String>]: Read-only. [ExpirationDateTime <DateTime?>]: [IsElevated <Boolean?>]: [ResultMessage <String>]: [RoleId <String>]: [RoleInfoAssignments <IMicrosoftGraphPrivilegedRoleAssignment[]>]: [RoleInfoId <String>]: Read-only. [RoleInfoName <String>]: [SettingApprovalOnElevation <Boolean?>]: [SettingApproverIds <String[]>]: [SettingElevationDuration <TimeSpan?>]: [SettingId <String>]: Read-only. [SettingIsMfaOnElevationConfigurable <Boolean?>]: [SettingLastGlobalAdmin <Boolean?>]: [SettingMaxElavationDuration <TimeSpan?>]: [SettingMfaOnElevation <Boolean?>]: [SettingMinElevationDuration <TimeSpan?>]: [SettingNotificationToUserOnElevation <Boolean?>]: [SettingTicketingInfoOnElevation <Boolean?>]: [SummaryElevatedCount <Int32?>]: [SummaryId <String>]: Read-only. [SummaryManagedCount <Int32?>]: [SummaryMfaEnabled <Boolean?>]: [SummaryStatus <String>]: roleSummaryStatus [SummaryUsersCount <Int32?>]: [UserId <String>]: [RoleInfoId <String>]: Read-only. [RoleInfoName <String>]: [ScheduleDuration <TimeSpan?>]: [ScheduleEndDateTime <DateTime?>]: [ScheduleStartDateTime <DateTime?>]: [ScheduleType <String>]: [SettingApprovalOnElevation <Boolean?>]: [SettingApproverIds <String[]>]: [SettingElevationDuration <TimeSpan?>]: [SettingId <String>]: Read-only. [SettingIsMfaOnElevationConfigurable <Boolean?>]: [SettingLastGlobalAdmin <Boolean?>]: [SettingMaxElavationDuration <TimeSpan?>]: [SettingMfaOnElevation <Boolean?>]: [SettingMinElevationDuration <TimeSpan?>]: [SettingNotificationToUserOnElevation <Boolean?>]: [SettingTicketingInfoOnElevation <Boolean?>]: [Status <String>]: [SummaryElevatedCount <Int32?>]: [SummaryId <String>]: Read-only. [SummaryManagedCount <Int32?>]: [SummaryMfaEnabled <Boolean?>]: [SummaryStatus <String>]: roleSummaryStatus [SummaryUsersCount <Int32?>]: [TicketNumber <String>]: [TicketSystem <String>]: [Type <String>]: [UserId <String>]: ROLEINFOASSIGNMENTS <IMicrosoftGraphPrivilegedRoleAssignment[]>: . [Id <String>]: Read-only. [ExpirationDateTime <DateTime?>]: [IsElevated <Boolean?>]: [ResultMessage <String>]: [RoleId <String>]: [RoleInfoAssignments <IMicrosoftGraphPrivilegedRoleAssignment[]>]: [RoleInfoId <String>]: Read-only. [RoleInfoName <String>]: [SettingApprovalOnElevation <Boolean?>]: [SettingApproverIds <String[]>]: [SettingElevationDuration <TimeSpan?>]: [SettingId <String>]: Read-only. [SettingIsMfaOnElevationConfigurable <Boolean?>]: [SettingLastGlobalAdmin <Boolean?>]: [SettingMaxElavationDuration <TimeSpan?>]: [SettingMfaOnElevation <Boolean?>]: [SettingMinElevationDuration <TimeSpan?>]: [SettingNotificationToUserOnElevation <Boolean?>]: [SettingTicketingInfoOnElevation <Boolean?>]: [SummaryElevatedCount <Int32?>]: [SummaryId <String>]: Read-only. [SummaryManagedCount <Int32?>]: [SummaryMfaEnabled <Boolean?>]: [SummaryStatus <String>]: roleSummaryStatus [SummaryUsersCount <Int32?>]: [UserId <String>]: .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.azureadpim/update-mgprivilegedapproval #> function Update-MgPrivilegedApproval { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: privilegedApproval-id of privilegedApproval ${PrivilegedApprovalId}, [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedApproval] # privilegedApproval # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.TimeSpan] # . ${ApprovalDuration}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # approvalState ${ApprovalState}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${ApprovalType}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${ApproverReason}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${EndDateTime}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleAssignmentRequest] # privilegedRoleAssignmentRequest # To construct, see NOTES section for REQUEST properties and create a hash table. ${Request}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${RequestorReason}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${RoleId}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleAssignment[]] # . # To construct, see NOTES section for ROLEINFOASSIGNMENTS properties and create a hash table. ${RoleInfoAssignments}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${RoleInfoId}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${RoleInfoName}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingApprovalOnElevation}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String[]] # . ${SettingApproverIds}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.TimeSpan] # . ${SettingElevationDuration}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${SettingId}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingIsMfaOnElevationConfigurable}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingLastGlobalAdmin}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.TimeSpan] # . ${SettingMaxElavationDuration}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingMfaOnElevation}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.TimeSpan] # . ${SettingMinElevationDuration}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingNotificationToUserOnElevation}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingTicketingInfoOnElevation}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${StartDateTime}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Int32] # . ${SummaryElevatedCount}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${SummaryId}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Int32] # . ${SummaryManagedCount}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SummaryMfaEnabled}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # roleSummaryStatus ${SummaryStatus}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Int32] # . ${SummaryUsersCount}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${UserId}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Update = 'Microsoft.Graph.Identity.AzureADPIM.private\Update-MgPrivilegedApproval_Update'; UpdateExpanded = 'Microsoft.Graph.Identity.AzureADPIM.private\Update-MgPrivilegedApproval_UpdateExpanded'; UpdateViaIdentity = 'Microsoft.Graph.Identity.AzureADPIM.private\Update-MgPrivilegedApproval_UpdateViaIdentity'; UpdateViaIdentityExpanded = 'Microsoft.Graph.Identity.AzureADPIM.private\Update-MgPrivilegedApproval_UpdateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Update entity in privilegedOperationEvents .Description Update entity in privilegedOperationEvents .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedOperationEvent .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IMicrosoftGraphPrivilegedOperationEvent>: privilegedOperationEvent [Id <String>]: Read-only. [AdditionalInformation <String>]: [CreationDateTime <DateTime?>]: [ExpirationDateTime <DateTime?>]: [ReferenceKey <String>]: [ReferenceSystem <String>]: [RequestType <String>]: [RequestorId <String>]: [RequestorName <String>]: [RoleId <String>]: [RoleName <String>]: [TenantId <String>]: [UserId <String>]: [UserMail <String>]: [UserName <String>]: INPUTOBJECT <IIdentityAzureAdpimIdentity>: Identity Parameter [PrivilegedApprovalId <String>]: key: privilegedApproval-id of privilegedApproval [PrivilegedOperationEventId <String>]: key: privilegedOperationEvent-id of privilegedOperationEvent [PrivilegedRoleAssignmentId <String>]: key: privilegedRoleAssignment-id of privilegedRoleAssignment [PrivilegedRoleAssignmentRequestId <String>]: key: privilegedRoleAssignmentRequest-id of privilegedRoleAssignmentRequest [PrivilegedRoleId <String>]: key: privilegedRole-id of privilegedRole .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.azureadpim/update-mgprivilegedoperationeventprivilegedoperationeventprivilegedoperationevent #> function Update-MgPrivilegedOperationEventPrivilegedOperationEventPrivilegedOperationEvent { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: privilegedOperationEvent-id of privilegedOperationEvent ${PrivilegedOperationEventId}, [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedOperationEvent] # privilegedOperationEvent # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${AdditionalInformation}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${CreationDateTime}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${ExpirationDateTime}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${ReferenceKey}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${ReferenceSystem}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${RequestType}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${RequestorId}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${RequestorName}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${RoleId}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${RoleName}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${TenantId}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${UserId}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${UserMail}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${UserName}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Update = 'Microsoft.Graph.Identity.AzureADPIM.private\Update-MgPrivilegedOperationEventPrivilegedOperationEventPrivilegedOperationEvent_Update'; UpdateExpanded = 'Microsoft.Graph.Identity.AzureADPIM.private\Update-MgPrivilegedOperationEventPrivilegedOperationEventPrivilegedOperationEvent_UpdateExpanded'; UpdateViaIdentity = 'Microsoft.Graph.Identity.AzureADPIM.private\Update-MgPrivilegedOperationEventPrivilegedOperationEventPrivilegedOperationEvent_UpdateViaIdentity'; UpdateViaIdentityExpanded = 'Microsoft.Graph.Identity.AzureADPIM.private\Update-MgPrivilegedOperationEventPrivilegedOperationEventPrivilegedOperationEvent_UpdateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Update entity in privilegedRoleAssignments .Description Update entity in privilegedRoleAssignments .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleAssignment .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IMicrosoftGraphPrivilegedRoleAssignment>: privilegedRoleAssignment [Id <String>]: Read-only. [ExpirationDateTime <DateTime?>]: [IsElevated <Boolean?>]: [ResultMessage <String>]: [RoleId <String>]: [RoleInfoAssignments <IMicrosoftGraphPrivilegedRoleAssignment[]>]: [RoleInfoId <String>]: Read-only. [RoleInfoName <String>]: [SettingApprovalOnElevation <Boolean?>]: [SettingApproverIds <String[]>]: [SettingElevationDuration <TimeSpan?>]: [SettingId <String>]: Read-only. [SettingIsMfaOnElevationConfigurable <Boolean?>]: [SettingLastGlobalAdmin <Boolean?>]: [SettingMaxElavationDuration <TimeSpan?>]: [SettingMfaOnElevation <Boolean?>]: [SettingMinElevationDuration <TimeSpan?>]: [SettingNotificationToUserOnElevation <Boolean?>]: [SettingTicketingInfoOnElevation <Boolean?>]: [SummaryElevatedCount <Int32?>]: [SummaryId <String>]: Read-only. [SummaryManagedCount <Int32?>]: [SummaryMfaEnabled <Boolean?>]: [SummaryStatus <String>]: roleSummaryStatus [SummaryUsersCount <Int32?>]: [UserId <String>]: INPUTOBJECT <IIdentityAzureAdpimIdentity>: Identity Parameter [PrivilegedApprovalId <String>]: key: privilegedApproval-id of privilegedApproval [PrivilegedOperationEventId <String>]: key: privilegedOperationEvent-id of privilegedOperationEvent [PrivilegedRoleAssignmentId <String>]: key: privilegedRoleAssignment-id of privilegedRoleAssignment [PrivilegedRoleAssignmentRequestId <String>]: key: privilegedRoleAssignmentRequest-id of privilegedRoleAssignmentRequest [PrivilegedRoleId <String>]: key: privilegedRole-id of privilegedRole ROLEINFOASSIGNMENTS <IMicrosoftGraphPrivilegedRoleAssignment[]>: . [Id <String>]: Read-only. [ExpirationDateTime <DateTime?>]: [IsElevated <Boolean?>]: [ResultMessage <String>]: [RoleId <String>]: [RoleInfoAssignments <IMicrosoftGraphPrivilegedRoleAssignment[]>]: [RoleInfoId <String>]: Read-only. [RoleInfoName <String>]: [SettingApprovalOnElevation <Boolean?>]: [SettingApproverIds <String[]>]: [SettingElevationDuration <TimeSpan?>]: [SettingId <String>]: Read-only. [SettingIsMfaOnElevationConfigurable <Boolean?>]: [SettingLastGlobalAdmin <Boolean?>]: [SettingMaxElavationDuration <TimeSpan?>]: [SettingMfaOnElevation <Boolean?>]: [SettingMinElevationDuration <TimeSpan?>]: [SettingNotificationToUserOnElevation <Boolean?>]: [SettingTicketingInfoOnElevation <Boolean?>]: [SummaryElevatedCount <Int32?>]: [SummaryId <String>]: Read-only. [SummaryManagedCount <Int32?>]: [SummaryMfaEnabled <Boolean?>]: [SummaryStatus <String>]: roleSummaryStatus [SummaryUsersCount <Int32?>]: [UserId <String>]: .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.azureadpim/update-mgprivilegedroleassignmentprivilegedroleassignmentprivilegedroleassignment #> function Update-MgPrivilegedRoleAssignmentPrivilegedRoleAssignmentPrivilegedRoleAssignment { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: privilegedRoleAssignment-id of privilegedRoleAssignment ${PrivilegedRoleAssignmentId}, [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleAssignment] # privilegedRoleAssignment # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${ExpirationDateTime}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${IsElevated}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${ResultMessage}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${RoleId}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleAssignment[]] # . # To construct, see NOTES section for ROLEINFOASSIGNMENTS properties and create a hash table. ${RoleInfoAssignments}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${RoleInfoId}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${RoleInfoName}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingApprovalOnElevation}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String[]] # . ${SettingApproverIds}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.TimeSpan] # . ${SettingElevationDuration}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${SettingId}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingIsMfaOnElevationConfigurable}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingLastGlobalAdmin}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.TimeSpan] # . ${SettingMaxElavationDuration}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingMfaOnElevation}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.TimeSpan] # . ${SettingMinElevationDuration}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingNotificationToUserOnElevation}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingTicketingInfoOnElevation}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Int32] # . ${SummaryElevatedCount}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${SummaryId}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Int32] # . ${SummaryManagedCount}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SummaryMfaEnabled}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # roleSummaryStatus ${SummaryStatus}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Int32] # . ${SummaryUsersCount}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${UserId}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Update = 'Microsoft.Graph.Identity.AzureADPIM.private\Update-MgPrivilegedRoleAssignmentPrivilegedRoleAssignmentPrivilegedRoleAssignment_Update'; UpdateExpanded = 'Microsoft.Graph.Identity.AzureADPIM.private\Update-MgPrivilegedRoleAssignmentPrivilegedRoleAssignmentPrivilegedRoleAssignment_UpdateExpanded'; UpdateViaIdentity = 'Microsoft.Graph.Identity.AzureADPIM.private\Update-MgPrivilegedRoleAssignmentPrivilegedRoleAssignmentPrivilegedRoleAssignment_UpdateViaIdentity'; UpdateViaIdentityExpanded = 'Microsoft.Graph.Identity.AzureADPIM.private\Update-MgPrivilegedRoleAssignmentPrivilegedRoleAssignmentPrivilegedRoleAssignment_UpdateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Update entity in privilegedRoleAssignmentRequests .Description Update entity in privilegedRoleAssignmentRequests .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleAssignmentRequest .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IMicrosoftGraphPrivilegedRoleAssignmentRequest>: privilegedRoleAssignmentRequest [Id <String>]: Read-only. [AssignmentState <String>]: [Duration <String>]: [Reason <String>]: [RequestedDateTime <DateTime?>]: [RoleId <String>]: [RoleInfoAssignments <IMicrosoftGraphPrivilegedRoleAssignment[]>]: [Id <String>]: Read-only. [ExpirationDateTime <DateTime?>]: [IsElevated <Boolean?>]: [ResultMessage <String>]: [RoleId <String>]: [RoleInfoAssignments <IMicrosoftGraphPrivilegedRoleAssignment[]>]: [RoleInfoId <String>]: Read-only. [RoleInfoName <String>]: [SettingApprovalOnElevation <Boolean?>]: [SettingApproverIds <String[]>]: [SettingElevationDuration <TimeSpan?>]: [SettingId <String>]: Read-only. [SettingIsMfaOnElevationConfigurable <Boolean?>]: [SettingLastGlobalAdmin <Boolean?>]: [SettingMaxElavationDuration <TimeSpan?>]: [SettingMfaOnElevation <Boolean?>]: [SettingMinElevationDuration <TimeSpan?>]: [SettingNotificationToUserOnElevation <Boolean?>]: [SettingTicketingInfoOnElevation <Boolean?>]: [SummaryElevatedCount <Int32?>]: [SummaryId <String>]: Read-only. [SummaryManagedCount <Int32?>]: [SummaryMfaEnabled <Boolean?>]: [SummaryStatus <String>]: roleSummaryStatus [SummaryUsersCount <Int32?>]: [UserId <String>]: [RoleInfoId <String>]: Read-only. [RoleInfoName <String>]: [ScheduleDuration <TimeSpan?>]: [ScheduleEndDateTime <DateTime?>]: [ScheduleStartDateTime <DateTime?>]: [ScheduleType <String>]: [SettingApprovalOnElevation <Boolean?>]: [SettingApproverIds <String[]>]: [SettingElevationDuration <TimeSpan?>]: [SettingId <String>]: Read-only. [SettingIsMfaOnElevationConfigurable <Boolean?>]: [SettingLastGlobalAdmin <Boolean?>]: [SettingMaxElavationDuration <TimeSpan?>]: [SettingMfaOnElevation <Boolean?>]: [SettingMinElevationDuration <TimeSpan?>]: [SettingNotificationToUserOnElevation <Boolean?>]: [SettingTicketingInfoOnElevation <Boolean?>]: [Status <String>]: [SummaryElevatedCount <Int32?>]: [SummaryId <String>]: Read-only. [SummaryManagedCount <Int32?>]: [SummaryMfaEnabled <Boolean?>]: [SummaryStatus <String>]: roleSummaryStatus [SummaryUsersCount <Int32?>]: [TicketNumber <String>]: [TicketSystem <String>]: [Type <String>]: [UserId <String>]: INPUTOBJECT <IIdentityAzureAdpimIdentity>: Identity Parameter [PrivilegedApprovalId <String>]: key: privilegedApproval-id of privilegedApproval [PrivilegedOperationEventId <String>]: key: privilegedOperationEvent-id of privilegedOperationEvent [PrivilegedRoleAssignmentId <String>]: key: privilegedRoleAssignment-id of privilegedRoleAssignment [PrivilegedRoleAssignmentRequestId <String>]: key: privilegedRoleAssignmentRequest-id of privilegedRoleAssignmentRequest [PrivilegedRoleId <String>]: key: privilegedRole-id of privilegedRole ROLEINFOASSIGNMENTS <IMicrosoftGraphPrivilegedRoleAssignment[]>: . [Id <String>]: Read-only. [ExpirationDateTime <DateTime?>]: [IsElevated <Boolean?>]: [ResultMessage <String>]: [RoleId <String>]: [RoleInfoAssignments <IMicrosoftGraphPrivilegedRoleAssignment[]>]: [RoleInfoId <String>]: Read-only. [RoleInfoName <String>]: [SettingApprovalOnElevation <Boolean?>]: [SettingApproverIds <String[]>]: [SettingElevationDuration <TimeSpan?>]: [SettingId <String>]: Read-only. [SettingIsMfaOnElevationConfigurable <Boolean?>]: [SettingLastGlobalAdmin <Boolean?>]: [SettingMaxElavationDuration <TimeSpan?>]: [SettingMfaOnElevation <Boolean?>]: [SettingMinElevationDuration <TimeSpan?>]: [SettingNotificationToUserOnElevation <Boolean?>]: [SettingTicketingInfoOnElevation <Boolean?>]: [SummaryElevatedCount <Int32?>]: [SummaryId <String>]: Read-only. [SummaryManagedCount <Int32?>]: [SummaryMfaEnabled <Boolean?>]: [SummaryStatus <String>]: roleSummaryStatus [SummaryUsersCount <Int32?>]: [UserId <String>]: .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.azureadpim/update-mgprivilegedroleassignmentrequestprivilegedroleassignmentrequestprivilegedroleassignmentrequest #> function Update-MgPrivilegedRoleAssignmentRequestPrivilegedRoleAssignmentRequestPrivilegedRoleAssignmentRequest { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: privilegedRoleAssignmentRequest-id of privilegedRoleAssignmentRequest ${PrivilegedRoleAssignmentRequestId}, [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleAssignmentRequest] # privilegedRoleAssignmentRequest # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${AssignmentState}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Duration}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Reason}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${RequestedDateTime}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${RoleId}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleAssignment[]] # . # To construct, see NOTES section for ROLEINFOASSIGNMENTS properties and create a hash table. ${RoleInfoAssignments}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${RoleInfoId}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${RoleInfoName}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.TimeSpan] # . ${ScheduleDuration}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${ScheduleEndDateTime}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${ScheduleStartDateTime}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${ScheduleType}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingApprovalOnElevation}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String[]] # . ${SettingApproverIds}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.TimeSpan] # . ${SettingElevationDuration}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${SettingId}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingIsMfaOnElevationConfigurable}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingLastGlobalAdmin}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.TimeSpan] # . ${SettingMaxElavationDuration}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingMfaOnElevation}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.TimeSpan] # . ${SettingMinElevationDuration}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingNotificationToUserOnElevation}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingTicketingInfoOnElevation}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Status}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Int32] # . ${SummaryElevatedCount}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${SummaryId}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Int32] # . ${SummaryManagedCount}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SummaryMfaEnabled}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # roleSummaryStatus ${SummaryStatus}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Int32] # . ${SummaryUsersCount}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${TicketNumber}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${TicketSystem}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Type}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${UserId}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Update = 'Microsoft.Graph.Identity.AzureADPIM.private\Update-MgPrivilegedRoleAssignmentRequestPrivilegedRoleAssignmentRequestPrivilegedRoleAssignmentRequest_Update'; UpdateExpanded = 'Microsoft.Graph.Identity.AzureADPIM.private\Update-MgPrivilegedRoleAssignmentRequestPrivilegedRoleAssignmentRequestPrivilegedRoleAssignmentRequest_UpdateExpanded'; UpdateViaIdentity = 'Microsoft.Graph.Identity.AzureADPIM.private\Update-MgPrivilegedRoleAssignmentRequestPrivilegedRoleAssignmentRequestPrivilegedRoleAssignmentRequest_UpdateViaIdentity'; UpdateViaIdentityExpanded = 'Microsoft.Graph.Identity.AzureADPIM.private\Update-MgPrivilegedRoleAssignmentRequestPrivilegedRoleAssignmentRequestPrivilegedRoleAssignmentRequest_UpdateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Update the navigation property roleInfo in privilegedRoleAssignmentRequests .Description Update the navigation property roleInfo in privilegedRoleAssignmentRequests .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRole .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. ASSIGNMENTS <IMicrosoftGraphPrivilegedRoleAssignment[]>: . [Id <String>]: Read-only. [ExpirationDateTime <DateTime?>]: [IsElevated <Boolean?>]: [ResultMessage <String>]: [RoleId <String>]: [RoleInfoAssignments <IMicrosoftGraphPrivilegedRoleAssignment[]>]: [RoleInfoId <String>]: Read-only. [RoleInfoName <String>]: [SettingApprovalOnElevation <Boolean?>]: [SettingApproverIds <String[]>]: [SettingElevationDuration <TimeSpan?>]: [SettingId <String>]: Read-only. [SettingIsMfaOnElevationConfigurable <Boolean?>]: [SettingLastGlobalAdmin <Boolean?>]: [SettingMaxElavationDuration <TimeSpan?>]: [SettingMfaOnElevation <Boolean?>]: [SettingMinElevationDuration <TimeSpan?>]: [SettingNotificationToUserOnElevation <Boolean?>]: [SettingTicketingInfoOnElevation <Boolean?>]: [SummaryElevatedCount <Int32?>]: [SummaryId <String>]: Read-only. [SummaryManagedCount <Int32?>]: [SummaryMfaEnabled <Boolean?>]: [SummaryStatus <String>]: roleSummaryStatus [SummaryUsersCount <Int32?>]: [UserId <String>]: BODYPARAMETER <IMicrosoftGraphPrivilegedRole>: privilegedRole [Id <String>]: Read-only. [Assignments <IMicrosoftGraphPrivilegedRoleAssignment[]>]: [Id <String>]: Read-only. [ExpirationDateTime <DateTime?>]: [IsElevated <Boolean?>]: [ResultMessage <String>]: [RoleId <String>]: [RoleInfoAssignments <IMicrosoftGraphPrivilegedRoleAssignment[]>]: [RoleInfoId <String>]: Read-only. [RoleInfoName <String>]: [SettingApprovalOnElevation <Boolean?>]: [SettingApproverIds <String[]>]: [SettingElevationDuration <TimeSpan?>]: [SettingId <String>]: Read-only. [SettingIsMfaOnElevationConfigurable <Boolean?>]: [SettingLastGlobalAdmin <Boolean?>]: [SettingMaxElavationDuration <TimeSpan?>]: [SettingMfaOnElevation <Boolean?>]: [SettingMinElevationDuration <TimeSpan?>]: [SettingNotificationToUserOnElevation <Boolean?>]: [SettingTicketingInfoOnElevation <Boolean?>]: [SummaryElevatedCount <Int32?>]: [SummaryId <String>]: Read-only. [SummaryManagedCount <Int32?>]: [SummaryMfaEnabled <Boolean?>]: [SummaryStatus <String>]: roleSummaryStatus [SummaryUsersCount <Int32?>]: [UserId <String>]: [Name <String>]: [SettingApprovalOnElevation <Boolean?>]: [SettingApproverIds <String[]>]: [SettingElevationDuration <TimeSpan?>]: [SettingId <String>]: Read-only. [SettingIsMfaOnElevationConfigurable <Boolean?>]: [SettingLastGlobalAdmin <Boolean?>]: [SettingMaxElavationDuration <TimeSpan?>]: [SettingMfaOnElevation <Boolean?>]: [SettingMinElevationDuration <TimeSpan?>]: [SettingNotificationToUserOnElevation <Boolean?>]: [SettingTicketingInfoOnElevation <Boolean?>]: [SummaryElevatedCount <Int32?>]: [SummaryId <String>]: Read-only. [SummaryManagedCount <Int32?>]: [SummaryMfaEnabled <Boolean?>]: [SummaryStatus <String>]: roleSummaryStatus [SummaryUsersCount <Int32?>]: INPUTOBJECT <IIdentityAzureAdpimIdentity>: Identity Parameter [PrivilegedApprovalId <String>]: key: privilegedApproval-id of privilegedApproval [PrivilegedOperationEventId <String>]: key: privilegedOperationEvent-id of privilegedOperationEvent [PrivilegedRoleAssignmentId <String>]: key: privilegedRoleAssignment-id of privilegedRoleAssignment [PrivilegedRoleAssignmentRequestId <String>]: key: privilegedRoleAssignmentRequest-id of privilegedRoleAssignmentRequest [PrivilegedRoleId <String>]: key: privilegedRole-id of privilegedRole .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.azureadpim/update-mgprivilegedroleassignmentrequestroleinfo #> function Update-MgPrivilegedRoleAssignmentRequestRoleInfo { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: privilegedRoleAssignmentRequest-id of privilegedRoleAssignmentRequest ${PrivilegedRoleAssignmentRequestId}, [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRole] # privilegedRole # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleAssignment[]] # . # To construct, see NOTES section for ASSIGNMENTS properties and create a hash table. ${Assignments}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Name}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingApprovalOnElevation}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String[]] # . ${SettingApproverIds}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.TimeSpan] # . ${SettingElevationDuration}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${SettingId}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingIsMfaOnElevationConfigurable}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingLastGlobalAdmin}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.TimeSpan] # . ${SettingMaxElavationDuration}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingMfaOnElevation}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.TimeSpan] # . ${SettingMinElevationDuration}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingNotificationToUserOnElevation}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingTicketingInfoOnElevation}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Int32] # . ${SummaryElevatedCount}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${SummaryId}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Int32] # . ${SummaryManagedCount}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SummaryMfaEnabled}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # roleSummaryStatus ${SummaryStatus}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Int32] # . ${SummaryUsersCount}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Update = 'Microsoft.Graph.Identity.AzureADPIM.private\Update-MgPrivilegedRoleAssignmentRequestRoleInfo_Update'; UpdateExpanded = 'Microsoft.Graph.Identity.AzureADPIM.private\Update-MgPrivilegedRoleAssignmentRequestRoleInfo_UpdateExpanded'; UpdateViaIdentity = 'Microsoft.Graph.Identity.AzureADPIM.private\Update-MgPrivilegedRoleAssignmentRequestRoleInfo_UpdateViaIdentity'; UpdateViaIdentityExpanded = 'Microsoft.Graph.Identity.AzureADPIM.private\Update-MgPrivilegedRoleAssignmentRequestRoleInfo_UpdateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Update the navigation property roleInfo in privilegedRoleAssignments .Description Update the navigation property roleInfo in privilegedRoleAssignments .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRole .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. ASSIGNMENTS <IMicrosoftGraphPrivilegedRoleAssignment[]>: . [Id <String>]: Read-only. [ExpirationDateTime <DateTime?>]: [IsElevated <Boolean?>]: [ResultMessage <String>]: [RoleId <String>]: [RoleInfoAssignments <IMicrosoftGraphPrivilegedRoleAssignment[]>]: [RoleInfoId <String>]: Read-only. [RoleInfoName <String>]: [SettingApprovalOnElevation <Boolean?>]: [SettingApproverIds <String[]>]: [SettingElevationDuration <TimeSpan?>]: [SettingId <String>]: Read-only. [SettingIsMfaOnElevationConfigurable <Boolean?>]: [SettingLastGlobalAdmin <Boolean?>]: [SettingMaxElavationDuration <TimeSpan?>]: [SettingMfaOnElevation <Boolean?>]: [SettingMinElevationDuration <TimeSpan?>]: [SettingNotificationToUserOnElevation <Boolean?>]: [SettingTicketingInfoOnElevation <Boolean?>]: [SummaryElevatedCount <Int32?>]: [SummaryId <String>]: Read-only. [SummaryManagedCount <Int32?>]: [SummaryMfaEnabled <Boolean?>]: [SummaryStatus <String>]: roleSummaryStatus [SummaryUsersCount <Int32?>]: [UserId <String>]: BODYPARAMETER <IMicrosoftGraphPrivilegedRole>: privilegedRole [Id <String>]: Read-only. [Assignments <IMicrosoftGraphPrivilegedRoleAssignment[]>]: [Id <String>]: Read-only. [ExpirationDateTime <DateTime?>]: [IsElevated <Boolean?>]: [ResultMessage <String>]: [RoleId <String>]: [RoleInfoAssignments <IMicrosoftGraphPrivilegedRoleAssignment[]>]: [RoleInfoId <String>]: Read-only. [RoleInfoName <String>]: [SettingApprovalOnElevation <Boolean?>]: [SettingApproverIds <String[]>]: [SettingElevationDuration <TimeSpan?>]: [SettingId <String>]: Read-only. [SettingIsMfaOnElevationConfigurable <Boolean?>]: [SettingLastGlobalAdmin <Boolean?>]: [SettingMaxElavationDuration <TimeSpan?>]: [SettingMfaOnElevation <Boolean?>]: [SettingMinElevationDuration <TimeSpan?>]: [SettingNotificationToUserOnElevation <Boolean?>]: [SettingTicketingInfoOnElevation <Boolean?>]: [SummaryElevatedCount <Int32?>]: [SummaryId <String>]: Read-only. [SummaryManagedCount <Int32?>]: [SummaryMfaEnabled <Boolean?>]: [SummaryStatus <String>]: roleSummaryStatus [SummaryUsersCount <Int32?>]: [UserId <String>]: [Name <String>]: [SettingApprovalOnElevation <Boolean?>]: [SettingApproverIds <String[]>]: [SettingElevationDuration <TimeSpan?>]: [SettingId <String>]: Read-only. [SettingIsMfaOnElevationConfigurable <Boolean?>]: [SettingLastGlobalAdmin <Boolean?>]: [SettingMaxElavationDuration <TimeSpan?>]: [SettingMfaOnElevation <Boolean?>]: [SettingMinElevationDuration <TimeSpan?>]: [SettingNotificationToUserOnElevation <Boolean?>]: [SettingTicketingInfoOnElevation <Boolean?>]: [SummaryElevatedCount <Int32?>]: [SummaryId <String>]: Read-only. [SummaryManagedCount <Int32?>]: [SummaryMfaEnabled <Boolean?>]: [SummaryStatus <String>]: roleSummaryStatus [SummaryUsersCount <Int32?>]: INPUTOBJECT <IIdentityAzureAdpimIdentity>: Identity Parameter [PrivilegedApprovalId <String>]: key: privilegedApproval-id of privilegedApproval [PrivilegedOperationEventId <String>]: key: privilegedOperationEvent-id of privilegedOperationEvent [PrivilegedRoleAssignmentId <String>]: key: privilegedRoleAssignment-id of privilegedRoleAssignment [PrivilegedRoleAssignmentRequestId <String>]: key: privilegedRoleAssignmentRequest-id of privilegedRoleAssignmentRequest [PrivilegedRoleId <String>]: key: privilegedRole-id of privilegedRole .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.azureadpim/update-mgprivilegedroleassignmentroleinfo #> function Update-MgPrivilegedRoleAssignmentRoleInfo { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: privilegedRoleAssignment-id of privilegedRoleAssignment ${PrivilegedRoleAssignmentId}, [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRole] # privilegedRole # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleAssignment[]] # . # To construct, see NOTES section for ASSIGNMENTS properties and create a hash table. ${Assignments}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Name}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingApprovalOnElevation}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String[]] # . ${SettingApproverIds}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.TimeSpan] # . ${SettingElevationDuration}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${SettingId}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingIsMfaOnElevationConfigurable}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingLastGlobalAdmin}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.TimeSpan] # . ${SettingMaxElavationDuration}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingMfaOnElevation}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.TimeSpan] # . ${SettingMinElevationDuration}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingNotificationToUserOnElevation}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingTicketingInfoOnElevation}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Int32] # . ${SummaryElevatedCount}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${SummaryId}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Int32] # . ${SummaryManagedCount}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SummaryMfaEnabled}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # roleSummaryStatus ${SummaryStatus}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Int32] # . ${SummaryUsersCount}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Update = 'Microsoft.Graph.Identity.AzureADPIM.private\Update-MgPrivilegedRoleAssignmentRoleInfo_Update'; UpdateExpanded = 'Microsoft.Graph.Identity.AzureADPIM.private\Update-MgPrivilegedRoleAssignmentRoleInfo_UpdateExpanded'; UpdateViaIdentity = 'Microsoft.Graph.Identity.AzureADPIM.private\Update-MgPrivilegedRoleAssignmentRoleInfo_UpdateViaIdentity'; UpdateViaIdentityExpanded = 'Microsoft.Graph.Identity.AzureADPIM.private\Update-MgPrivilegedRoleAssignmentRoleInfo_UpdateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Update the navigation property settings in privilegedRoles .Description Update the navigation property settings in privilegedRoles .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleSettings .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IMicrosoftGraphPrivilegedRoleSettings>: privilegedRoleSettings [Id <String>]: Read-only. [ApprovalOnElevation <Boolean?>]: [ApproverIds <String[]>]: [ElevationDuration <TimeSpan?>]: [IsMfaOnElevationConfigurable <Boolean?>]: [LastGlobalAdmin <Boolean?>]: [MaxElavationDuration <TimeSpan?>]: [MfaOnElevation <Boolean?>]: [MinElevationDuration <TimeSpan?>]: [NotificationToUserOnElevation <Boolean?>]: [TicketingInfoOnElevation <Boolean?>]: INPUTOBJECT <IIdentityAzureAdpimIdentity>: Identity Parameter [PrivilegedApprovalId <String>]: key: privilegedApproval-id of privilegedApproval [PrivilegedOperationEventId <String>]: key: privilegedOperationEvent-id of privilegedOperationEvent [PrivilegedRoleAssignmentId <String>]: key: privilegedRoleAssignment-id of privilegedRoleAssignment [PrivilegedRoleAssignmentRequestId <String>]: key: privilegedRoleAssignmentRequest-id of privilegedRoleAssignmentRequest [PrivilegedRoleId <String>]: key: privilegedRole-id of privilegedRole .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.azureadpim/update-mgprivilegedrolesetting #> function Update-MgPrivilegedRoleSetting { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: privilegedRole-id of privilegedRole ${PrivilegedRoleId}, [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleSettings] # privilegedRoleSettings # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${ApprovalOnElevation}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String[]] # . ${ApproverIds}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.TimeSpan] # . ${ElevationDuration}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${IsMfaOnElevationConfigurable}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${LastGlobalAdmin}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.TimeSpan] # . ${MaxElavationDuration}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${MfaOnElevation}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.TimeSpan] # . ${MinElevationDuration}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${NotificationToUserOnElevation}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${TicketingInfoOnElevation}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Update = 'Microsoft.Graph.Identity.AzureADPIM.private\Update-MgPrivilegedRoleSetting_Update'; UpdateExpanded = 'Microsoft.Graph.Identity.AzureADPIM.private\Update-MgPrivilegedRoleSetting_UpdateExpanded'; UpdateViaIdentity = 'Microsoft.Graph.Identity.AzureADPIM.private\Update-MgPrivilegedRoleSetting_UpdateViaIdentity'; UpdateViaIdentityExpanded = 'Microsoft.Graph.Identity.AzureADPIM.private\Update-MgPrivilegedRoleSetting_UpdateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Update the navigation property summary in privilegedRoles .Description Update the navigation property summary in privilegedRoles .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleSummary .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IMicrosoftGraphPrivilegedRoleSummary>: privilegedRoleSummary [Id <String>]: Read-only. [ElevatedCount <Int32?>]: [ManagedCount <Int32?>]: [MfaEnabled <Boolean?>]: [Status <String>]: roleSummaryStatus [UsersCount <Int32?>]: INPUTOBJECT <IIdentityAzureAdpimIdentity>: Identity Parameter [PrivilegedApprovalId <String>]: key: privilegedApproval-id of privilegedApproval [PrivilegedOperationEventId <String>]: key: privilegedOperationEvent-id of privilegedOperationEvent [PrivilegedRoleAssignmentId <String>]: key: privilegedRoleAssignment-id of privilegedRoleAssignment [PrivilegedRoleAssignmentRequestId <String>]: key: privilegedRoleAssignmentRequest-id of privilegedRoleAssignmentRequest [PrivilegedRoleId <String>]: key: privilegedRole-id of privilegedRole .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.azureadpim/update-mgprivilegedrolesummary #> function Update-MgPrivilegedRoleSummary { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: privilegedRole-id of privilegedRole ${PrivilegedRoleId}, [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleSummary] # privilegedRoleSummary # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Int32] # . ${ElevatedCount}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Int32] # . ${ManagedCount}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${MfaEnabled}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # roleSummaryStatus ${Status}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Int32] # . ${UsersCount}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Update = 'Microsoft.Graph.Identity.AzureADPIM.private\Update-MgPrivilegedRoleSummary_Update'; UpdateExpanded = 'Microsoft.Graph.Identity.AzureADPIM.private\Update-MgPrivilegedRoleSummary_UpdateExpanded'; UpdateViaIdentity = 'Microsoft.Graph.Identity.AzureADPIM.private\Update-MgPrivilegedRoleSummary_UpdateViaIdentity'; UpdateViaIdentityExpanded = 'Microsoft.Graph.Identity.AzureADPIM.private\Update-MgPrivilegedRoleSummary_UpdateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Update entity in privilegedRoles .Description Update entity in privilegedRoles .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRole .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. ASSIGNMENTS <IMicrosoftGraphPrivilegedRoleAssignment[]>: . [Id <String>]: Read-only. [ExpirationDateTime <DateTime?>]: [IsElevated <Boolean?>]: [ResultMessage <String>]: [RoleId <String>]: [RoleInfoAssignments <IMicrosoftGraphPrivilegedRoleAssignment[]>]: [RoleInfoId <String>]: Read-only. [RoleInfoName <String>]: [SettingApprovalOnElevation <Boolean?>]: [SettingApproverIds <String[]>]: [SettingElevationDuration <TimeSpan?>]: [SettingId <String>]: Read-only. [SettingIsMfaOnElevationConfigurable <Boolean?>]: [SettingLastGlobalAdmin <Boolean?>]: [SettingMaxElavationDuration <TimeSpan?>]: [SettingMfaOnElevation <Boolean?>]: [SettingMinElevationDuration <TimeSpan?>]: [SettingNotificationToUserOnElevation <Boolean?>]: [SettingTicketingInfoOnElevation <Boolean?>]: [SummaryElevatedCount <Int32?>]: [SummaryId <String>]: Read-only. [SummaryManagedCount <Int32?>]: [SummaryMfaEnabled <Boolean?>]: [SummaryStatus <String>]: roleSummaryStatus [SummaryUsersCount <Int32?>]: [UserId <String>]: BODYPARAMETER <IMicrosoftGraphPrivilegedRole>: privilegedRole [Id <String>]: Read-only. [Assignments <IMicrosoftGraphPrivilegedRoleAssignment[]>]: [Id <String>]: Read-only. [ExpirationDateTime <DateTime?>]: [IsElevated <Boolean?>]: [ResultMessage <String>]: [RoleId <String>]: [RoleInfoAssignments <IMicrosoftGraphPrivilegedRoleAssignment[]>]: [RoleInfoId <String>]: Read-only. [RoleInfoName <String>]: [SettingApprovalOnElevation <Boolean?>]: [SettingApproverIds <String[]>]: [SettingElevationDuration <TimeSpan?>]: [SettingId <String>]: Read-only. [SettingIsMfaOnElevationConfigurable <Boolean?>]: [SettingLastGlobalAdmin <Boolean?>]: [SettingMaxElavationDuration <TimeSpan?>]: [SettingMfaOnElevation <Boolean?>]: [SettingMinElevationDuration <TimeSpan?>]: [SettingNotificationToUserOnElevation <Boolean?>]: [SettingTicketingInfoOnElevation <Boolean?>]: [SummaryElevatedCount <Int32?>]: [SummaryId <String>]: Read-only. [SummaryManagedCount <Int32?>]: [SummaryMfaEnabled <Boolean?>]: [SummaryStatus <String>]: roleSummaryStatus [SummaryUsersCount <Int32?>]: [UserId <String>]: [Name <String>]: [SettingApprovalOnElevation <Boolean?>]: [SettingApproverIds <String[]>]: [SettingElevationDuration <TimeSpan?>]: [SettingId <String>]: Read-only. [SettingIsMfaOnElevationConfigurable <Boolean?>]: [SettingLastGlobalAdmin <Boolean?>]: [SettingMaxElavationDuration <TimeSpan?>]: [SettingMfaOnElevation <Boolean?>]: [SettingMinElevationDuration <TimeSpan?>]: [SettingNotificationToUserOnElevation <Boolean?>]: [SettingTicketingInfoOnElevation <Boolean?>]: [SummaryElevatedCount <Int32?>]: [SummaryId <String>]: Read-only. [SummaryManagedCount <Int32?>]: [SummaryMfaEnabled <Boolean?>]: [SummaryStatus <String>]: roleSummaryStatus [SummaryUsersCount <Int32?>]: INPUTOBJECT <IIdentityAzureAdpimIdentity>: Identity Parameter [PrivilegedApprovalId <String>]: key: privilegedApproval-id of privilegedApproval [PrivilegedOperationEventId <String>]: key: privilegedOperationEvent-id of privilegedOperationEvent [PrivilegedRoleAssignmentId <String>]: key: privilegedRoleAssignment-id of privilegedRoleAssignment [PrivilegedRoleAssignmentRequestId <String>]: key: privilegedRoleAssignmentRequest-id of privilegedRoleAssignmentRequest [PrivilegedRoleId <String>]: key: privilegedRole-id of privilegedRole .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.azureadpim/update-mgprivilegedrole #> function Update-MgPrivilegedRole { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: privilegedRole-id of privilegedRole ${PrivilegedRoleId}, [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IIdentityAzureAdpimIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRole] # privilegedRole # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPrivilegedRoleAssignment[]] # . # To construct, see NOTES section for ASSIGNMENTS properties and create a hash table. ${Assignments}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Name}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingApprovalOnElevation}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String[]] # . ${SettingApproverIds}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.TimeSpan] # . ${SettingElevationDuration}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${SettingId}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingIsMfaOnElevationConfigurable}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingLastGlobalAdmin}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.TimeSpan] # . ${SettingMaxElavationDuration}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingMfaOnElevation}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.TimeSpan] # . ${SettingMinElevationDuration}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingNotificationToUserOnElevation}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SettingTicketingInfoOnElevation}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Int32] # . ${SummaryElevatedCount}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${SummaryId}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Int32] # . ${SummaryManagedCount}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SummaryMfaEnabled}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # roleSummaryStatus ${SummaryStatus}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Int32] # . ${SummaryUsersCount}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Update = 'Microsoft.Graph.Identity.AzureADPIM.private\Update-MgPrivilegedRole_Update'; UpdateExpanded = 'Microsoft.Graph.Identity.AzureADPIM.private\Update-MgPrivilegedRole_UpdateExpanded'; UpdateViaIdentity = 'Microsoft.Graph.Identity.AzureADPIM.private\Update-MgPrivilegedRole_UpdateViaIdentity'; UpdateViaIdentityExpanded = 'Microsoft.Graph.Identity.AzureADPIM.private\Update-MgPrivilegedRole_UpdateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # SIG # Begin signature block # MIIjhgYJKoZIhvcNAQcCoIIjdzCCI3MCAQExDzANBglghkgBZQMEAgEFADB5Bgor # BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG # KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCDza9ExqyJDcBlM # +nUIwUqu5IzXL5nwiqhu02cfiFTYQqCCDYEwggX/MIID56ADAgECAhMzAAABh3IX # chVZQMcJAAAAAAGHMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD # VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy # b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p # bmcgUENBIDIwMTEwHhcNMjAwMzA0MTgzOTQ3WhcNMjEwMzAzMTgzOTQ3WjB0MQsw # CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9u # ZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMR4wHAYDVQQDExVNaWNy # b3NvZnQgQ29ycG9yYXRpb24wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB # AQDOt8kLc7P3T7MKIhouYHewMFmnq8Ayu7FOhZCQabVwBp2VS4WyB2Qe4TQBT8aB # znANDEPjHKNdPT8Xz5cNali6XHefS8i/WXtF0vSsP8NEv6mBHuA2p1fw2wB/F0dH # sJ3GfZ5c0sPJjklsiYqPw59xJ54kM91IOgiO2OUzjNAljPibjCWfH7UzQ1TPHc4d # weils8GEIrbBRb7IWwiObL12jWT4Yh71NQgvJ9Fn6+UhD9x2uk3dLj84vwt1NuFQ # itKJxIV0fVsRNR3abQVOLqpDugbr0SzNL6o8xzOHL5OXiGGwg6ekiXA1/2XXY7yV # Fc39tledDtZjSjNbex1zzwSXAgMBAAGjggF+MIIBejAfBgNVHSUEGDAWBgorBgEE # AYI3TAgBBggrBgEFBQcDAzAdBgNVHQ4EFgQUhov4ZyO96axkJdMjpzu2zVXOJcsw # UAYDVR0RBEkwR6RFMEMxKTAnBgNVBAsTIE1pY3Jvc29mdCBPcGVyYXRpb25zIFB1 # ZXJ0byBSaWNvMRYwFAYDVQQFEw0yMzAwMTIrNDU4Mzg1MB8GA1UdIwQYMBaAFEhu # ZOVQBdOCqhc3NyK1bajKdQKVMFQGA1UdHwRNMEswSaBHoEWGQ2h0dHA6Ly93d3cu # bWljcm9zb2Z0LmNvbS9wa2lvcHMvY3JsL01pY0NvZFNpZ1BDQTIwMTFfMjAxMS0w # Ny0wOC5jcmwwYQYIKwYBBQUHAQEEVTBTMFEGCCsGAQUFBzAChkVodHRwOi8vd3d3 # Lm1pY3Jvc29mdC5jb20vcGtpb3BzL2NlcnRzL01pY0NvZFNpZ1BDQTIwMTFfMjAx # MS0wNy0wOC5jcnQwDAYDVR0TAQH/BAIwADANBgkqhkiG9w0BAQsFAAOCAgEAixmy # S6E6vprWD9KFNIB9G5zyMuIjZAOuUJ1EK/Vlg6Fb3ZHXjjUwATKIcXbFuFC6Wr4K # NrU4DY/sBVqmab5AC/je3bpUpjtxpEyqUqtPc30wEg/rO9vmKmqKoLPT37svc2NV # BmGNl+85qO4fV/w7Cx7J0Bbqk19KcRNdjt6eKoTnTPHBHlVHQIHZpMxacbFOAkJr # qAVkYZdz7ikNXTxV+GRb36tC4ByMNxE2DF7vFdvaiZP0CVZ5ByJ2gAhXMdK9+usx # zVk913qKde1OAuWdv+rndqkAIm8fUlRnr4saSCg7cIbUwCCf116wUJ7EuJDg0vHe # yhnCeHnBbyH3RZkHEi2ofmfgnFISJZDdMAeVZGVOh20Jp50XBzqokpPzeZ6zc1/g # yILNyiVgE+RPkjnUQshd1f1PMgn3tns2Cz7bJiVUaqEO3n9qRFgy5JuLae6UweGf # AeOo3dgLZxikKzYs3hDMaEtJq8IP71cX7QXe6lnMmXU/Hdfz2p897Zd+kU+vZvKI # 3cwLfuVQgK2RZ2z+Kc3K3dRPz2rXycK5XCuRZmvGab/WbrZiC7wJQapgBodltMI5 # GMdFrBg9IeF7/rP4EqVQXeKtevTlZXjpuNhhjuR+2DMt/dWufjXpiW91bo3aH6Ea # jOALXmoxgltCp1K7hrS6gmsvj94cLRf50QQ4U8Qwggd6MIIFYqADAgECAgphDpDS # AAAAAAADMA0GCSqGSIb3DQEBCwUAMIGIMQswCQYDVQQGEwJVUzETMBEGA1UECBMK # V2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9uZDEeMBwGA1UEChMVTWljcm9zb2Z0 # IENvcnBvcmF0aW9uMTIwMAYDVQQDEylNaWNyb3NvZnQgUm9vdCBDZXJ0aWZpY2F0 # ZSBBdXRob3JpdHkgMjAxMTAeFw0xMTA3MDgyMDU5MDlaFw0yNjA3MDgyMTA5MDla # MH4xCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdS # ZWRtb25kMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMT # H01pY3Jvc29mdCBDb2RlIFNpZ25pbmcgUENBIDIwMTEwggIiMA0GCSqGSIb3DQEB # AQUAA4ICDwAwggIKAoICAQCr8PpyEBwurdhuqoIQTTS68rZYIZ9CGypr6VpQqrgG # OBoESbp/wwwe3TdrxhLYC/A4wpkGsMg51QEUMULTiQ15ZId+lGAkbK+eSZzpaF7S # 35tTsgosw6/ZqSuuegmv15ZZymAaBelmdugyUiYSL+erCFDPs0S3XdjELgN1q2jz # y23zOlyhFvRGuuA4ZKxuZDV4pqBjDy3TQJP4494HDdVceaVJKecNvqATd76UPe/7 # 4ytaEB9NViiienLgEjq3SV7Y7e1DkYPZe7J7hhvZPrGMXeiJT4Qa8qEvWeSQOy2u # M1jFtz7+MtOzAz2xsq+SOH7SnYAs9U5WkSE1JcM5bmR/U7qcD60ZI4TL9LoDho33 # X/DQUr+MlIe8wCF0JV8YKLbMJyg4JZg5SjbPfLGSrhwjp6lm7GEfauEoSZ1fiOIl # XdMhSz5SxLVXPyQD8NF6Wy/VI+NwXQ9RRnez+ADhvKwCgl/bwBWzvRvUVUvnOaEP # 6SNJvBi4RHxF5MHDcnrgcuck379GmcXvwhxX24ON7E1JMKerjt/sW5+v/N2wZuLB # l4F77dbtS+dJKacTKKanfWeA5opieF+yL4TXV5xcv3coKPHtbcMojyyPQDdPweGF # RInECUzF1KVDL3SV9274eCBYLBNdYJWaPk8zhNqwiBfenk70lrC8RqBsmNLg1oiM # CwIDAQABo4IB7TCCAekwEAYJKwYBBAGCNxUBBAMCAQAwHQYDVR0OBBYEFEhuZOVQ # BdOCqhc3NyK1bajKdQKVMBkGCSsGAQQBgjcUAgQMHgoAUwB1AGIAQwBBMAsGA1Ud # DwQEAwIBhjAPBgNVHRMBAf8EBTADAQH/MB8GA1UdIwQYMBaAFHItOgIxkEO5FAVO # 4eqnxzHRI4k0MFoGA1UdHwRTMFEwT6BNoEuGSWh0dHA6Ly9jcmwubWljcm9zb2Z0 # LmNvbS9wa2kvY3JsL3Byb2R1Y3RzL01pY1Jvb0NlckF1dDIwMTFfMjAxMV8wM18y # Mi5jcmwwXgYIKwYBBQUHAQEEUjBQME4GCCsGAQUFBzAChkJodHRwOi8vd3d3Lm1p # Y3Jvc29mdC5jb20vcGtpL2NlcnRzL01pY1Jvb0NlckF1dDIwMTFfMjAxMV8wM18y # Mi5jcnQwgZ8GA1UdIASBlzCBlDCBkQYJKwYBBAGCNy4DMIGDMD8GCCsGAQUFBwIB # FjNodHRwOi8vd3d3Lm1pY3Jvc29mdC5jb20vcGtpb3BzL2RvY3MvcHJpbWFyeWNw # cy5odG0wQAYIKwYBBQUHAgIwNB4yIB0ATABlAGcAYQBsAF8AcABvAGwAaQBjAHkA # XwBzAHQAYQB0AGUAbQBlAG4AdAAuIB0wDQYJKoZIhvcNAQELBQADggIBAGfyhqWY # 4FR5Gi7T2HRnIpsLlhHhY5KZQpZ90nkMkMFlXy4sPvjDctFtg/6+P+gKyju/R6mj # 82nbY78iNaWXXWWEkH2LRlBV2AySfNIaSxzzPEKLUtCw/WvjPgcuKZvmPRul1LUd # d5Q54ulkyUQ9eHoj8xN9ppB0g430yyYCRirCihC7pKkFDJvtaPpoLpWgKj8qa1hJ # Yx8JaW5amJbkg/TAj/NGK978O9C9Ne9uJa7lryft0N3zDq+ZKJeYTQ49C/IIidYf # wzIY4vDFLc5bnrRJOQrGCsLGra7lstnbFYhRRVg4MnEnGn+x9Cf43iw6IGmYslmJ # aG5vp7d0w0AFBqYBKig+gj8TTWYLwLNN9eGPfxxvFX1Fp3blQCplo8NdUmKGwx1j # NpeG39rz+PIWoZon4c2ll9DuXWNB41sHnIc+BncG0QaxdR8UvmFhtfDcxhsEvt9B # xw4o7t5lL+yX9qFcltgA1qFGvVnzl6UJS0gQmYAf0AApxbGbpT9Fdx41xtKiop96 # eiL6SJUfq/tHI4D1nvi/a7dLl+LrdXga7Oo3mXkYS//WsyNodeav+vyL6wuA6mk7 # r/ww7QRMjt/fdW1jkT3RnVZOT7+AVyKheBEyIXrvQQqxP/uozKRdwaGIm1dxVk5I # RcBCyZt2WwqASGv9eZ/BvW1taslScxMNelDNMYIVWzCCFVcCAQEwgZUwfjELMAkG # A1UEBhMCVVMxEzARBgNVBAgTCldhc2hpbmd0b24xEDAOBgNVBAcTB1JlZG1vbmQx # HjAcBgNVBAoTFU1pY3Jvc29mdCBDb3Jwb3JhdGlvbjEoMCYGA1UEAxMfTWljcm9z # b2Z0IENvZGUgU2lnbmluZyBQQ0EgMjAxMQITMwAAAYdyF3IVWUDHCQAAAAABhzAN # BglghkgBZQMEAgEFAKCBrjAZBgkqhkiG9w0BCQMxDAYKKwYBBAGCNwIBBDAcBgor # BgEEAYI3AgELMQ4wDAYKKwYBBAGCNwIBFTAvBgkqhkiG9w0BCQQxIgQgpmeUPE1G # 8PBBTbE5g2D5u/l1I6G/mVIs+AWeHpvOpfUwQgYKKwYBBAGCNwIBDDE0MDKgFIAS # AE0AaQBjAHIAbwBzAG8AZgB0oRqAGGh0dHA6Ly93d3cubWljcm9zb2Z0LmNvbTAN # BgkqhkiG9w0BAQEFAASCAQC3HMID5BsuZ6qBoGtLTXydPTDAzkFStY95o06yCTku # KjxmHEkqrOYy+4dFN6tzmVRtwh4wpLbTtqSnb6lH221KgJElw2naFv2ZJbloUR+O # 7CPHzrTsRK8o4lGoNNImySUx8I08wmk0EEPfiLMTOf2Doy00Wep4gy/xNBIiHPi4 # t5+19zFeMuVOs9s3aMhec04+GIS+c4MdCR1SX3gxsI96861yCxeNbehCPr0DO8Mo # iVVjEYIsfhBdTvcJT6ZuGTtlbEAfMOD8KSpLFMvqiSsE4+fUI6wFSbulhWHs/76e # 1MNIBnDW/AZc1oogOG6zguXilNN3dFilnWOO8J0+xCFooYIS5TCCEuEGCisGAQQB # gjcDAwExghLRMIISzQYJKoZIhvcNAQcCoIISvjCCEroCAQMxDzANBglghkgBZQME # AgEFADCCAVEGCyqGSIb3DQEJEAEEoIIBQASCATwwggE4AgEBBgorBgEEAYRZCgMB # MDEwDQYJYIZIAWUDBAIBBQAEIHv/Ue1ylf5ORtIQfJmsb6BD5Kpfkme7hbjgIpOa # qpv8AgZe9Qmz4+oYEzIwMjAwNzIyMDE0ODAxLjkwMVowBIACAfSggdCkgc0wgcox # CzAJBgNVBAYTAlVTMQswCQYDVQQIEwJXQTEQMA4GA1UEBxMHUmVkbW9uZDEeMBwG # A1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMS0wKwYDVQQLEyRNaWNyb3NvZnQg # SXJlbGFuZCBPcGVyYXRpb25zIExpbWl0ZWQxJjAkBgNVBAsTHVRoYWxlcyBUU1Mg # RVNOOkEyNDAtNEI4Mi0xMzBFMSUwIwYDVQQDExxNaWNyb3NvZnQgVGltZS1TdGFt # cCBTZXJ2aWNloIIOPDCCBPEwggPZoAMCAQICEzMAAAERDQKe7tTtBdQAAAAAAREw # DQYJKoZIhvcNAQELBQAwfDELMAkGA1UEBhMCVVMxEzARBgNVBAgTCldhc2hpbmd0 # b24xEDAOBgNVBAcTB1JlZG1vbmQxHjAcBgNVBAoTFU1pY3Jvc29mdCBDb3Jwb3Jh # dGlvbjEmMCQGA1UEAxMdTWljcm9zb2Z0IFRpbWUtU3RhbXAgUENBIDIwMTAwHhcN # MTkxMDIzMjMxOTIwWhcNMjEwMTIxMjMxOTIwWjCByjELMAkGA1UEBhMCVVMxCzAJ # BgNVBAgTAldBMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNyb3NvZnQg # Q29ycG9yYXRpb24xLTArBgNVBAsTJE1pY3Jvc29mdCBJcmVsYW5kIE9wZXJhdGlv # bnMgTGltaXRlZDEmMCQGA1UECxMdVGhhbGVzIFRTUyBFU046QTI0MC00QjgyLTEz # MEUxJTAjBgNVBAMTHE1pY3Jvc29mdCBUaW1lLVN0YW1wIFNlcnZpY2UwggEiMA0G # CSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCjEtKCE8EbaYuB7gyW5dmUN5sBoMWF # WaUb+eRP33MMG53vqHkVD+fPBdebUrhTW7FXcA5HnJez5c3OdZ256C9gwxwO0Xsl # lZBWTMVoRTDdsMVV6iqNiZ2Pc7oISOl3jdDoUSDOazoJ14vQE3YK71zMR4/18V8Z # 9OcMSP8aoGl7aXtnkc/ujrAkNj6HTanHbG/rqvKnT0VFFZAwPPKiKeIJlZgf11oa # nY7WdYyGMh9LxFOWNnxzaXB5WkcVo/AefxysqDyTI/g6bFnax1bXVdZX/w+tpepD # T/FQRibhZU79hibQmeUge/YB8G4XAxwjfdZMmdMfb44LjLRx1RI2dtMvAgMBAAGj # ggEbMIIBFzAdBgNVHQ4EFgQU+nDeQQuodljDEMPQDFdQ37b5AfIwHwYDVR0jBBgw # FoAU1WM6XIoxkPNDe3xGG8UzaFqFbVUwVgYDVR0fBE8wTTBLoEmgR4ZFaHR0cDov # L2NybC5taWNyb3NvZnQuY29tL3BraS9jcmwvcHJvZHVjdHMvTWljVGltU3RhUENB # XzIwMTAtMDctMDEuY3JsMFoGCCsGAQUFBwEBBE4wTDBKBggrBgEFBQcwAoY+aHR0 # cDovL3d3dy5taWNyb3NvZnQuY29tL3BraS9jZXJ0cy9NaWNUaW1TdGFQQ0FfMjAx # MC0wNy0wMS5jcnQwDAYDVR0TAQH/BAIwADATBgNVHSUEDDAKBggrBgEFBQcDCDAN # BgkqhkiG9w0BAQsFAAOCAQEAj4ZrXUSYruIGFpReV4bBkcMHY7Z+cRo0pz55uONZ # PfVtGy5CjwwDNRLUVe7e4LjcNoxMP2zPRCXr1E03JPc4lQPs11bhFjslWA3fzPUW # r7yBMvZXxZdMrGnXaA42tMG0KLh6szITM4BcC4Q9miHgHSC9LhHNPs/gAn3CZGRN # YwlxsXsYJB60nqvjeH086+KJNN1G1nPCFR2IYrLg4uZdwJYTOHu2WUwyZlh1yCKR # OK2Fkde0lBQK8RPeU7qwqmTCc1YSvLNN8iODJXV9UXo4rBZR5ruJTblDZazbkYQT # YxDrwsIhe+pdes6kbvJXly6YY4hUwROOI0Hg4HQU5PFGgzCCBnEwggRZoAMCAQIC # CmEJgSoAAAAAAAIwDQYJKoZIhvcNAQELBQAwgYgxCzAJBgNVBAYTAlVTMRMwEQYD # VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy # b3NvZnQgQ29ycG9yYXRpb24xMjAwBgNVBAMTKU1pY3Jvc29mdCBSb290IENlcnRp # ZmljYXRlIEF1dGhvcml0eSAyMDEwMB4XDTEwMDcwMTIxMzY1NVoXDTI1MDcwMTIx # NDY1NVowfDELMAkGA1UEBhMCVVMxEzARBgNVBAgTCldhc2hpbmd0b24xEDAOBgNV # BAcTB1JlZG1vbmQxHjAcBgNVBAoTFU1pY3Jvc29mdCBDb3Jwb3JhdGlvbjEmMCQG # A1UEAxMdTWljcm9zb2Z0IFRpbWUtU3RhbXAgUENBIDIwMTAwggEiMA0GCSqGSIb3 # DQEBAQUAA4IBDwAwggEKAoIBAQCpHQ28dxGKOiDs/BOX9fp/aZRrdFQQ1aUKAIKF # ++18aEssX8XD5WHCdrc+Zitb8BVTJwQxH0EbGpUdzgkTjnxhMFmxMEQP8WCIhFRD # DNdNuDgIs0Ldk6zWczBXJoKjRQ3Q6vVHgc2/JGAyWGBG8lhHhjKEHnRhZ5FfgVSx # z5NMksHEpl3RYRNuKMYa+YaAu99h/EbBJx0kZxJyGiGKr0tkiVBisV39dx898Fd1 # rL2KQk1AUdEPnAY+Z3/1ZsADlkR+79BL/W7lmsqxqPJ6Kgox8NpOBpG2iAg16Hgc # sOmZzTznL0S6p/TcZL2kAcEgCZN4zfy8wMlEXV4WnAEFTyJNAgMBAAGjggHmMIIB # 4jAQBgkrBgEEAYI3FQEEAwIBADAdBgNVHQ4EFgQU1WM6XIoxkPNDe3xGG8UzaFqF # bVUwGQYJKwYBBAGCNxQCBAweCgBTAHUAYgBDAEEwCwYDVR0PBAQDAgGGMA8GA1Ud # EwEB/wQFMAMBAf8wHwYDVR0jBBgwFoAU1fZWy4/oolxiaNE9lJBb186aGMQwVgYD # VR0fBE8wTTBLoEmgR4ZFaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraS9jcmwv # cHJvZHVjdHMvTWljUm9vQ2VyQXV0XzIwMTAtMDYtMjMuY3JsMFoGCCsGAQUFBwEB # BE4wTDBKBggrBgEFBQcwAoY+aHR0cDovL3d3dy5taWNyb3NvZnQuY29tL3BraS9j # ZXJ0cy9NaWNSb29DZXJBdXRfMjAxMC0wNi0yMy5jcnQwgaAGA1UdIAEB/wSBlTCB # kjCBjwYJKwYBBAGCNy4DMIGBMD0GCCsGAQUFBwIBFjFodHRwOi8vd3d3Lm1pY3Jv # c29mdC5jb20vUEtJL2RvY3MvQ1BTL2RlZmF1bHQuaHRtMEAGCCsGAQUFBwICMDQe # MiAdAEwAZQBnAGEAbABfAFAAbwBsAGkAYwB5AF8AUwB0AGEAdABlAG0AZQBuAHQA # LiAdMA0GCSqGSIb3DQEBCwUAA4ICAQAH5ohRDeLG4Jg/gXEDPZ2joSFvs+umzPUx # vs8F4qn++ldtGTCzwsVmyWrf9efweL3HqJ4l4/m87WtUVwgrUYJEEvu5U4zM9GAS # inbMQEBBm9xcF/9c+V4XNZgkVkt070IQyK+/f8Z/8jd9Wj8c8pl5SpFSAK84Dxf1 # L3mBZdmptWvkx872ynoAb0swRCQiPM/tA6WWj1kpvLb9BOFwnzJKJ/1Vry/+tuWO # M7tiX5rbV0Dp8c6ZZpCM/2pif93FSguRJuI57BlKcWOdeyFtw5yjojz6f32WapB4 # pm3S4Zz5Hfw42JT0xqUKloakvZ4argRCg7i1gJsiOCC1JeVk7Pf0v35jWSUPei45 # V3aicaoGig+JFrphpxHLmtgOR5qAxdDNp9DvfYPw4TtxCd9ddJgiCGHasFAeb73x # 4QDf5zEHpJM692VHeOj4qEir995yfmFrb3epgcunCaw5u+zGy9iCtHLNHfS4hQEe # gPsbiSpUObJb2sgNVZl6h3M7COaYLeqN4DMuEin1wC9UJyH3yKxO2ii4sanblrKn # QqLJzxlBTeCG+SqaoxFmMNO7dDJL32N79ZmKLxvHIa9Zta7cRDyXUHHXodLFVeNp # 3lfB0d4wwP3M5k37Db9dT+mdHhk4L7zPWAUu7w2gUDXa7wknHNWzfjUeCLraNtvT # X4/edIhJEqGCAs4wggI3AgEBMIH4oYHQpIHNMIHKMQswCQYDVQQGEwJVUzELMAkG # A1UECBMCV0ExEDAOBgNVBAcTB1JlZG1vbmQxHjAcBgNVBAoTFU1pY3Jvc29mdCBD # b3Jwb3JhdGlvbjEtMCsGA1UECxMkTWljcm9zb2Z0IElyZWxhbmQgT3BlcmF0aW9u # cyBMaW1pdGVkMSYwJAYDVQQLEx1UaGFsZXMgVFNTIEVTTjpBMjQwLTRCODItMTMw # RTElMCMGA1UEAxMcTWljcm9zb2Z0IFRpbWUtU3RhbXAgU2VydmljZaIjCgEBMAcG # BSsOAwIaAxUAQe7m7bx6J899m5OJloYbG1+fdMeggYMwgYCkfjB8MQswCQYDVQQG # EwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9uZDEeMBwG # A1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMSYwJAYDVQQDEx1NaWNyb3NvZnQg # VGltZS1TdGFtcCBQQ0EgMjAxMDANBgkqhkiG9w0BAQUFAAIFAOLBznIwIhgPMjAy # MDA3MjIwNDI4MzRaGA8yMDIwMDcyMzA0MjgzNFowdzA9BgorBgEEAYRZCgQBMS8w # LTAKAgUA4sHOcgIBADAKAgEAAgIPxwIB/zAHAgEAAgIRozAKAgUA4sMf8gIBADA2 # BgorBgEEAYRZCgQCMSgwJjAMBgorBgEEAYRZCgMCoAowCAIBAAIDB6EgoQowCAIB # AAIDAYagMA0GCSqGSIb3DQEBBQUAA4GBAHiCb074/CZ13ng5nkal8zN2Sf3NEV+5 # KvuNMBxNDjJJ86t22fxg8/qk5OcCd4KuR4MuPJOSvntnP8kmMYWenIEjKefyvEmy # OntJx0/xI/kvwJ/EljsV7stwQeyUnRgsgpdafkTwxncUysszkEGv7Bk7iNnEVBQq # D6sl2tnd5WlxMYIDDTCCAwkCAQEwgZMwfDELMAkGA1UEBhMCVVMxEzARBgNVBAgT # Cldhc2hpbmd0b24xEDAOBgNVBAcTB1JlZG1vbmQxHjAcBgNVBAoTFU1pY3Jvc29m # dCBDb3Jwb3JhdGlvbjEmMCQGA1UEAxMdTWljcm9zb2Z0IFRpbWUtU3RhbXAgUENB # IDIwMTACEzMAAAERDQKe7tTtBdQAAAAAAREwDQYJYIZIAWUDBAIBBQCgggFKMBoG # CSqGSIb3DQEJAzENBgsqhkiG9w0BCRABBDAvBgkqhkiG9w0BCQQxIgQg7naXqR9q # ik/q8hoMDojf5q95TsAB36xfl6bnt0/P1ecwgfoGCyqGSIb3DQEJEAIvMYHqMIHn # MIHkMIG9BCCOPhKvogUeGkGhaxtCZuN/UtD1T4D+yDxcOwVz6Si2WzCBmDCBgKR+ # MHwxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdS # ZWRtb25kMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xJjAkBgNVBAMT # HU1pY3Jvc29mdCBUaW1lLVN0YW1wIFBDQSAyMDEwAhMzAAABEQ0Cnu7U7QXUAAAA # AAERMCIEIDpE0w8SdueDjaxC+mgY2KzqFJhYfHsgMxUtjogCuzcFMA0GCSqGSIb3 # DQEBCwUABIIBABzr1HPfSLf0ZTFS6EdotyrjGCTfwgsN2eVSalstDhOlyWCCgo8H # wdvznDBFd+qAXX6WmFXSKXwTz7F3EmfQzqZR3fN5unFrBqU52PQVffwxh96rpQd8 # aZTVUVUv8seE2LqmZZL1Hjyr+mQSQwHRUHTwl0bX2DgMs/bs7+iYAlbb5FchIfHY # AP8U90z7uSYbADp+5sTxItV682OjpMV6P/Qh1SS9oF3aoMAouEbXF3uPd1fwtRbq # zyBu9334Rtr44J8Idrcqpe4IcHR8si5ajOsVVFSsHX0x1zCEJl/uOB9pKS7MrS/l # YWyNPyowXrEuXAOS8lMgsZYHm9HpHu7cFC0= # SIG # End signature block |