diff --git a/src/Identity.Governance/Identity.Governance/custom/Get-MgEntitlementManagementAccessPackage.ps1 b/src/Identity.Governance/Identity.Governance/custom/Get-MgEntitlementManagementAccessPackage.ps1 new file mode 100644 index 00000000000..757c27f8b54 --- /dev/null +++ b/src/Identity.Governance/Identity.Governance/custom/Get-MgEntitlementManagementAccessPackage.ps1 @@ -0,0 +1,195 @@ + +# ---------------------------------------------------------------------------------- +# +# 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 accessPackages from identityGovernance +.Description +Get accessPackages from identityGovernance +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} + +.Inputs +Microsoft.Graph.PowerShell.Models.IIdentityGovernanceIdentity +.Outputs +Microsoft.Graph.PowerShell.Models.IMicrosoftGraphAccessPackage +.Notes +.Link +https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.governance/get-mgentitlementmanagementaccesspackage +#> +function Get-MgEntitlementManagementAccessPackage { +[OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphAccessPackage])] +[CmdletBinding(DefaultParameterSetName='ListAll', PositionalBinding=$false)] +[Microsoft.Graph.PowerShell.Profile('v1.0-beta')] +param( + + [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='ListByCatalogId', Mandatory)] + [Microsoft.Graph.PowerShell.Category('Query')] + [ValidateScript( { + try { + [System.Guid]::Parse($_) | Out-Null + $true + } + catch { + throw "$_ is not a valid ObjectID format. Valid value is a GUID format only." + } + })] + [System.String] + # Filter items by property values + ${CatalogId}, + + [Parameter(ParameterSetName='ListByDisplayNameEq', Mandatory)] + [Microsoft.Graph.PowerShell.Category('Query')] + [System.String] + # Filter items by property values + ${DisplayNameEq}, + + [Parameter(ParameterSetName='ListByDisplayNameContains', Mandatory)] + [Microsoft.Graph.PowerShell.Category('Query')] + [System.String] + # Filter items by property values + ${DisplayNameContains}, + + [Parameter(ParameterSetName='ListAll')] + [Parameter(ParameterSetName='ListByCatalogId')] + [Parameter(ParameterSetName='ListByDisplayNameEq')] + [Parameter(ParameterSetName='ListByDisplayNameContains')] + [Alias('OrderBy')] + [Microsoft.Graph.PowerShell.Category('Query')] + [System.String[]] + # Order items by property values + ${Sort}, + + [Parameter(ParameterSetName='ListByDisplayNameEq')] + [Parameter(ParameterSetName='ListByDisplayNameContains')] + [Parameter(ParameterSetName='ListByCatalogId')] + [Alias('Limit')] + [Microsoft.Graph.PowerShell.Category('Query')] + [System.Int32] + # Show only the first n items + ${Top}, + + [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='ListAll')] + [Parameter(ParameterSetName='ListByDisplayNameEq')] + [Parameter(ParameterSetName='ListByDisplayNameContains')] + [Parameter(ParameterSetName='ListByCatalogId')] + [Microsoft.Graph.PowerShell.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # List all pages. + ${All} +) + +begin { + +} + +process { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($parameterSet -eq "ListByDisplayNameEq") { + + $Filter = "displayName eq '{0}'" -f $DisplayNameEq + $PSBoundParameters['Filter'] = $Filter + $null = $PSBoundParameters.Remove('DisplayNameEq') + + } elseif ($parameterSet -eq "ListByDisplayNameContains") { + + $Filter = "contains(tolower(displayName), '{0}')" -f $DisplayNameContains + $PSBoundParameters['Filter'] = $Filter + $null = $PSBoundParameters.Remove('DisplayNameContains') + } elseif ($parameterSet -eq "ListByCatalogId") { + + $Filter = "accessPackageCatalog/Id eq '{0}'" -f $CatalogId + $PSBoundParameters['Filter'] = $Filter + $null = $PSBoundParameters.Remove('CatalogId') + } + + if ($PSBoundParameters.ContainsKey('Top') -or $PSBoundParameters.ContainsKey('All')) { + + } else { + $PSBoundParameters['All'] = $true + } + + Microsoft.Graph.Identity.Governance.private\Get-MgEntitlementManagementAccessPackage_List @PSBoundParameters + +} + +end { + +} +} diff --git a/src/Identity.Governance/Identity.Governance/custom/Get-MgEntitlementManagementAccessPackageAssignment.ps1 b/src/Identity.Governance/Identity.Governance/custom/Get-MgEntitlementManagementAccessPackageAssignment.ps1 new file mode 100644 index 00000000000..7ef720ac186 --- /dev/null +++ b/src/Identity.Governance/Identity.Governance/custom/Get-MgEntitlementManagementAccessPackageAssignment.ps1 @@ -0,0 +1,166 @@ + +# ---------------------------------------------------------------------------------- +# +# 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 accessPackageAssignments from identityGovernance +.Description +Get accessPackageAssignments from identityGovernance +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} + +.Inputs +Microsoft.Graph.PowerShell.Models.IIdentityGovernanceIdentity +.Outputs +Microsoft.Graph.PowerShell.Models.IMicrosoftGraphAccessPackageAssignment +.Notes + +.Link +https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.governance/get-mgentitlementmanagementaccesspackageassignment +#> +function Get-MgEntitlementManagementAccessPackageAssignment { +[OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphAccessPackageAssignment])] +[CmdletBinding(DefaultParameterSetName='ListAll', PositionalBinding=$false)] +[Microsoft.Graph.PowerShell.Profile('v1.0-beta')] +param( + + [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='ListByAccessPackageId', Mandatory)] + [Microsoft.Graph.PowerShell.Category('Query')] + [ValidateScript( { + try { + [System.Guid]::Parse($_) | Out-Null + $true + } + catch { + throw "$_ is not a valid ObjectID format. Valid value is a GUID format only." + } + })] + [System.String] + # Filter items by property values + ${AccessPackageId}, + + [Parameter(ParameterSetName='ListAll')] + [Parameter(ParameterSetName='ListByAccessPackageId')] + [Alias('OrderBy')] + [Microsoft.Graph.PowerShell.Category('Query')] + [System.String[]] + # Order items by property values + ${Sort}, + + [Parameter(ParameterSetName='ListByAccessPackageId')] + [Alias('Limit')] + [Microsoft.Graph.PowerShell.Category('Query')] + [System.Int32] + # Show only the first n items + ${Top}, + + [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='ListAll')] + [Parameter(ParameterSetName='ListByAccessPackageId')] + [Microsoft.Graph.PowerShell.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # List all pages. + ${All} +) + +begin { + +} + +process { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + if ($parameterSet -eq "ListByAccessPackageId") { + + $Filter = "accessPackageId eq '{0}'" -f $AccessPackageId + $PSBoundParameters['Filter'] = $Filter + $null = $PSBoundParameters.Remove('AccessPackageId') + } + + if ($PSBoundParameters.ContainsKey('Top') -or $PSBoundParameters.ContainsKey('All')) { + + } else { + $PSBoundParameters['All'] = $true + } + + Microsoft.Graph.Identity.Governance.private\Get-MgEntitlementManagementAccessPackageAssignment_List @PSBoundParameters + +} + +end { + +} +} diff --git a/src/Identity.Governance/Identity.Governance/custom/Get-MgEntitlementManagementAccessPackageAssignmentPolicy.ps1 b/src/Identity.Governance/Identity.Governance/custom/Get-MgEntitlementManagementAccessPackageAssignmentPolicy.ps1 new file mode 100644 index 00000000000..07f3b08e6c1 --- /dev/null +++ b/src/Identity.Governance/Identity.Governance/custom/Get-MgEntitlementManagementAccessPackageAssignmentPolicy.ps1 @@ -0,0 +1,171 @@ + +# ---------------------------------------------------------------------------------- +# +# 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 accessPackageAssignmentPolicies from identityGovernance +.Description +Get accessPackageAssignmentPolicies from identityGovernance +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} + +.Inputs +Microsoft.Graph.PowerShell.Models.IIdentityGovernanceIdentity +.Outputs +Microsoft.Graph.PowerShell.Models.IMicrosoftGraphAccessPackageAssignmentPolicy +.Notes + +.Link +https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.governance/get-mgentitlementmanagementaccesspackageassignmentpolicy +#> +function Get-MgEntitlementManagementAccessPackageAssignmentPolicy { +[OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphAccessPackageAssignmentPolicy])] +[CmdletBinding(DefaultParameterSetName='ListAll', PositionalBinding=$false)] +[Microsoft.Graph.PowerShell.Profile('v1.0-beta')] +param( + + [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='ListByDisplayNameEq', Mandatory)] + [Microsoft.Graph.PowerShell.Category('Query')] + [System.String] + # Filter items by property values + ${DisplayNameEq}, + + [Parameter(ParameterSetName='ListByDisplayNameContains', Mandatory)] + [Microsoft.Graph.PowerShell.Category('Query')] + [System.String] + # Filter items by property values + ${DisplayNameContains}, + + [Parameter(ParameterSetName='ListByDisplayNameEq')] + [Parameter(ParameterSetName='ListByDisplayNameContains')] + [Parameter(ParameterSetName='ListAll')] + [Alias('OrderBy')] + [Microsoft.Graph.PowerShell.Category('Query')] + [System.String[]] + # Order items by property values + ${Sort}, + + [Parameter(ParameterSetName='ListByDisplayNameEq')] + [Parameter(ParameterSetName='ListByDisplayNameContains')] + [Alias('Limit')] + [Microsoft.Graph.PowerShell.Category('Query')] + [System.Int32] + # Show only the first n items + ${Top}, + + [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='ListByDisplayNameEq')] + [Parameter(ParameterSetName='ListByDisplayNameContains')] + [Parameter(ParameterSetName='ListAll')] + [Microsoft.Graph.PowerShell.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # List all pages. + ${All} + +) + +begin { + +} + +process { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + if ($parameterSet -eq "ListByDisplayNameEq") { + + $Filter = "displayName eq '{0}'" -f $DisplayNameEq + $PSBoundParameters['Filter'] = $Filter + $null = $PSBoundParameters.Remove('DisplayNameEq') + } elseif ($parameterSet -eq "ListByDisplayNameContains") { + + $Filter = "contains(tolower(displayName), '{0}')" -f $DisplayNameContains + $PSBoundParameters['Filter'] = $Filter + $null = $PSBoundParameters.Remove('DisplayNameContains') + } + + if ($PSBoundParameters.ContainsKey('Top') -or $PSBoundParameters.ContainsKey('All')) { + + } else { + $PSBoundParameters['All'] = $true + } + + Microsoft.Graph.Identity.Governance.private\Get-MgEntitlementManagementAccessPackageAssignmentPolicy_List1 @PSBoundParameters +} + +end { + +} +} diff --git a/src/Identity.Governance/Identity.Governance/custom/Get-MgEntitlementManagementAccessPackageAssignmentRequest.ps1 b/src/Identity.Governance/Identity.Governance/custom/Get-MgEntitlementManagementAccessPackageAssignmentRequest.ps1 new file mode 100644 index 00000000000..301bc42ce09 --- /dev/null +++ b/src/Identity.Governance/Identity.Governance/custom/Get-MgEntitlementManagementAccessPackageAssignmentRequest.ps1 @@ -0,0 +1,165 @@ + +# ---------------------------------------------------------------------------------- +# +# 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 accessPackageAssignmentRequests from identityGovernance +.Description +Get accessPackageAssignmentRequests from identityGovernance +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} + +.Inputs +Microsoft.Graph.PowerShell.Models.IIdentityGovernanceIdentity +.Outputs +Microsoft.Graph.PowerShell.Models.IMicrosoftGraphAccessPackageAssignmentRequest +.Notes + +.Link +https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.governance/get-mgentitlementmanagementaccesspackageassignmentrequest +#> +function Get-MgEntitlementManagementAccessPackageAssignmentRequest { +[OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphAccessPackageAssignmentRequest])] +[CmdletBinding(DefaultParameterSetName='ListAll', PositionalBinding=$false)] +[Microsoft.Graph.PowerShell.Profile('v1.0-beta')] +param( + [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='ListByAccessPackageId', Mandatory)] + [Microsoft.Graph.PowerShell.Category('Query')] + [ValidateScript( { + try { + [System.Guid]::Parse($_) | Out-Null + $true + } + catch { + throw "$_ is not a valid ObjectID format. Valid value is a GUID format only." + } + })] + [System.String] + # Filter items by property values + ${AccessPackageId}, + + [Parameter(ParameterSetName='ListAll')] + [Parameter(ParameterSetName='ListByAccessPackageId')] + [Alias('OrderBy')] + [Microsoft.Graph.PowerShell.Category('Query')] + [System.String[]] + # Order items by property values + ${Sort}, + + [Parameter(ParameterSetName='ListByAccessPackageId')] + [Alias('Limit')] + [Microsoft.Graph.PowerShell.Category('Query')] + [System.Int32] + # Show only the first n items + ${Top}, + + [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='ListAll')] + [Parameter(ParameterSetName='ListByAccessPackageId')] + [Microsoft.Graph.PowerShell.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # List all pages. + ${All} + +) + +begin { + +} + +process { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + if ($parameterSet -eq "ListByAccessPackageId") { + + $Filter = "accessPackage/Id eq '{0}'" -f $AccessPackageId + $PSBoundParameters['Filter'] = $Filter + $null = $PSBoundParameters.Remove('AccessPackageId') + } + + if ($PSBoundParameters.ContainsKey('Top') -or $PSBoundParameters.ContainsKey('All')) { + + } else { + $PSBoundParameters['All'] = $true + } + + Microsoft.Graph.Identity.Governance.private\Get-MgEntitlementManagementAccessPackageAssignmentRequest_List @PSBoundParameters +} + +end { + +} +} diff --git a/src/Identity.Governance/Identity.Governance/custom/Get-MgEntitlementManagementAccessPackageCatalog.ps1 b/src/Identity.Governance/Identity.Governance/custom/Get-MgEntitlementManagementAccessPackageCatalog.ps1 new file mode 100644 index 00000000000..d6537ca3721 --- /dev/null +++ b/src/Identity.Governance/Identity.Governance/custom/Get-MgEntitlementManagementAccessPackageCatalog.ps1 @@ -0,0 +1,165 @@ + +# ---------------------------------------------------------------------------------- +# +# 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 accessPackageCatalogs from identityGovernance +.Description +Get accessPackageCatalogs from identityGovernance +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} + +.Inputs +Microsoft.Graph.PowerShell.Models.IIdentityGovernanceIdentity +.Outputs +Microsoft.Graph.PowerShell.Models.IMicrosoftGraphAccessPackageCatalog +.Notes +.Link +https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.governance/get-mgentitlementmanagementaccesspackagecatalog +#> +function Get-MgEntitlementManagementAccessPackageCatalog { +[OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphAccessPackageCatalog])] +[CmdletBinding(DefaultParameterSetName='ListAll',PositionalBinding=$false)] +[Microsoft.Graph.PowerShell.Profile('v1.0-beta')] +param( + + [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='ListByDisplayNameEq', Mandatory)] + [Microsoft.Graph.PowerShell.Category('Query')] + [System.String] + # Filter items by property values + ${DisplayNameEq}, + + [Parameter(ParameterSetName='ListByDisplayNameContains', Mandatory)] + [Microsoft.Graph.PowerShell.Category('Query')] + [System.String] + # Filter items by property values + ${DisplayNameContains}, + + [Parameter(ParameterSetName='ListByDisplayNameEq')] + [Parameter(ParameterSetName='ListByDisplayNameContains')] + [Parameter(ParameterSetName='ListAll')] + [Alias('OrderBy')] + [Microsoft.Graph.PowerShell.Category('Query')] + [System.String[]] + # Order items by property values + ${Sort}, + + [Parameter(ParameterSetName='ListByDisplayNameEq')] + [Parameter(ParameterSetName='ListByDisplayNameContains')] + [Alias('Limit')] + [Microsoft.Graph.PowerShell.Category('Query')] + [System.Int32] + # Show only the first n items + ${Top}, + + [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='ListByDisplayNameEq')] + [Parameter(ParameterSetName='ListByDisplayNameContains')] + [Parameter(ParameterSetName='ListAll')] + [Microsoft.Graph.PowerShell.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # List all pages. + ${All} +) + +begin { + +} + +process { + $parameterSet = $PSCmdlet.ParameterSetName + if ($parameterSet -eq "ListByDisplayNameEq") { + + $Filter = "displayName eq '{0}'" -f $DisplayNameEq + $PSBoundParameters['Filter'] = $Filter + $null = $PSBoundParameters.Remove('DisplayNameEq') + } elseif ($parameterSet -eq "ListByDisplayNameContains") { + + $Filter = "contains(tolower(displayName), '{0}')" -f $DisplayNameContains + $PSBoundParameters['Filter'] = $Filter + $null = $PSBoundParameters.Remove('DisplayNameContains') + } + + if ($PSBoundParameters.ContainsKey('Top') -or $PSBoundParameters.ContainsKey('All')) { + + } else { + $PSBoundParameters['All'] = $true + } + + Microsoft.Graph.Identity.Governance.private\Get-MgEntitlementManagementAccessPackageCatalog_List @PSBoundParameters +} + +end { + +} +} diff --git a/src/Identity.Governance/Identity.Governance/custom/Get-MgEntitlementManagementConnectedOrganization.ps1 b/src/Identity.Governance/Identity.Governance/custom/Get-MgEntitlementManagementConnectedOrganization.ps1 new file mode 100644 index 00000000000..1ac07240839 --- /dev/null +++ b/src/Identity.Governance/Identity.Governance/custom/Get-MgEntitlementManagementConnectedOrganization.ps1 @@ -0,0 +1,169 @@ + +# ---------------------------------------------------------------------------------- +# +# 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 connectedOrganizations from identityGovernance +.Description +Get connectedOrganizations from identityGovernance +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} + +.Inputs +Microsoft.Graph.PowerShell.Models.IIdentityGovernanceIdentity +.Outputs +Microsoft.Graph.PowerShell.Models.IMicrosoftGraphConnectedOrganization +.Notes + +.Link +https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.governance/get-mgentitlementmanagementconnectedorganization +#> +function Get-MgEntitlementManagementConnectedOrganization { +[OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphConnectedOrganization])] +[CmdletBinding(DefaultParameterSetName='ListAll', PositionalBinding=$false)] +[Microsoft.Graph.PowerShell.Profile('v1.0-beta')] +param( + [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='ListByDisplayNameEq', Mandatory)] + [Microsoft.Graph.PowerShell.Category('Query')] + [System.String] + # Filter items by property values + ${DisplayNameEq}, + + [Parameter(ParameterSetName='ListByDisplayNameContains', Mandatory)] + [Microsoft.Graph.PowerShell.Category('Query')] + [System.String] + # Filter items by property values + ${DisplayNameContains}, + + [Parameter(ParameterSetName='ListByDisplayNameEq')] + [Parameter(ParameterSetName='ListByDisplayNameContains')] + [Parameter(ParameterSetName='ListAll')] + [Alias('OrderBy')] + [Microsoft.Graph.PowerShell.Category('Query')] + [System.String[]] + # Order items by property values + ${Sort}, + + [Parameter(ParameterSetName='ListByDisplayNameEq')] + [Parameter(ParameterSetName='ListByDisplayNameContains')] + [Alias('Limit')] + [Microsoft.Graph.PowerShell.Category('Query')] + [System.Int32] + # Show only the first n items + ${Top}, + + [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='ListByDisplayNameEq')] + [Parameter(ParameterSetName='ListByDisplayNameContains')] + [Parameter(ParameterSetName='ListAll')] + [Microsoft.Graph.PowerShell.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # List all pages. + ${All} +) + +begin { + +} + +process { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + if ($parameterSet -eq "ListByDisplayNameEq") { + + $Filter = "displayName eq '{0}'" -f $DisplayNameEq + $PSBoundParameters['Filter'] = $Filter + $null = $PSBoundParameters.Remove('DisplayNameEq') + } elseif ($parameterSet -eq "ListByDisplayNameContains") { + + $Filter = "contains(tolower(displayName), '{0}')" -f $DisplayNameContains + $PSBoundParameters['Filter'] = $Filter + $null = $PSBoundParameters.Remove('DisplayNameContains') + } + + if ($PSBoundParameters.ContainsKey('Top') -or $PSBoundParameters.ContainsKey('All')) { + + } else { + $PSBoundParameters['All'] = $true + } + + Microsoft.Graph.Identity.Governance.private\Get-MgEntitlementManagementConnectedOrganization_List @PSBoundParameters +} + +end { + +} +}