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 agents from onPremisesPublishingProfiles
.Description
Get agents from onPremisesPublishingProfiles
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
 
.Inputs
Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity
.Outputs
Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgent
.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 <IIdentityOnPremisesPublishingProfilesIdentity>: Identity Parameter
  [OnPremisesAgentGroupId <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentGroupId1 <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentId <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesAgentId1 <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesPublishingProfileId <String>]: key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
  [PublishedResourceId <String>]: key: publishedResource-id of publishedResource
  [PublishedResourceId1 <String>]: key: publishedResource-id of publishedResource
.Link
https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.onpremisespublishingprofiles/get-mgonpremispublishingprofileagentgroupagent
#>

function Get-MgOnPremisPublishingProfileAgentGroupAgent {
[OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgent])]
[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)]
param(
    [Parameter(ParameterSetName='Get', Mandatory)]
    [Parameter(ParameterSetName='Get1', Mandatory)]
    [Parameter(ParameterSetName='List', Mandatory)]
    [Parameter(ParameterSetName='List1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesAgentGroup-id of onPremisesAgentGroup
    ${OnPremisesAgentGroupId},

    [Parameter(ParameterSetName='Get', Mandatory)]
    [Parameter(ParameterSetName='Get1', Mandatory)]
    [Parameter(ParameterSetName='List', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesAgent-id of onPremisesAgent
    ${OnPremisesAgentId},

    [Parameter(ParameterSetName='Get', Mandatory)]
    [Parameter(ParameterSetName='Get1', Mandatory)]
    [Parameter(ParameterSetName='List', Mandatory)]
    [Parameter(ParameterSetName='List1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
    ${OnPremisesPublishingProfileId},

    [Parameter(ParameterSetName='Get1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesAgent-id of onPremisesAgent
    ${OnPremisesAgentId1},

    [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='GetViaIdentity1', Mandatory, ValueFromPipeline)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity]
    # 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')]
    [Parameter(ParameterSetName='List1')]
    [Microsoft.Graph.PowerShell.Category('Query')]
    [System.Management.Automation.SwitchParameter]
    # Include count of items
    ${Count},

    [Parameter(ParameterSetName='List')]
    [Parameter(ParameterSetName='List1')]
    [Microsoft.Graph.PowerShell.Category('Query')]
    [System.String]
    # Filter items by property values
    ${Filter},

    [Parameter(ParameterSetName='List')]
    [Parameter(ParameterSetName='List1')]
    [Alias('Top')]
    [Microsoft.Graph.PowerShell.Category('Query')]
    [System.Int32]
    # Show only the first n items
    ${PageSize},

    [Parameter(ParameterSetName='List')]
    [Parameter(ParameterSetName='List1')]
    [Microsoft.Graph.PowerShell.Category('Query')]
    [System.String]
    # Search items by search phrases
    ${Search},

    [Parameter(ParameterSetName='List')]
    [Parameter(ParameterSetName='List1')]
    [Microsoft.Graph.PowerShell.Category('Query')]
    [System.Int32]
    # Skip the first n items
    ${Skip},

    [Parameter(ParameterSetName='List')]
    [Parameter(ParameterSetName='List1')]
    [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}
)

begin {
    try {
        $outBuffer = $null
        if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
            $PSBoundParameters['OutBuffer'] = 1
        }
        $parameterSet = $PSCmdlet.ParameterSetName
        $mapping = @{
            Get = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Get-MgOnPremisPublishingProfileAgentGroupAgent_Get';
            Get1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Get-MgOnPremisPublishingProfileAgentGroupAgent_Get1';
            GetViaIdentity = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Get-MgOnPremisPublishingProfileAgentGroupAgent_GetViaIdentity';
            GetViaIdentity1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Get-MgOnPremisPublishingProfileAgentGroupAgent_GetViaIdentity1';
            List = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Get-MgOnPremisPublishingProfileAgentGroupAgent_List';
            List1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Get-MgOnPremisPublishingProfileAgentGroupAgent_List1';
        }
        $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 agentGroups from onPremisesPublishingProfiles
.Description
Get agentGroups from onPremisesPublishingProfiles
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
 
.Inputs
Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity
.Outputs
Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgentGroup
.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 <IIdentityOnPremisesPublishingProfilesIdentity>: Identity Parameter
  [OnPremisesAgentGroupId <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentGroupId1 <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentId <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesAgentId1 <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesPublishingProfileId <String>]: key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
  [PublishedResourceId <String>]: key: publishedResource-id of publishedResource
  [PublishedResourceId1 <String>]: key: publishedResource-id of publishedResource
.Link
https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.onpremisespublishingprofiles/get-mgonpremispublishingprofileagentgrouppublishedresourceagentgroup
#>

function Get-MgOnPremisPublishingProfileAgentGroupPublishedResourceAgentGroup {
[OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgentGroup])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
    [Parameter(ParameterSetName='Get', Mandatory)]
    [Parameter(ParameterSetName='Get1', Mandatory)]
    [Parameter(ParameterSetName='List', Mandatory)]
    [Parameter(ParameterSetName='List1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesAgentGroup-id of onPremisesAgentGroup
    ${OnPremisesAgentGroupId},

    [Parameter(ParameterSetName='Get', Mandatory)]
    [Parameter(ParameterSetName='Get1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesAgentGroup-id of onPremisesAgentGroup
    ${OnPremisesAgentGroupId1},

    [Parameter(ParameterSetName='Get', Mandatory)]
    [Parameter(ParameterSetName='Get1', Mandatory)]
    [Parameter(ParameterSetName='List', Mandatory)]
    [Parameter(ParameterSetName='List1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
    ${OnPremisesPublishingProfileId},

    [Parameter(ParameterSetName='Get', Mandatory)]
    [Parameter(ParameterSetName='Get1', Mandatory)]
    [Parameter(ParameterSetName='List', Mandatory)]
    [Parameter(ParameterSetName='List1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: publishedResource-id of publishedResource
    ${PublishedResourceId},

    [Parameter(ParameterSetName='Get1', Mandatory)]
    [Parameter(ParameterSetName='List1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesAgent-id of onPremisesAgent
    ${OnPremisesAgentId},

    [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='GetViaIdentity1', Mandatory, ValueFromPipeline)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity]
    # 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')]
    [Parameter(ParameterSetName='List1')]
    [Microsoft.Graph.PowerShell.Category('Query')]
    [System.Management.Automation.SwitchParameter]
    # Include count of items
    ${Count},

    [Parameter(ParameterSetName='List')]
    [Parameter(ParameterSetName='List1')]
    [Microsoft.Graph.PowerShell.Category('Query')]
    [System.String]
    # Filter items by property values
    ${Filter},

    [Parameter(ParameterSetName='List')]
    [Parameter(ParameterSetName='List1')]
    [Alias('Top')]
    [Microsoft.Graph.PowerShell.Category('Query')]
    [System.Int32]
    # Show only the first n items
    ${PageSize},

    [Parameter(ParameterSetName='List')]
    [Parameter(ParameterSetName='List1')]
    [Microsoft.Graph.PowerShell.Category('Query')]
    [System.String]
    # Search items by search phrases
    ${Search},

    [Parameter(ParameterSetName='List')]
    [Parameter(ParameterSetName='List1')]
    [Microsoft.Graph.PowerShell.Category('Query')]
    [System.Int32]
    # Skip the first n items
    ${Skip},

    [Parameter(ParameterSetName='List')]
    [Parameter(ParameterSetName='List1')]
    [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}
)

begin {
    try {
        $outBuffer = $null
        if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
            $PSBoundParameters['OutBuffer'] = 1
        }
        $parameterSet = $PSCmdlet.ParameterSetName
        $mapping = @{
            Get = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Get-MgOnPremisPublishingProfileAgentGroupPublishedResourceAgentGroup_Get';
            Get1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Get-MgOnPremisPublishingProfileAgentGroupPublishedResourceAgentGroup_Get1';
            GetViaIdentity = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Get-MgOnPremisPublishingProfileAgentGroupPublishedResourceAgentGroup_GetViaIdentity';
            GetViaIdentity1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Get-MgOnPremisPublishingProfileAgentGroupPublishedResourceAgentGroup_GetViaIdentity1';
            List = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Get-MgOnPremisPublishingProfileAgentGroupPublishedResourceAgentGroup_List';
            List1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Get-MgOnPremisPublishingProfileAgentGroupPublishedResourceAgentGroup_List1';
        }
        $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 publishedResources from onPremisesPublishingProfiles
.Description
Get publishedResources from onPremisesPublishingProfiles
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
 
.Inputs
Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity
.Outputs
Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPublishedResource
.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 <IIdentityOnPremisesPublishingProfilesIdentity>: Identity Parameter
  [OnPremisesAgentGroupId <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentGroupId1 <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentId <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesAgentId1 <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesPublishingProfileId <String>]: key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
  [PublishedResourceId <String>]: key: publishedResource-id of publishedResource
  [PublishedResourceId1 <String>]: key: publishedResource-id of publishedResource
.Link
https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.onpremisespublishingprofiles/get-mgonpremispublishingprofileagentgrouppublishedresource
#>

function Get-MgOnPremisPublishingProfileAgentGroupPublishedResource {
[OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPublishedResource])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
    [Parameter(ParameterSetName='Get', Mandatory)]
    [Parameter(ParameterSetName='Get1', Mandatory)]
    [Parameter(ParameterSetName='List', Mandatory)]
    [Parameter(ParameterSetName='List1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesAgentGroup-id of onPremisesAgentGroup
    ${OnPremisesAgentGroupId},

    [Parameter(ParameterSetName='Get', Mandatory)]
    [Parameter(ParameterSetName='Get1', Mandatory)]
    [Parameter(ParameterSetName='List', Mandatory)]
    [Parameter(ParameterSetName='List1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
    ${OnPremisesPublishingProfileId},

    [Parameter(ParameterSetName='Get', Mandatory)]
    [Parameter(ParameterSetName='Get1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: publishedResource-id of publishedResource
    ${PublishedResourceId},

    [Parameter(ParameterSetName='Get1', Mandatory)]
    [Parameter(ParameterSetName='List1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesAgent-id of onPremisesAgent
    ${OnPremisesAgentId},

    [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='GetViaIdentity1', Mandatory, ValueFromPipeline)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity]
    # 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')]
    [Parameter(ParameterSetName='List1')]
    [Microsoft.Graph.PowerShell.Category('Query')]
    [System.Management.Automation.SwitchParameter]
    # Include count of items
    ${Count},

    [Parameter(ParameterSetName='List')]
    [Parameter(ParameterSetName='List1')]
    [Microsoft.Graph.PowerShell.Category('Query')]
    [System.String]
    # Filter items by property values
    ${Filter},

    [Parameter(ParameterSetName='List')]
    [Parameter(ParameterSetName='List1')]
    [Alias('Top')]
    [Microsoft.Graph.PowerShell.Category('Query')]
    [System.Int32]
    # Show only the first n items
    ${PageSize},

    [Parameter(ParameterSetName='List')]
    [Parameter(ParameterSetName='List1')]
    [Microsoft.Graph.PowerShell.Category('Query')]
    [System.String]
    # Search items by search phrases
    ${Search},

    [Parameter(ParameterSetName='List')]
    [Parameter(ParameterSetName='List1')]
    [Microsoft.Graph.PowerShell.Category('Query')]
    [System.Int32]
    # Skip the first n items
    ${Skip},

    [Parameter(ParameterSetName='List')]
    [Parameter(ParameterSetName='List1')]
    [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}
)

begin {
    try {
        $outBuffer = $null
        if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
            $PSBoundParameters['OutBuffer'] = 1
        }
        $parameterSet = $PSCmdlet.ParameterSetName
        $mapping = @{
            Get = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Get-MgOnPremisPublishingProfileAgentGroupPublishedResource_Get';
            Get1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Get-MgOnPremisPublishingProfileAgentGroupPublishedResource_Get1';
            GetViaIdentity = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Get-MgOnPremisPublishingProfileAgentGroupPublishedResource_GetViaIdentity';
            GetViaIdentity1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Get-MgOnPremisPublishingProfileAgentGroupPublishedResource_GetViaIdentity1';
            List = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Get-MgOnPremisPublishingProfileAgentGroupPublishedResource_List';
            List1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Get-MgOnPremisPublishingProfileAgentGroupPublishedResource_List1';
        }
        $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 agentGroups from onPremisesPublishingProfiles
.Description
Get agentGroups from onPremisesPublishingProfiles
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
 
.Inputs
Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity
.Outputs
Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgentGroup
.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 <IIdentityOnPremisesPublishingProfilesIdentity>: Identity Parameter
  [OnPremisesAgentGroupId <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentGroupId1 <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentId <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesAgentId1 <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesPublishingProfileId <String>]: key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
  [PublishedResourceId <String>]: key: publishedResource-id of publishedResource
  [PublishedResourceId1 <String>]: key: publishedResource-id of publishedResource
.Link
https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.onpremisespublishingprofiles/get-mgonpremispublishingprofileagentgroup
#>

function Get-MgOnPremisPublishingProfileAgentGroup {
[OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgentGroup])]
[CmdletBinding(DefaultParameterSetName='List2', PositionalBinding=$false)]
param(
    [Parameter(ParameterSetName='Get', Mandatory)]
    [Parameter(ParameterSetName='Get1', Mandatory)]
    [Parameter(ParameterSetName='Get2', Mandatory)]
    [Parameter(ParameterSetName='List', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesAgentGroup-id of onPremisesAgentGroup
    ${OnPremisesAgentGroupId},

    [Parameter(ParameterSetName='Get', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesAgentGroup-id of onPremisesAgentGroup
    ${OnPremisesAgentGroupId1},

    [Parameter(ParameterSetName='Get', Mandatory)]
    [Parameter(ParameterSetName='Get1', Mandatory)]
    [Parameter(ParameterSetName='List', Mandatory)]
    [Parameter(ParameterSetName='List1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesAgent-id of onPremisesAgent
    ${OnPremisesAgentId},

    [Parameter(ParameterSetName='Get', Mandatory)]
    [Parameter(ParameterSetName='Get1', Mandatory)]
    [Parameter(ParameterSetName='Get2', Mandatory)]
    [Parameter(ParameterSetName='List', Mandatory)]
    [Parameter(ParameterSetName='List1', Mandatory)]
    [Parameter(ParameterSetName='List2', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
    ${OnPremisesPublishingProfileId},

    [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='GetViaIdentity1', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='GetViaIdentity2', Mandatory, ValueFromPipeline)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity]
    # 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')]
    [Parameter(ParameterSetName='List1')]
    [Parameter(ParameterSetName='List2')]
    [Microsoft.Graph.PowerShell.Category('Query')]
    [System.Management.Automation.SwitchParameter]
    # Include count of items
    ${Count},

    [Parameter(ParameterSetName='List')]
    [Parameter(ParameterSetName='List1')]
    [Parameter(ParameterSetName='List2')]
    [Microsoft.Graph.PowerShell.Category('Query')]
    [System.String]
    # Filter items by property values
    ${Filter},

    [Parameter(ParameterSetName='List')]
    [Parameter(ParameterSetName='List1')]
    [Parameter(ParameterSetName='List2')]
    [Alias('Top')]
    [Microsoft.Graph.PowerShell.Category('Query')]
    [System.Int32]
    # Show only the first n items
    ${PageSize},

    [Parameter(ParameterSetName='List')]
    [Parameter(ParameterSetName='List1')]
    [Parameter(ParameterSetName='List2')]
    [Microsoft.Graph.PowerShell.Category('Query')]
    [System.String]
    # Search items by search phrases
    ${Search},

    [Parameter(ParameterSetName='List')]
    [Parameter(ParameterSetName='List1')]
    [Parameter(ParameterSetName='List2')]
    [Microsoft.Graph.PowerShell.Category('Query')]
    [System.Int32]
    # Skip the first n items
    ${Skip},

    [Parameter(ParameterSetName='List')]
    [Parameter(ParameterSetName='List1')]
    [Parameter(ParameterSetName='List2')]
    [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}
)

begin {
    try {
        $outBuffer = $null
        if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
            $PSBoundParameters['OutBuffer'] = 1
        }
        $parameterSet = $PSCmdlet.ParameterSetName
        $mapping = @{
            Get = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Get-MgOnPremisPublishingProfileAgentGroup_Get';
            Get1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Get-MgOnPremisPublishingProfileAgentGroup_Get1';
            Get2 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Get-MgOnPremisPublishingProfileAgentGroup_Get2';
            GetViaIdentity = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Get-MgOnPremisPublishingProfileAgentGroup_GetViaIdentity';
            GetViaIdentity1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Get-MgOnPremisPublishingProfileAgentGroup_GetViaIdentity1';
            GetViaIdentity2 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Get-MgOnPremisPublishingProfileAgentGroup_GetViaIdentity2';
            List = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Get-MgOnPremisPublishingProfileAgentGroup_List';
            List1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Get-MgOnPremisPublishingProfileAgentGroup_List1';
            List2 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Get-MgOnPremisPublishingProfileAgentGroup_List2';
        }
        $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 agents from onPremisesPublishingProfiles
.Description
Get agents from onPremisesPublishingProfiles
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
 
.Inputs
Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity
.Outputs
Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgent
.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 <IIdentityOnPremisesPublishingProfilesIdentity>: Identity Parameter
  [OnPremisesAgentGroupId <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentGroupId1 <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentId <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesAgentId1 <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesPublishingProfileId <String>]: key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
  [PublishedResourceId <String>]: key: publishedResource-id of publishedResource
  [PublishedResourceId1 <String>]: key: publishedResource-id of publishedResource
.Link
https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.onpremisespublishingprofiles/get-mgonpremispublishingprofileagent
#>

function Get-MgOnPremisPublishingProfileAgent {
[OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgent])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
    [Parameter(ParameterSetName='Get', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesAgent-id of onPremisesAgent
    ${OnPremisesAgentId},

    [Parameter(ParameterSetName='Get', Mandatory)]
    [Parameter(ParameterSetName='List', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
    ${OnPremisesPublishingProfileId},

    [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity]
    # 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')]
    [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}
)

begin {
    try {
        $outBuffer = $null
        if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
            $PSBoundParameters['OutBuffer'] = 1
        }
        $parameterSet = $PSCmdlet.ParameterSetName
        $mapping = @{
            Get = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Get-MgOnPremisPublishingProfileAgent_Get';
            GetViaIdentity = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Get-MgOnPremisPublishingProfileAgent_GetViaIdentity';
            List = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Get-MgOnPremisPublishingProfileAgent_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 onPremisesPublishingProfiles by key
.Description
Get entity from onPremisesPublishingProfiles 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.IIdentityOnPremisesPublishingProfilesIdentity
.Outputs
Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesPublishingProfile
.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 <IIdentityOnPremisesPublishingProfilesIdentity>: Identity Parameter
  [OnPremisesAgentGroupId <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentGroupId1 <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentId <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesAgentId1 <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesPublishingProfileId <String>]: key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
  [PublishedResourceId <String>]: key: publishedResource-id of publishedResource
  [PublishedResourceId1 <String>]: key: publishedResource-id of publishedResource
.Link
https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.onpremisespublishingprofiles/get-mgonpremispublishingprofileonpremispublishingprofileonpremispublishingprofile
#>

function Get-MgOnPremisPublishingProfileOnPremisPublishingProfileOnPremisPublishingProfile {
[OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesPublishingProfile])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
    [Parameter(ParameterSetName='Get', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
    ${OnPremisesPublishingProfileId},

    [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity]
    # 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')]
    [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}
)

begin {
    try {
        $outBuffer = $null
        if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
            $PSBoundParameters['OutBuffer'] = 1
        }
        $parameterSet = $PSCmdlet.ParameterSetName
        $mapping = @{
            Get = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Get-MgOnPremisPublishingProfileOnPremisPublishingProfileOnPremisPublishingProfile_Get';
            GetViaIdentity = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Get-MgOnPremisPublishingProfileOnPremisPublishingProfileOnPremisPublishingProfile_GetViaIdentity';
            List = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Get-MgOnPremisPublishingProfileOnPremisPublishingProfileOnPremisPublishingProfile_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 agents from onPremisesPublishingProfiles
.Description
Get agents from onPremisesPublishingProfiles
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
 
.Inputs
Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity
.Outputs
Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgent
.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 <IIdentityOnPremisesPublishingProfilesIdentity>: Identity Parameter
  [OnPremisesAgentGroupId <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentGroupId1 <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentId <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesAgentId1 <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesPublishingProfileId <String>]: key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
  [PublishedResourceId <String>]: key: publishedResource-id of publishedResource
  [PublishedResourceId1 <String>]: key: publishedResource-id of publishedResource
.Link
https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.onpremisespublishingprofiles/get-mgonpremispublishingprofilepublishedresourceagentgroupagent
#>

function Get-MgOnPremisPublishingProfilePublishedResourceAgentGroupAgent {
[OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgent])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
    [Parameter(ParameterSetName='Get', Mandatory)]
    [Parameter(ParameterSetName='List', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesAgentGroup-id of onPremisesAgentGroup
    ${OnPremisesAgentGroupId},

    [Parameter(ParameterSetName='Get', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesAgent-id of onPremisesAgent
    ${OnPremisesAgentId},

    [Parameter(ParameterSetName='Get', Mandatory)]
    [Parameter(ParameterSetName='List', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
    ${OnPremisesPublishingProfileId},

    [Parameter(ParameterSetName='Get', Mandatory)]
    [Parameter(ParameterSetName='List', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: publishedResource-id of publishedResource
    ${PublishedResourceId},

    [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity]
    # 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')]
    [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}
)

begin {
    try {
        $outBuffer = $null
        if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
            $PSBoundParameters['OutBuffer'] = 1
        }
        $parameterSet = $PSCmdlet.ParameterSetName
        $mapping = @{
            Get = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Get-MgOnPremisPublishingProfilePublishedResourceAgentGroupAgent_Get';
            GetViaIdentity = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Get-MgOnPremisPublishingProfilePublishedResourceAgentGroupAgent_GetViaIdentity';
            List = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Get-MgOnPremisPublishingProfilePublishedResourceAgentGroupAgent_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 publishedResources from onPremisesPublishingProfiles
.Description
Get publishedResources from onPremisesPublishingProfiles
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
 
.Inputs
Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity
.Outputs
Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPublishedResource
.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 <IIdentityOnPremisesPublishingProfilesIdentity>: Identity Parameter
  [OnPremisesAgentGroupId <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentGroupId1 <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentId <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesAgentId1 <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesPublishingProfileId <String>]: key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
  [PublishedResourceId <String>]: key: publishedResource-id of publishedResource
  [PublishedResourceId1 <String>]: key: publishedResource-id of publishedResource
.Link
https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.onpremisespublishingprofiles/get-mgonpremispublishingprofilepublishedresourceagentgrouppublishedresource
#>

function Get-MgOnPremisPublishingProfilePublishedResourceAgentGroupPublishedResource {
[OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPublishedResource])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
    [Parameter(ParameterSetName='Get', Mandatory)]
    [Parameter(ParameterSetName='List', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesAgentGroup-id of onPremisesAgentGroup
    ${OnPremisesAgentGroupId},

    [Parameter(ParameterSetName='Get', Mandatory)]
    [Parameter(ParameterSetName='List', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
    ${OnPremisesPublishingProfileId},

    [Parameter(ParameterSetName='Get', Mandatory)]
    [Parameter(ParameterSetName='List', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: publishedResource-id of publishedResource
    ${PublishedResourceId},

    [Parameter(ParameterSetName='Get', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: publishedResource-id of publishedResource
    ${PublishedResourceId1},

    [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity]
    # 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')]
    [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}
)

begin {
    try {
        $outBuffer = $null
        if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
            $PSBoundParameters['OutBuffer'] = 1
        }
        $parameterSet = $PSCmdlet.ParameterSetName
        $mapping = @{
            Get = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Get-MgOnPremisPublishingProfilePublishedResourceAgentGroupPublishedResource_Get';
            GetViaIdentity = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Get-MgOnPremisPublishingProfilePublishedResourceAgentGroupPublishedResource_GetViaIdentity';
            List = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Get-MgOnPremisPublishingProfilePublishedResourceAgentGroupPublishedResource_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 agentGroups from onPremisesPublishingProfiles
.Description
Get agentGroups from onPremisesPublishingProfiles
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
 
.Inputs
Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity
.Outputs
Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgentGroup
.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 <IIdentityOnPremisesPublishingProfilesIdentity>: Identity Parameter
  [OnPremisesAgentGroupId <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentGroupId1 <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentId <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesAgentId1 <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesPublishingProfileId <String>]: key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
  [PublishedResourceId <String>]: key: publishedResource-id of publishedResource
  [PublishedResourceId1 <String>]: key: publishedResource-id of publishedResource
.Link
https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.onpremisespublishingprofiles/get-mgonpremispublishingprofilepublishedresourceagentgroup
#>

function Get-MgOnPremisPublishingProfilePublishedResourceAgentGroup {
[OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgentGroup])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
    [Parameter(ParameterSetName='Get', Mandatory)]
    [Parameter(ParameterSetName='Get1', Mandatory)]
    [Parameter(ParameterSetName='List1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesAgentGroup-id of onPremisesAgentGroup
    ${OnPremisesAgentGroupId},

    [Parameter(ParameterSetName='Get', Mandatory)]
    [Parameter(ParameterSetName='Get1', Mandatory)]
    [Parameter(ParameterSetName='List', Mandatory)]
    [Parameter(ParameterSetName='List1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
    ${OnPremisesPublishingProfileId},

    [Parameter(ParameterSetName='Get', Mandatory)]
    [Parameter(ParameterSetName='Get1', Mandatory)]
    [Parameter(ParameterSetName='List', Mandatory)]
    [Parameter(ParameterSetName='List1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: publishedResource-id of publishedResource
    ${PublishedResourceId},

    [Parameter(ParameterSetName='Get1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesAgentGroup-id of onPremisesAgentGroup
    ${OnPremisesAgentGroupId1},

    [Parameter(ParameterSetName='Get1', Mandatory)]
    [Parameter(ParameterSetName='List1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesAgent-id of onPremisesAgent
    ${OnPremisesAgentId},

    [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='GetViaIdentity1', Mandatory, ValueFromPipeline)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity]
    # 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')]
    [Parameter(ParameterSetName='List1')]
    [Microsoft.Graph.PowerShell.Category('Query')]
    [System.Management.Automation.SwitchParameter]
    # Include count of items
    ${Count},

    [Parameter(ParameterSetName='List')]
    [Parameter(ParameterSetName='List1')]
    [Microsoft.Graph.PowerShell.Category('Query')]
    [System.String]
    # Filter items by property values
    ${Filter},

    [Parameter(ParameterSetName='List')]
    [Parameter(ParameterSetName='List1')]
    [Alias('Top')]
    [Microsoft.Graph.PowerShell.Category('Query')]
    [System.Int32]
    # Show only the first n items
    ${PageSize},

    [Parameter(ParameterSetName='List')]
    [Parameter(ParameterSetName='List1')]
    [Microsoft.Graph.PowerShell.Category('Query')]
    [System.String]
    # Search items by search phrases
    ${Search},

    [Parameter(ParameterSetName='List')]
    [Parameter(ParameterSetName='List1')]
    [Microsoft.Graph.PowerShell.Category('Query')]
    [System.Int32]
    # Skip the first n items
    ${Skip},

    [Parameter(ParameterSetName='List')]
    [Parameter(ParameterSetName='List1')]
    [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}
)

begin {
    try {
        $outBuffer = $null
        if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
            $PSBoundParameters['OutBuffer'] = 1
        }
        $parameterSet = $PSCmdlet.ParameterSetName
        $mapping = @{
            Get = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Get-MgOnPremisPublishingProfilePublishedResourceAgentGroup_Get';
            Get1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Get-MgOnPremisPublishingProfilePublishedResourceAgentGroup_Get1';
            GetViaIdentity = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Get-MgOnPremisPublishingProfilePublishedResourceAgentGroup_GetViaIdentity';
            GetViaIdentity1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Get-MgOnPremisPublishingProfilePublishedResourceAgentGroup_GetViaIdentity1';
            List = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Get-MgOnPremisPublishingProfilePublishedResourceAgentGroup_List';
            List1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Get-MgOnPremisPublishingProfilePublishedResourceAgentGroup_List1';
        }
        $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 publishedResources from onPremisesPublishingProfiles
.Description
Get publishedResources from onPremisesPublishingProfiles
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
 
.Inputs
Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity
.Outputs
Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPublishedResource
.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 <IIdentityOnPremisesPublishingProfilesIdentity>: Identity Parameter
  [OnPremisesAgentGroupId <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentGroupId1 <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentId <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesAgentId1 <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesPublishingProfileId <String>]: key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
  [PublishedResourceId <String>]: key: publishedResource-id of publishedResource
  [PublishedResourceId1 <String>]: key: publishedResource-id of publishedResource
.Link
https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.onpremisespublishingprofiles/get-mgonpremispublishingprofilepublishedresource
#>

function Get-MgOnPremisPublishingProfilePublishedResource {
[OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPublishedResource])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
    [Parameter(ParameterSetName='Get', Mandatory)]
    [Parameter(ParameterSetName='List', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
    ${OnPremisesPublishingProfileId},

    [Parameter(ParameterSetName='Get', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: publishedResource-id of publishedResource
    ${PublishedResourceId},

    [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity]
    # 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')]
    [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}
)

begin {
    try {
        $outBuffer = $null
        if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
            $PSBoundParameters['OutBuffer'] = 1
        }
        $parameterSet = $PSCmdlet.ParameterSetName
        $mapping = @{
            Get = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Get-MgOnPremisPublishingProfilePublishedResource_Get';
            GetViaIdentity = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Get-MgOnPremisPublishingProfilePublishedResource_GetViaIdentity';
            List = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Get-MgOnPremisPublishingProfilePublishedResource_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
Create new navigation property to agents for onPremisesPublishingProfiles
.Description
Create new navigation property to agents for onPremisesPublishingProfiles
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
 
.Inputs
Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity
.Inputs
Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgent
.Outputs
Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgent
.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.
 
AGENTGROUPS <IMicrosoftGraphOnPremisesAgentGroup[]>: .
  [Id <String>]: Read-only.
  [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
    [Id <String>]: Read-only.
    [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [ExternalIP <String>]:
    [MachineName <String>]:
    [Status <String>]: agentStatus
    [SupportedPublishingTypes <String[]>]:
  [DisplayName <String>]:
  [IsDefault <Boolean?>]:
  [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
    [Id <String>]: Read-only.
    [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [DisplayName <String>]:
    [PublishingType <String>]: onPremisesPublishingType
    [ResourceName <String>]:
  [PublishingType <String>]: onPremisesPublishingType
 
BODYPARAMETER <IMicrosoftGraphOnPremisesAgent>: onPremisesAgent
  [Id <String>]: Read-only.
  [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [Id <String>]: Read-only.
    [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
    [DisplayName <String>]:
    [IsDefault <Boolean?>]:
    [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
      [Id <String>]: Read-only.
      [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
      [DisplayName <String>]:
      [PublishingType <String>]: onPremisesPublishingType
      [ResourceName <String>]:
    [PublishingType <String>]: onPremisesPublishingType
  [ExternalIP <String>]:
  [MachineName <String>]:
  [Status <String>]: agentStatus
  [SupportedPublishingTypes <String[]>]:
 
INPUTOBJECT <IIdentityOnPremisesPublishingProfilesIdentity>: Identity Parameter
  [OnPremisesAgentGroupId <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentGroupId1 <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentId <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesAgentId1 <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesPublishingProfileId <String>]: key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
  [PublishedResourceId <String>]: key: publishedResource-id of publishedResource
  [PublishedResourceId1 <String>]: key: publishedResource-id of publishedResource
.Link
https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.onpremisespublishingprofiles/new-mgonpremispublishingprofileagentgroupagent
#>

function New-MgOnPremisPublishingProfileAgentGroupAgent {
[OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgent])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
    [Parameter(ParameterSetName='Create', Mandatory)]
    [Parameter(ParameterSetName='Create1', Mandatory)]
    [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
    [Parameter(ParameterSetName='CreateExpanded1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesAgentGroup-id of onPremisesAgentGroup
    ${OnPremisesAgentGroupId},

    [Parameter(ParameterSetName='Create', Mandatory)]
    [Parameter(ParameterSetName='Create1', Mandatory)]
    [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
    [Parameter(ParameterSetName='CreateExpanded1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
    ${OnPremisesPublishingProfileId},

    [Parameter(ParameterSetName='Create1', Mandatory)]
    [Parameter(ParameterSetName='CreateExpanded1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesAgent-id of onPremisesAgent
    ${OnPremisesAgentId},

    [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='CreateViaIdentity1', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded1', Mandatory, ValueFromPipeline)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity]
    # Identity Parameter
    # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
    ${InputObject},

    [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='Create1', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='CreateViaIdentity1', Mandatory, ValueFromPipeline)]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgent]
    # onPremisesAgent
    # To construct, see NOTES section for BODYPARAMETER properties and create a hash table.
    ${BodyParameter},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateExpanded1')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded1')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgentGroup[]]
    # .
    # To construct, see NOTES section for AGENTGROUPS properties and create a hash table.
    ${AgentGroups},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateExpanded1')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded1')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # .
    ${ExternalIP},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateExpanded1')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded1')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # Read-only.
    ${Id},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateExpanded1')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded1')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # .
    ${MachineName},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateExpanded1')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded1')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # agentStatus
    ${Status},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateExpanded1')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded1')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String[]]
    # .
    ${SupportedPublishingTypes},

    [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.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfileAgentGroupAgent_Create';
            Create1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfileAgentGroupAgent_Create1';
            CreateExpanded = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfileAgentGroupAgent_CreateExpanded';
            CreateExpanded1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfileAgentGroupAgent_CreateExpanded1';
            CreateViaIdentity = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfileAgentGroupAgent_CreateViaIdentity';
            CreateViaIdentity1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfileAgentGroupAgent_CreateViaIdentity1';
            CreateViaIdentityExpanded = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfileAgentGroupAgent_CreateViaIdentityExpanded';
            CreateViaIdentityExpanded1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfileAgentGroupAgent_CreateViaIdentityExpanded1';
        }
        $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
Create new navigation property to agentGroups for onPremisesPublishingProfiles
.Description
Create new navigation property to agentGroups for onPremisesPublishingProfiles
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
 
.Inputs
Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity
.Inputs
Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgentGroup
.Outputs
Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgentGroup
.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.
 
AGENTS <IMicrosoftGraphOnPremisesAgent[]>: .
  [Id <String>]: Read-only.
  [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [Id <String>]: Read-only.
    [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
    [DisplayName <String>]:
    [IsDefault <Boolean?>]:
    [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
      [Id <String>]: Read-only.
      [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
      [DisplayName <String>]:
      [PublishingType <String>]: onPremisesPublishingType
      [ResourceName <String>]:
    [PublishingType <String>]: onPremisesPublishingType
  [ExternalIP <String>]:
  [MachineName <String>]:
  [Status <String>]: agentStatus
  [SupportedPublishingTypes <String[]>]:
 
BODYPARAMETER <IMicrosoftGraphOnPremisesAgentGroup>: onPremisesAgentGroup
  [Id <String>]: Read-only.
  [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
    [Id <String>]: Read-only.
    [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [ExternalIP <String>]:
    [MachineName <String>]:
    [Status <String>]: agentStatus
    [SupportedPublishingTypes <String[]>]:
  [DisplayName <String>]:
  [IsDefault <Boolean?>]:
  [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
    [Id <String>]: Read-only.
    [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [DisplayName <String>]:
    [PublishingType <String>]: onPremisesPublishingType
    [ResourceName <String>]:
  [PublishingType <String>]: onPremisesPublishingType
 
INPUTOBJECT <IIdentityOnPremisesPublishingProfilesIdentity>: Identity Parameter
  [OnPremisesAgentGroupId <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentGroupId1 <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentId <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesAgentId1 <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesPublishingProfileId <String>]: key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
  [PublishedResourceId <String>]: key: publishedResource-id of publishedResource
  [PublishedResourceId1 <String>]: key: publishedResource-id of publishedResource
 
PUBLISHEDRESOURCES <IMicrosoftGraphPublishedResource[]>: .
  [Id <String>]: Read-only.
  [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [Id <String>]: Read-only.
    [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
      [Id <String>]: Read-only.
      [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
      [ExternalIP <String>]:
      [MachineName <String>]:
      [Status <String>]: agentStatus
      [SupportedPublishingTypes <String[]>]:
    [DisplayName <String>]:
    [IsDefault <Boolean?>]:
    [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
    [PublishingType <String>]: onPremisesPublishingType
  [DisplayName <String>]:
  [PublishingType <String>]: onPremisesPublishingType
  [ResourceName <String>]:
.Link
https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.onpremisespublishingprofiles/new-mgonpremispublishingprofileagentgrouppublishedresourceagentgroup
#>

function New-MgOnPremisPublishingProfileAgentGroupPublishedResourceAgentGroup {
[OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgentGroup])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
    [Parameter(ParameterSetName='Create', Mandatory)]
    [Parameter(ParameterSetName='Create1', Mandatory)]
    [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
    [Parameter(ParameterSetName='CreateExpanded1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesAgentGroup-id of onPremisesAgentGroup
    ${OnPremisesAgentGroupId},

    [Parameter(ParameterSetName='Create', Mandatory)]
    [Parameter(ParameterSetName='Create1', Mandatory)]
    [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
    [Parameter(ParameterSetName='CreateExpanded1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
    ${OnPremisesPublishingProfileId},

    [Parameter(ParameterSetName='Create', Mandatory)]
    [Parameter(ParameterSetName='Create1', Mandatory)]
    [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
    [Parameter(ParameterSetName='CreateExpanded1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: publishedResource-id of publishedResource
    ${PublishedResourceId},

    [Parameter(ParameterSetName='Create1', Mandatory)]
    [Parameter(ParameterSetName='CreateExpanded1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesAgent-id of onPremisesAgent
    ${OnPremisesAgentId},

    [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='CreateViaIdentity1', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded1', Mandatory, ValueFromPipeline)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity]
    # Identity Parameter
    # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
    ${InputObject},

    [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='Create1', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='CreateViaIdentity1', Mandatory, ValueFromPipeline)]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgentGroup]
    # onPremisesAgentGroup
    # To construct, see NOTES section for BODYPARAMETER properties and create a hash table.
    ${BodyParameter},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateExpanded1')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded1')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgent[]]
    # .
    # To construct, see NOTES section for AGENTS properties and create a hash table.
    ${Agents},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateExpanded1')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded1')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # .
    ${DisplayName},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateExpanded1')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded1')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # Read-only.
    ${Id},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateExpanded1')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded1')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.Management.Automation.SwitchParameter]
    # .
    ${IsDefault},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateExpanded1')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded1')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPublishedResource[]]
    # .
    # To construct, see NOTES section for PUBLISHEDRESOURCES properties and create a hash table.
    ${PublishedResources},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateExpanded1')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded1')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # onPremisesPublishingType
    ${PublishingType},

    [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.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfileAgentGroupPublishedResourceAgentGroup_Create';
            Create1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfileAgentGroupPublishedResourceAgentGroup_Create1';
            CreateExpanded = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfileAgentGroupPublishedResourceAgentGroup_CreateExpanded';
            CreateExpanded1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfileAgentGroupPublishedResourceAgentGroup_CreateExpanded1';
            CreateViaIdentity = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfileAgentGroupPublishedResourceAgentGroup_CreateViaIdentity';
            CreateViaIdentity1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfileAgentGroupPublishedResourceAgentGroup_CreateViaIdentity1';
            CreateViaIdentityExpanded = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfileAgentGroupPublishedResourceAgentGroup_CreateViaIdentityExpanded';
            CreateViaIdentityExpanded1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfileAgentGroupPublishedResourceAgentGroup_CreateViaIdentityExpanded1';
        }
        $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
Create new navigation property to publishedResources for onPremisesPublishingProfiles
.Description
Create new navigation property to publishedResources for onPremisesPublishingProfiles
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
 
.Inputs
Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity
.Inputs
Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPublishedResource
.Outputs
Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPublishedResource
.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.
 
AGENTGROUPS <IMicrosoftGraphOnPremisesAgentGroup[]>: .
  [Id <String>]: Read-only.
  [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
    [Id <String>]: Read-only.
    [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [ExternalIP <String>]:
    [MachineName <String>]:
    [Status <String>]: agentStatus
    [SupportedPublishingTypes <String[]>]:
  [DisplayName <String>]:
  [IsDefault <Boolean?>]:
  [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
    [Id <String>]: Read-only.
    [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [DisplayName <String>]:
    [PublishingType <String>]: onPremisesPublishingType
    [ResourceName <String>]:
  [PublishingType <String>]: onPremisesPublishingType
 
BODYPARAMETER <IMicrosoftGraphPublishedResource>: publishedResource
  [Id <String>]: Read-only.
  [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [Id <String>]: Read-only.
    [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
      [Id <String>]: Read-only.
      [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
      [ExternalIP <String>]:
      [MachineName <String>]:
      [Status <String>]: agentStatus
      [SupportedPublishingTypes <String[]>]:
    [DisplayName <String>]:
    [IsDefault <Boolean?>]:
    [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
    [PublishingType <String>]: onPremisesPublishingType
  [DisplayName <String>]:
  [PublishingType <String>]: onPremisesPublishingType
  [ResourceName <String>]:
 
INPUTOBJECT <IIdentityOnPremisesPublishingProfilesIdentity>: Identity Parameter
  [OnPremisesAgentGroupId <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentGroupId1 <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentId <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesAgentId1 <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesPublishingProfileId <String>]: key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
  [PublishedResourceId <String>]: key: publishedResource-id of publishedResource
  [PublishedResourceId1 <String>]: key: publishedResource-id of publishedResource
.Link
https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.onpremisespublishingprofiles/new-mgonpremispublishingprofileagentgrouppublishedresource
#>

function New-MgOnPremisPublishingProfileAgentGroupPublishedResource {
[OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPublishedResource])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
    [Parameter(ParameterSetName='Create', Mandatory)]
    [Parameter(ParameterSetName='Create1', Mandatory)]
    [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
    [Parameter(ParameterSetName='CreateExpanded1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesAgentGroup-id of onPremisesAgentGroup
    ${OnPremisesAgentGroupId},

    [Parameter(ParameterSetName='Create', Mandatory)]
    [Parameter(ParameterSetName='Create1', Mandatory)]
    [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
    [Parameter(ParameterSetName='CreateExpanded1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
    ${OnPremisesPublishingProfileId},

    [Parameter(ParameterSetName='Create1', Mandatory)]
    [Parameter(ParameterSetName='CreateExpanded1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesAgent-id of onPremisesAgent
    ${OnPremisesAgentId},

    [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='CreateViaIdentity1', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded1', Mandatory, ValueFromPipeline)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity]
    # Identity Parameter
    # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
    ${InputObject},

    [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='Create1', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='CreateViaIdentity1', Mandatory, ValueFromPipeline)]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPublishedResource]
    # publishedResource
    # To construct, see NOTES section for BODYPARAMETER properties and create a hash table.
    ${BodyParameter},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateExpanded1')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded1')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgentGroup[]]
    # .
    # To construct, see NOTES section for AGENTGROUPS properties and create a hash table.
    ${AgentGroups},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateExpanded1')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded1')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # .
    ${DisplayName},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateExpanded1')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded1')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # Read-only.
    ${Id},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateExpanded1')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded1')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # onPremisesPublishingType
    ${PublishingType},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateExpanded1')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded1')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # .
    ${ResourceName},

    [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.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfileAgentGroupPublishedResource_Create';
            Create1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfileAgentGroupPublishedResource_Create1';
            CreateExpanded = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfileAgentGroupPublishedResource_CreateExpanded';
            CreateExpanded1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfileAgentGroupPublishedResource_CreateExpanded1';
            CreateViaIdentity = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfileAgentGroupPublishedResource_CreateViaIdentity';
            CreateViaIdentity1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfileAgentGroupPublishedResource_CreateViaIdentity1';
            CreateViaIdentityExpanded = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfileAgentGroupPublishedResource_CreateViaIdentityExpanded';
            CreateViaIdentityExpanded1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfileAgentGroupPublishedResource_CreateViaIdentityExpanded1';
        }
        $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
Create new navigation property to agentGroups for onPremisesPublishingProfiles
.Description
Create new navigation property to agentGroups for onPremisesPublishingProfiles
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
 
.Inputs
Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity
.Inputs
Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgentGroup
.Outputs
Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgentGroup
.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.
 
AGENTS <IMicrosoftGraphOnPremisesAgent[]>: .
  [Id <String>]: Read-only.
  [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [Id <String>]: Read-only.
    [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
    [DisplayName <String>]:
    [IsDefault <Boolean?>]:
    [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
      [Id <String>]: Read-only.
      [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
      [DisplayName <String>]:
      [PublishingType <String>]: onPremisesPublishingType
      [ResourceName <String>]:
    [PublishingType <String>]: onPremisesPublishingType
  [ExternalIP <String>]:
  [MachineName <String>]:
  [Status <String>]: agentStatus
  [SupportedPublishingTypes <String[]>]:
 
BODYPARAMETER <IMicrosoftGraphOnPremisesAgentGroup>: onPremisesAgentGroup
  [Id <String>]: Read-only.
  [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
    [Id <String>]: Read-only.
    [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [ExternalIP <String>]:
    [MachineName <String>]:
    [Status <String>]: agentStatus
    [SupportedPublishingTypes <String[]>]:
  [DisplayName <String>]:
  [IsDefault <Boolean?>]:
  [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
    [Id <String>]: Read-only.
    [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [DisplayName <String>]:
    [PublishingType <String>]: onPremisesPublishingType
    [ResourceName <String>]:
  [PublishingType <String>]: onPremisesPublishingType
 
INPUTOBJECT <IIdentityOnPremisesPublishingProfilesIdentity>: Identity Parameter
  [OnPremisesAgentGroupId <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentGroupId1 <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentId <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesAgentId1 <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesPublishingProfileId <String>]: key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
  [PublishedResourceId <String>]: key: publishedResource-id of publishedResource
  [PublishedResourceId1 <String>]: key: publishedResource-id of publishedResource
 
PUBLISHEDRESOURCES <IMicrosoftGraphPublishedResource[]>: .
  [Id <String>]: Read-only.
  [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [Id <String>]: Read-only.
    [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
      [Id <String>]: Read-only.
      [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
      [ExternalIP <String>]:
      [MachineName <String>]:
      [Status <String>]: agentStatus
      [SupportedPublishingTypes <String[]>]:
    [DisplayName <String>]:
    [IsDefault <Boolean?>]:
    [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
    [PublishingType <String>]: onPremisesPublishingType
  [DisplayName <String>]:
  [PublishingType <String>]: onPremisesPublishingType
  [ResourceName <String>]:
.Link
https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.onpremisespublishingprofiles/new-mgonpremispublishingprofileagentgroup
#>

function New-MgOnPremisPublishingProfileAgentGroup {
[OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgentGroup])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded2', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
    [Parameter(ParameterSetName='Create', Mandatory)]
    [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesAgentGroup-id of onPremisesAgentGroup
    ${OnPremisesAgentGroupId},

    [Parameter(ParameterSetName='Create', Mandatory)]
    [Parameter(ParameterSetName='Create1', Mandatory)]
    [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
    [Parameter(ParameterSetName='CreateExpanded1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesAgent-id of onPremisesAgent
    ${OnPremisesAgentId},

    [Parameter(ParameterSetName='Create', Mandatory)]
    [Parameter(ParameterSetName='Create1', Mandatory)]
    [Parameter(ParameterSetName='Create2', Mandatory)]
    [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
    [Parameter(ParameterSetName='CreateExpanded1', Mandatory)]
    [Parameter(ParameterSetName='CreateExpanded2', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
    ${OnPremisesPublishingProfileId},

    [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='CreateViaIdentity1', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='CreateViaIdentity2', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded1', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded2', Mandatory, ValueFromPipeline)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity]
    # Identity Parameter
    # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
    ${InputObject},

    [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='Create1', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='Create2', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='CreateViaIdentity1', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='CreateViaIdentity2', Mandatory, ValueFromPipeline)]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgentGroup]
    # onPremisesAgentGroup
    # To construct, see NOTES section for BODYPARAMETER properties and create a hash table.
    ${BodyParameter},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateExpanded1')]
    [Parameter(ParameterSetName='CreateExpanded2')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded1')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded2')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgent[]]
    # .
    # To construct, see NOTES section for AGENTS properties and create a hash table.
    ${Agents},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateExpanded1')]
    [Parameter(ParameterSetName='CreateExpanded2')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded1')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded2')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # .
    ${DisplayName},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateExpanded1')]
    [Parameter(ParameterSetName='CreateExpanded2')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded1')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded2')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # Read-only.
    ${Id},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateExpanded1')]
    [Parameter(ParameterSetName='CreateExpanded2')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded1')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded2')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.Management.Automation.SwitchParameter]
    # .
    ${IsDefault},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateExpanded1')]
    [Parameter(ParameterSetName='CreateExpanded2')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded1')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded2')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPublishedResource[]]
    # .
    # To construct, see NOTES section for PUBLISHEDRESOURCES properties and create a hash table.
    ${PublishedResources},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateExpanded1')]
    [Parameter(ParameterSetName='CreateExpanded2')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded1')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded2')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # onPremisesPublishingType
    ${PublishingType},

    [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.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfileAgentGroup_Create';
            Create1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfileAgentGroup_Create1';
            Create2 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfileAgentGroup_Create2';
            CreateExpanded = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfileAgentGroup_CreateExpanded';
            CreateExpanded1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfileAgentGroup_CreateExpanded1';
            CreateExpanded2 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfileAgentGroup_CreateExpanded2';
            CreateViaIdentity = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfileAgentGroup_CreateViaIdentity';
            CreateViaIdentity1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfileAgentGroup_CreateViaIdentity1';
            CreateViaIdentity2 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfileAgentGroup_CreateViaIdentity2';
            CreateViaIdentityExpanded = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfileAgentGroup_CreateViaIdentityExpanded';
            CreateViaIdentityExpanded1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfileAgentGroup_CreateViaIdentityExpanded1';
            CreateViaIdentityExpanded2 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfileAgentGroup_CreateViaIdentityExpanded2';
        }
        $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
Create new navigation property to agents for onPremisesPublishingProfiles
.Description
Create new navigation property to agents for onPremisesPublishingProfiles
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
 
.Inputs
Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity
.Inputs
Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgent
.Outputs
Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgent
.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.
 
AGENTGROUPS <IMicrosoftGraphOnPremisesAgentGroup[]>: .
  [Id <String>]: Read-only.
  [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
    [Id <String>]: Read-only.
    [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [ExternalIP <String>]:
    [MachineName <String>]:
    [Status <String>]: agentStatus
    [SupportedPublishingTypes <String[]>]:
  [DisplayName <String>]:
  [IsDefault <Boolean?>]:
  [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
    [Id <String>]: Read-only.
    [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [DisplayName <String>]:
    [PublishingType <String>]: onPremisesPublishingType
    [ResourceName <String>]:
  [PublishingType <String>]: onPremisesPublishingType
 
BODYPARAMETER <IMicrosoftGraphOnPremisesAgent>: onPremisesAgent
  [Id <String>]: Read-only.
  [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [Id <String>]: Read-only.
    [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
    [DisplayName <String>]:
    [IsDefault <Boolean?>]:
    [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
      [Id <String>]: Read-only.
      [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
      [DisplayName <String>]:
      [PublishingType <String>]: onPremisesPublishingType
      [ResourceName <String>]:
    [PublishingType <String>]: onPremisesPublishingType
  [ExternalIP <String>]:
  [MachineName <String>]:
  [Status <String>]: agentStatus
  [SupportedPublishingTypes <String[]>]:
 
INPUTOBJECT <IIdentityOnPremisesPublishingProfilesIdentity>: Identity Parameter
  [OnPremisesAgentGroupId <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentGroupId1 <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentId <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesAgentId1 <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesPublishingProfileId <String>]: key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
  [PublishedResourceId <String>]: key: publishedResource-id of publishedResource
  [PublishedResourceId1 <String>]: key: publishedResource-id of publishedResource
.Link
https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.onpremisespublishingprofiles/new-mgonpremispublishingprofileagent
#>

function New-MgOnPremisPublishingProfileAgent {
[OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgent])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
    [Parameter(ParameterSetName='Create', Mandatory)]
    [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
    ${OnPremisesPublishingProfileId},

    [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity]
    # Identity Parameter
    # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
    ${InputObject},

    [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgent]
    # onPremisesAgent
    # To construct, see NOTES section for BODYPARAMETER properties and create a hash table.
    ${BodyParameter},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgentGroup[]]
    # .
    # To construct, see NOTES section for AGENTGROUPS properties and create a hash table.
    ${AgentGroups},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # .
    ${ExternalIP},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # Read-only.
    ${Id},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # .
    ${MachineName},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # agentStatus
    ${Status},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String[]]
    # .
    ${SupportedPublishingTypes},

    [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.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfileAgent_Create';
            CreateExpanded = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfileAgent_CreateExpanded';
            CreateViaIdentity = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfileAgent_CreateViaIdentity';
            CreateViaIdentityExpanded = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfileAgent_CreateViaIdentityExpanded';
        }
        $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 onPremisesPublishingProfiles
.Description
Add new entity to onPremisesPublishingProfiles
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
 
.Inputs
Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesPublishingProfile
.Outputs
Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesPublishingProfile
.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.
 
AGENTGROUPS <IMicrosoftGraphOnPremisesAgentGroup[]>: .
  [Id <String>]: Read-only.
  [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
    [Id <String>]: Read-only.
    [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [ExternalIP <String>]:
    [MachineName <String>]:
    [Status <String>]: agentStatus
    [SupportedPublishingTypes <String[]>]:
  [DisplayName <String>]:
  [IsDefault <Boolean?>]:
  [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
    [Id <String>]: Read-only.
    [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [DisplayName <String>]:
    [PublishingType <String>]: onPremisesPublishingType
    [ResourceName <String>]:
  [PublishingType <String>]: onPremisesPublishingType
 
AGENTS <IMicrosoftGraphOnPremisesAgent[]>: .
  [Id <String>]: Read-only.
  [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [Id <String>]: Read-only.
    [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
    [DisplayName <String>]:
    [IsDefault <Boolean?>]:
    [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
      [Id <String>]: Read-only.
      [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
      [DisplayName <String>]:
      [PublishingType <String>]: onPremisesPublishingType
      [ResourceName <String>]:
    [PublishingType <String>]: onPremisesPublishingType
  [ExternalIP <String>]:
  [MachineName <String>]:
  [Status <String>]: agentStatus
  [SupportedPublishingTypes <String[]>]:
 
BODYPARAMETER <IMicrosoftGraphOnPremisesPublishingProfile>: onPremisesPublishingProfile
  [Id <String>]: Read-only.
  [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [Id <String>]: Read-only.
    [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
      [Id <String>]: Read-only.
      [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
      [ExternalIP <String>]:
      [MachineName <String>]:
      [Status <String>]: agentStatus
      [SupportedPublishingTypes <String[]>]:
    [DisplayName <String>]:
    [IsDefault <Boolean?>]:
    [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
      [Id <String>]: Read-only.
      [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
      [DisplayName <String>]:
      [PublishingType <String>]: onPremisesPublishingType
      [ResourceName <String>]:
    [PublishingType <String>]: onPremisesPublishingType
  [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
  [HybridAgentUpdaterConfigurationAllowUpdateConfigurationOverride <Boolean?>]:
  [HybridAgentUpdaterConfigurationDeferUpdateDateTime <DateTime?>]:
  [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
  [UpdateWindowEndTime <String>]:
  [UpdateWindowStartTime <String>]:
 
PUBLISHEDRESOURCES <IMicrosoftGraphPublishedResource[]>: .
  [Id <String>]: Read-only.
  [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [Id <String>]: Read-only.
    [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
      [Id <String>]: Read-only.
      [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
      [ExternalIP <String>]:
      [MachineName <String>]:
      [Status <String>]: agentStatus
      [SupportedPublishingTypes <String[]>]:
    [DisplayName <String>]:
    [IsDefault <Boolean?>]:
    [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
    [PublishingType <String>]: onPremisesPublishingType
  [DisplayName <String>]:
  [PublishingType <String>]: onPremisesPublishingType
  [ResourceName <String>]:
.Link
https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.onpremisespublishingprofiles/new-mgonpremispublishingprofileonpremispublishingprofileonpremispublishingprofile
#>

function New-MgOnPremisPublishingProfileOnPremisPublishingProfileOnPremisPublishingProfile {
[OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesPublishingProfile])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
    [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesPublishingProfile]
    # onPremisesPublishingProfile
    # 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.IMicrosoftGraphOnPremisesAgentGroup[]]
    # .
    # To construct, see NOTES section for AGENTGROUPS properties and create a hash table.
    ${AgentGroups},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgent[]]
    # .
    # To construct, see NOTES section for AGENTS properties and create a hash table.
    ${Agents},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.Management.Automation.SwitchParameter]
    # .
    ${HybridAgentUpdaterConfigurationAllowUpdateConfigurationOverride},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.DateTime]
    # .
    ${HybridAgentUpdaterConfigurationDeferUpdateDateTime},

    [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.IMicrosoftGraphPublishedResource[]]
    # .
    # To construct, see NOTES section for PUBLISHEDRESOURCES properties and create a hash table.
    ${PublishedResources},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # .
    ${UpdateWindowEndTime},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # .
    ${UpdateWindowStartTime},

    [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.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfileOnPremisPublishingProfileOnPremisPublishingProfile_Create';
            CreateExpanded = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfileOnPremisPublishingProfileOnPremisPublishingProfile_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
Create new navigation property to agents for onPremisesPublishingProfiles
.Description
Create new navigation property to agents for onPremisesPublishingProfiles
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
 
.Inputs
Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity
.Inputs
Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgent
.Outputs
Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgent
.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.
 
AGENTGROUPS <IMicrosoftGraphOnPremisesAgentGroup[]>: .
  [Id <String>]: Read-only.
  [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
    [Id <String>]: Read-only.
    [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [ExternalIP <String>]:
    [MachineName <String>]:
    [Status <String>]: agentStatus
    [SupportedPublishingTypes <String[]>]:
  [DisplayName <String>]:
  [IsDefault <Boolean?>]:
  [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
    [Id <String>]: Read-only.
    [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [DisplayName <String>]:
    [PublishingType <String>]: onPremisesPublishingType
    [ResourceName <String>]:
  [PublishingType <String>]: onPremisesPublishingType
 
BODYPARAMETER <IMicrosoftGraphOnPremisesAgent>: onPremisesAgent
  [Id <String>]: Read-only.
  [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [Id <String>]: Read-only.
    [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
    [DisplayName <String>]:
    [IsDefault <Boolean?>]:
    [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
      [Id <String>]: Read-only.
      [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
      [DisplayName <String>]:
      [PublishingType <String>]: onPremisesPublishingType
      [ResourceName <String>]:
    [PublishingType <String>]: onPremisesPublishingType
  [ExternalIP <String>]:
  [MachineName <String>]:
  [Status <String>]: agentStatus
  [SupportedPublishingTypes <String[]>]:
 
INPUTOBJECT <IIdentityOnPremisesPublishingProfilesIdentity>: Identity Parameter
  [OnPremisesAgentGroupId <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentGroupId1 <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentId <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesAgentId1 <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesPublishingProfileId <String>]: key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
  [PublishedResourceId <String>]: key: publishedResource-id of publishedResource
  [PublishedResourceId1 <String>]: key: publishedResource-id of publishedResource
.Link
https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.onpremisespublishingprofiles/new-mgonpremispublishingprofilepublishedresourceagentgroupagent
#>

function New-MgOnPremisPublishingProfilePublishedResourceAgentGroupAgent {
[OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgent])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
    [Parameter(ParameterSetName='Create', Mandatory)]
    [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesAgentGroup-id of onPremisesAgentGroup
    ${OnPremisesAgentGroupId},

    [Parameter(ParameterSetName='Create', Mandatory)]
    [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
    ${OnPremisesPublishingProfileId},

    [Parameter(ParameterSetName='Create', Mandatory)]
    [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: publishedResource-id of publishedResource
    ${PublishedResourceId},

    [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity]
    # Identity Parameter
    # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
    ${InputObject},

    [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgent]
    # onPremisesAgent
    # To construct, see NOTES section for BODYPARAMETER properties and create a hash table.
    ${BodyParameter},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgentGroup[]]
    # .
    # To construct, see NOTES section for AGENTGROUPS properties and create a hash table.
    ${AgentGroups},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # .
    ${ExternalIP},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # Read-only.
    ${Id},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # .
    ${MachineName},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # agentStatus
    ${Status},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String[]]
    # .
    ${SupportedPublishingTypes},

    [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.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfilePublishedResourceAgentGroupAgent_Create';
            CreateExpanded = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfilePublishedResourceAgentGroupAgent_CreateExpanded';
            CreateViaIdentity = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfilePublishedResourceAgentGroupAgent_CreateViaIdentity';
            CreateViaIdentityExpanded = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfilePublishedResourceAgentGroupAgent_CreateViaIdentityExpanded';
        }
        $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
Create new navigation property to publishedResources for onPremisesPublishingProfiles
.Description
Create new navigation property to publishedResources for onPremisesPublishingProfiles
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
 
.Inputs
Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity
.Inputs
Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPublishedResource
.Outputs
Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPublishedResource
.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.
 
AGENTGROUPS <IMicrosoftGraphOnPremisesAgentGroup[]>: .
  [Id <String>]: Read-only.
  [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
    [Id <String>]: Read-only.
    [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [ExternalIP <String>]:
    [MachineName <String>]:
    [Status <String>]: agentStatus
    [SupportedPublishingTypes <String[]>]:
  [DisplayName <String>]:
  [IsDefault <Boolean?>]:
  [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
    [Id <String>]: Read-only.
    [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [DisplayName <String>]:
    [PublishingType <String>]: onPremisesPublishingType
    [ResourceName <String>]:
  [PublishingType <String>]: onPremisesPublishingType
 
BODYPARAMETER <IMicrosoftGraphPublishedResource>: publishedResource
  [Id <String>]: Read-only.
  [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [Id <String>]: Read-only.
    [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
      [Id <String>]: Read-only.
      [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
      [ExternalIP <String>]:
      [MachineName <String>]:
      [Status <String>]: agentStatus
      [SupportedPublishingTypes <String[]>]:
    [DisplayName <String>]:
    [IsDefault <Boolean?>]:
    [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
    [PublishingType <String>]: onPremisesPublishingType
  [DisplayName <String>]:
  [PublishingType <String>]: onPremisesPublishingType
  [ResourceName <String>]:
 
INPUTOBJECT <IIdentityOnPremisesPublishingProfilesIdentity>: Identity Parameter
  [OnPremisesAgentGroupId <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentGroupId1 <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentId <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesAgentId1 <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesPublishingProfileId <String>]: key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
  [PublishedResourceId <String>]: key: publishedResource-id of publishedResource
  [PublishedResourceId1 <String>]: key: publishedResource-id of publishedResource
.Link
https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.onpremisespublishingprofiles/new-mgonpremispublishingprofilepublishedresourceagentgrouppublishedresource
#>

function New-MgOnPremisPublishingProfilePublishedResourceAgentGroupPublishedResource {
[OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPublishedResource])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
    [Parameter(ParameterSetName='Create', Mandatory)]
    [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesAgentGroup-id of onPremisesAgentGroup
    ${OnPremisesAgentGroupId},

    [Parameter(ParameterSetName='Create', Mandatory)]
    [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
    ${OnPremisesPublishingProfileId},

    [Parameter(ParameterSetName='Create', Mandatory)]
    [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: publishedResource-id of publishedResource
    ${PublishedResourceId},

    [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity]
    # Identity Parameter
    # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
    ${InputObject},

    [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPublishedResource]
    # publishedResource
    # To construct, see NOTES section for BODYPARAMETER properties and create a hash table.
    ${BodyParameter},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgentGroup[]]
    # .
    # To construct, see NOTES section for AGENTGROUPS properties and create a hash table.
    ${AgentGroups},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # .
    ${DisplayName},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # Read-only.
    ${Id},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # onPremisesPublishingType
    ${PublishingType},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # .
    ${ResourceName},

    [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.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfilePublishedResourceAgentGroupPublishedResource_Create';
            CreateExpanded = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfilePublishedResourceAgentGroupPublishedResource_CreateExpanded';
            CreateViaIdentity = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfilePublishedResourceAgentGroupPublishedResource_CreateViaIdentity';
            CreateViaIdentityExpanded = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfilePublishedResourceAgentGroupPublishedResource_CreateViaIdentityExpanded';
        }
        $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
Create new navigation property to agentGroups for onPremisesPublishingProfiles
.Description
Create new navigation property to agentGroups for onPremisesPublishingProfiles
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
 
.Inputs
Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity
.Inputs
Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgentGroup
.Outputs
Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgentGroup
.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.
 
AGENTS <IMicrosoftGraphOnPremisesAgent[]>: .
  [Id <String>]: Read-only.
  [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [Id <String>]: Read-only.
    [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
    [DisplayName <String>]:
    [IsDefault <Boolean?>]:
    [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
      [Id <String>]: Read-only.
      [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
      [DisplayName <String>]:
      [PublishingType <String>]: onPremisesPublishingType
      [ResourceName <String>]:
    [PublishingType <String>]: onPremisesPublishingType
  [ExternalIP <String>]:
  [MachineName <String>]:
  [Status <String>]: agentStatus
  [SupportedPublishingTypes <String[]>]:
 
BODYPARAMETER <IMicrosoftGraphOnPremisesAgentGroup>: onPremisesAgentGroup
  [Id <String>]: Read-only.
  [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
    [Id <String>]: Read-only.
    [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [ExternalIP <String>]:
    [MachineName <String>]:
    [Status <String>]: agentStatus
    [SupportedPublishingTypes <String[]>]:
  [DisplayName <String>]:
  [IsDefault <Boolean?>]:
  [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
    [Id <String>]: Read-only.
    [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [DisplayName <String>]:
    [PublishingType <String>]: onPremisesPublishingType
    [ResourceName <String>]:
  [PublishingType <String>]: onPremisesPublishingType
 
INPUTOBJECT <IIdentityOnPremisesPublishingProfilesIdentity>: Identity Parameter
  [OnPremisesAgentGroupId <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentGroupId1 <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentId <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesAgentId1 <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesPublishingProfileId <String>]: key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
  [PublishedResourceId <String>]: key: publishedResource-id of publishedResource
  [PublishedResourceId1 <String>]: key: publishedResource-id of publishedResource
 
PUBLISHEDRESOURCES <IMicrosoftGraphPublishedResource[]>: .
  [Id <String>]: Read-only.
  [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [Id <String>]: Read-only.
    [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
      [Id <String>]: Read-only.
      [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
      [ExternalIP <String>]:
      [MachineName <String>]:
      [Status <String>]: agentStatus
      [SupportedPublishingTypes <String[]>]:
    [DisplayName <String>]:
    [IsDefault <Boolean?>]:
    [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
    [PublishingType <String>]: onPremisesPublishingType
  [DisplayName <String>]:
  [PublishingType <String>]: onPremisesPublishingType
  [ResourceName <String>]:
.Link
https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.onpremisespublishingprofiles/new-mgonpremispublishingprofilepublishedresourceagentgroup
#>

function New-MgOnPremisPublishingProfilePublishedResourceAgentGroup {
[OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgentGroup])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
    [Parameter(ParameterSetName='Create', Mandatory)]
    [Parameter(ParameterSetName='Create1', Mandatory)]
    [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
    [Parameter(ParameterSetName='CreateExpanded1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
    ${OnPremisesPublishingProfileId},

    [Parameter(ParameterSetName='Create', Mandatory)]
    [Parameter(ParameterSetName='Create1', Mandatory)]
    [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
    [Parameter(ParameterSetName='CreateExpanded1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: publishedResource-id of publishedResource
    ${PublishedResourceId},

    [Parameter(ParameterSetName='Create1', Mandatory)]
    [Parameter(ParameterSetName='CreateExpanded1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesAgentGroup-id of onPremisesAgentGroup
    ${OnPremisesAgentGroupId},

    [Parameter(ParameterSetName='Create1', Mandatory)]
    [Parameter(ParameterSetName='CreateExpanded1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesAgent-id of onPremisesAgent
    ${OnPremisesAgentId},

    [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='CreateViaIdentity1', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded1', Mandatory, ValueFromPipeline)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity]
    # Identity Parameter
    # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
    ${InputObject},

    [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='Create1', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='CreateViaIdentity1', Mandatory, ValueFromPipeline)]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgentGroup]
    # onPremisesAgentGroup
    # To construct, see NOTES section for BODYPARAMETER properties and create a hash table.
    ${BodyParameter},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateExpanded1')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded1')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgent[]]
    # .
    # To construct, see NOTES section for AGENTS properties and create a hash table.
    ${Agents},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateExpanded1')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded1')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # .
    ${DisplayName},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateExpanded1')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded1')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # Read-only.
    ${Id},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateExpanded1')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded1')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.Management.Automation.SwitchParameter]
    # .
    ${IsDefault},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateExpanded1')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded1')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPublishedResource[]]
    # .
    # To construct, see NOTES section for PUBLISHEDRESOURCES properties and create a hash table.
    ${PublishedResources},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateExpanded1')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded1')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # onPremisesPublishingType
    ${PublishingType},

    [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.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfilePublishedResourceAgentGroup_Create';
            Create1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfilePublishedResourceAgentGroup_Create1';
            CreateExpanded = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfilePublishedResourceAgentGroup_CreateExpanded';
            CreateExpanded1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfilePublishedResourceAgentGroup_CreateExpanded1';
            CreateViaIdentity = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfilePublishedResourceAgentGroup_CreateViaIdentity';
            CreateViaIdentity1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfilePublishedResourceAgentGroup_CreateViaIdentity1';
            CreateViaIdentityExpanded = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfilePublishedResourceAgentGroup_CreateViaIdentityExpanded';
            CreateViaIdentityExpanded1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfilePublishedResourceAgentGroup_CreateViaIdentityExpanded1';
        }
        $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
Create new navigation property to publishedResources for onPremisesPublishingProfiles
.Description
Create new navigation property to publishedResources for onPremisesPublishingProfiles
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
 
.Inputs
Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity
.Inputs
Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPublishedResource
.Outputs
Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPublishedResource
.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.
 
AGENTGROUPS <IMicrosoftGraphOnPremisesAgentGroup[]>: .
  [Id <String>]: Read-only.
  [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
    [Id <String>]: Read-only.
    [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [ExternalIP <String>]:
    [MachineName <String>]:
    [Status <String>]: agentStatus
    [SupportedPublishingTypes <String[]>]:
  [DisplayName <String>]:
  [IsDefault <Boolean?>]:
  [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
    [Id <String>]: Read-only.
    [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [DisplayName <String>]:
    [PublishingType <String>]: onPremisesPublishingType
    [ResourceName <String>]:
  [PublishingType <String>]: onPremisesPublishingType
 
BODYPARAMETER <IMicrosoftGraphPublishedResource>: publishedResource
  [Id <String>]: Read-only.
  [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [Id <String>]: Read-only.
    [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
      [Id <String>]: Read-only.
      [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
      [ExternalIP <String>]:
      [MachineName <String>]:
      [Status <String>]: agentStatus
      [SupportedPublishingTypes <String[]>]:
    [DisplayName <String>]:
    [IsDefault <Boolean?>]:
    [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
    [PublishingType <String>]: onPremisesPublishingType
  [DisplayName <String>]:
  [PublishingType <String>]: onPremisesPublishingType
  [ResourceName <String>]:
 
INPUTOBJECT <IIdentityOnPremisesPublishingProfilesIdentity>: Identity Parameter
  [OnPremisesAgentGroupId <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentGroupId1 <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentId <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesAgentId1 <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesPublishingProfileId <String>]: key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
  [PublishedResourceId <String>]: key: publishedResource-id of publishedResource
  [PublishedResourceId1 <String>]: key: publishedResource-id of publishedResource
.Link
https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.onpremisespublishingprofiles/new-mgonpremispublishingprofilepublishedresource
#>

function New-MgOnPremisPublishingProfilePublishedResource {
[OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPublishedResource])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
    [Parameter(ParameterSetName='Create', Mandatory)]
    [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
    ${OnPremisesPublishingProfileId},

    [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity]
    # Identity Parameter
    # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
    ${InputObject},

    [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPublishedResource]
    # publishedResource
    # To construct, see NOTES section for BODYPARAMETER properties and create a hash table.
    ${BodyParameter},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgentGroup[]]
    # .
    # To construct, see NOTES section for AGENTGROUPS properties and create a hash table.
    ${AgentGroups},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # .
    ${DisplayName},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # Read-only.
    ${Id},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # onPremisesPublishingType
    ${PublishingType},

    [Parameter(ParameterSetName='CreateExpanded')]
    [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # .
    ${ResourceName},

    [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.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfilePublishedResource_Create';
            CreateExpanded = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfilePublishedResource_CreateExpanded';
            CreateViaIdentity = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfilePublishedResource_CreateViaIdentity';
            CreateViaIdentityExpanded = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\New-MgOnPremisPublishingProfilePublishedResource_CreateViaIdentityExpanded';
        }
        $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 onPremisesPublishingProfiles
.Description
Delete entity from onPremisesPublishingProfiles
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
 
.Inputs
Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity
.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 <IIdentityOnPremisesPublishingProfilesIdentity>: Identity Parameter
  [OnPremisesAgentGroupId <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentGroupId1 <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentId <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesAgentId1 <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesPublishingProfileId <String>]: key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
  [PublishedResourceId <String>]: key: publishedResource-id of publishedResource
  [PublishedResourceId1 <String>]: key: publishedResource-id of publishedResource
.Link
https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.onpremisespublishingprofiles/remove-mgonpremispublishingprofileonpremispublishingprofileonpremispublishingprofile
#>

function Remove-MgOnPremisPublishingProfileOnPremisPublishingProfileOnPremisPublishingProfile {
[OutputType([System.Boolean])]
[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
    [Parameter(ParameterSetName='Delete', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
    ${OnPremisesPublishingProfileId},

    [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity]
    # 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.OnPremisesPublishingProfiles.private\Remove-MgOnPremisPublishingProfileOnPremisPublishingProfileOnPremisPublishingProfile_Delete';
            DeleteViaIdentity = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Remove-MgOnPremisPublishingProfileOnPremisPublishingProfileOnPremisPublishingProfile_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
Update the navigation property agents in onPremisesPublishingProfiles
.Description
Update the navigation property agents in onPremisesPublishingProfiles
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
 
.Inputs
Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity
.Inputs
Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgent
.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.
 
AGENTGROUPS <IMicrosoftGraphOnPremisesAgentGroup[]>: .
  [Id <String>]: Read-only.
  [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
    [Id <String>]: Read-only.
    [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [ExternalIP <String>]:
    [MachineName <String>]:
    [Status <String>]: agentStatus
    [SupportedPublishingTypes <String[]>]:
  [DisplayName <String>]:
  [IsDefault <Boolean?>]:
  [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
    [Id <String>]: Read-only.
    [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [DisplayName <String>]:
    [PublishingType <String>]: onPremisesPublishingType
    [ResourceName <String>]:
  [PublishingType <String>]: onPremisesPublishingType
 
BODYPARAMETER <IMicrosoftGraphOnPremisesAgent>: onPremisesAgent
  [Id <String>]: Read-only.
  [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [Id <String>]: Read-only.
    [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
    [DisplayName <String>]:
    [IsDefault <Boolean?>]:
    [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
      [Id <String>]: Read-only.
      [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
      [DisplayName <String>]:
      [PublishingType <String>]: onPremisesPublishingType
      [ResourceName <String>]:
    [PublishingType <String>]: onPremisesPublishingType
  [ExternalIP <String>]:
  [MachineName <String>]:
  [Status <String>]: agentStatus
  [SupportedPublishingTypes <String[]>]:
 
INPUTOBJECT <IIdentityOnPremisesPublishingProfilesIdentity>: Identity Parameter
  [OnPremisesAgentGroupId <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentGroupId1 <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentId <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesAgentId1 <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesPublishingProfileId <String>]: key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
  [PublishedResourceId <String>]: key: publishedResource-id of publishedResource
  [PublishedResourceId1 <String>]: key: publishedResource-id of publishedResource
.Link
https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.onpremisespublishingprofiles/update-mgonpremispublishingprofileagentgroupagent
#>

function Update-MgOnPremisPublishingProfileAgentGroupAgent {
[OutputType([System.Boolean])]
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
    [Parameter(ParameterSetName='Update', Mandatory)]
    [Parameter(ParameterSetName='Update1', Mandatory)]
    [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
    [Parameter(ParameterSetName='UpdateExpanded1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesAgentGroup-id of onPremisesAgentGroup
    ${OnPremisesAgentGroupId},

    [Parameter(ParameterSetName='Update', Mandatory)]
    [Parameter(ParameterSetName='Update1', Mandatory)]
    [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
    [Parameter(ParameterSetName='UpdateExpanded1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesAgent-id of onPremisesAgent
    ${OnPremisesAgentId},

    [Parameter(ParameterSetName='Update', Mandatory)]
    [Parameter(ParameterSetName='Update1', Mandatory)]
    [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
    [Parameter(ParameterSetName='UpdateExpanded1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
    ${OnPremisesPublishingProfileId},

    [Parameter(ParameterSetName='Update1', Mandatory)]
    [Parameter(ParameterSetName='UpdateExpanded1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesAgent-id of onPremisesAgent
    ${OnPremisesAgentId1},

    [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='UpdateViaIdentity1', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded1', Mandatory, ValueFromPipeline)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity]
    # Identity Parameter
    # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
    ${InputObject},

    [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='Update1', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='UpdateViaIdentity1', Mandatory, ValueFromPipeline)]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgent]
    # onPremisesAgent
    # To construct, see NOTES section for BODYPARAMETER properties and create a hash table.
    ${BodyParameter},

    [Parameter(ParameterSetName='UpdateExpanded')]
    [Parameter(ParameterSetName='UpdateExpanded1')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgentGroup[]]
    # .
    # To construct, see NOTES section for AGENTGROUPS properties and create a hash table.
    ${AgentGroups},

    [Parameter(ParameterSetName='UpdateExpanded')]
    [Parameter(ParameterSetName='UpdateExpanded1')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # .
    ${ExternalIP},

    [Parameter(ParameterSetName='UpdateExpanded')]
    [Parameter(ParameterSetName='UpdateExpanded1')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # Read-only.
    ${Id},

    [Parameter(ParameterSetName='UpdateExpanded')]
    [Parameter(ParameterSetName='UpdateExpanded1')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # .
    ${MachineName},

    [Parameter(ParameterSetName='UpdateExpanded')]
    [Parameter(ParameterSetName='UpdateExpanded1')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # agentStatus
    ${Status},

    [Parameter(ParameterSetName='UpdateExpanded')]
    [Parameter(ParameterSetName='UpdateExpanded1')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String[]]
    # .
    ${SupportedPublishingTypes},

    [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.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfileAgentGroupAgent_Update';
            Update1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfileAgentGroupAgent_Update1';
            UpdateExpanded = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfileAgentGroupAgent_UpdateExpanded';
            UpdateExpanded1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfileAgentGroupAgent_UpdateExpanded1';
            UpdateViaIdentity = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfileAgentGroupAgent_UpdateViaIdentity';
            UpdateViaIdentity1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfileAgentGroupAgent_UpdateViaIdentity1';
            UpdateViaIdentityExpanded = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfileAgentGroupAgent_UpdateViaIdentityExpanded';
            UpdateViaIdentityExpanded1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfileAgentGroupAgent_UpdateViaIdentityExpanded1';
        }
        $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 agentGroups in onPremisesPublishingProfiles
.Description
Update the navigation property agentGroups in onPremisesPublishingProfiles
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
 
.Inputs
Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity
.Inputs
Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgentGroup
.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.
 
AGENTS <IMicrosoftGraphOnPremisesAgent[]>: .
  [Id <String>]: Read-only.
  [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [Id <String>]: Read-only.
    [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
    [DisplayName <String>]:
    [IsDefault <Boolean?>]:
    [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
      [Id <String>]: Read-only.
      [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
      [DisplayName <String>]:
      [PublishingType <String>]: onPremisesPublishingType
      [ResourceName <String>]:
    [PublishingType <String>]: onPremisesPublishingType
  [ExternalIP <String>]:
  [MachineName <String>]:
  [Status <String>]: agentStatus
  [SupportedPublishingTypes <String[]>]:
 
BODYPARAMETER <IMicrosoftGraphOnPremisesAgentGroup>: onPremisesAgentGroup
  [Id <String>]: Read-only.
  [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
    [Id <String>]: Read-only.
    [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [ExternalIP <String>]:
    [MachineName <String>]:
    [Status <String>]: agentStatus
    [SupportedPublishingTypes <String[]>]:
  [DisplayName <String>]:
  [IsDefault <Boolean?>]:
  [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
    [Id <String>]: Read-only.
    [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [DisplayName <String>]:
    [PublishingType <String>]: onPremisesPublishingType
    [ResourceName <String>]:
  [PublishingType <String>]: onPremisesPublishingType
 
INPUTOBJECT <IIdentityOnPremisesPublishingProfilesIdentity>: Identity Parameter
  [OnPremisesAgentGroupId <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentGroupId1 <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentId <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesAgentId1 <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesPublishingProfileId <String>]: key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
  [PublishedResourceId <String>]: key: publishedResource-id of publishedResource
  [PublishedResourceId1 <String>]: key: publishedResource-id of publishedResource
 
PUBLISHEDRESOURCES <IMicrosoftGraphPublishedResource[]>: .
  [Id <String>]: Read-only.
  [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [Id <String>]: Read-only.
    [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
      [Id <String>]: Read-only.
      [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
      [ExternalIP <String>]:
      [MachineName <String>]:
      [Status <String>]: agentStatus
      [SupportedPublishingTypes <String[]>]:
    [DisplayName <String>]:
    [IsDefault <Boolean?>]:
    [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
    [PublishingType <String>]: onPremisesPublishingType
  [DisplayName <String>]:
  [PublishingType <String>]: onPremisesPublishingType
  [ResourceName <String>]:
.Link
https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.onpremisespublishingprofiles/update-mgonpremispublishingprofileagentgrouppublishedresourceagentgroup
#>

function Update-MgOnPremisPublishingProfileAgentGroupPublishedResourceAgentGroup {
[OutputType([System.Boolean])]
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
    [Parameter(ParameterSetName='Update', Mandatory)]
    [Parameter(ParameterSetName='Update1', Mandatory)]
    [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
    [Parameter(ParameterSetName='UpdateExpanded1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesAgentGroup-id of onPremisesAgentGroup
    ${OnPremisesAgentGroupId},

    [Parameter(ParameterSetName='Update', Mandatory)]
    [Parameter(ParameterSetName='Update1', Mandatory)]
    [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
    [Parameter(ParameterSetName='UpdateExpanded1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesAgentGroup-id of onPremisesAgentGroup
    ${OnPremisesAgentGroupId1},

    [Parameter(ParameterSetName='Update', Mandatory)]
    [Parameter(ParameterSetName='Update1', Mandatory)]
    [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
    [Parameter(ParameterSetName='UpdateExpanded1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
    ${OnPremisesPublishingProfileId},

    [Parameter(ParameterSetName='Update', Mandatory)]
    [Parameter(ParameterSetName='Update1', Mandatory)]
    [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
    [Parameter(ParameterSetName='UpdateExpanded1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: publishedResource-id of publishedResource
    ${PublishedResourceId},

    [Parameter(ParameterSetName='Update1', Mandatory)]
    [Parameter(ParameterSetName='UpdateExpanded1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesAgent-id of onPremisesAgent
    ${OnPremisesAgentId},

    [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='UpdateViaIdentity1', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded1', Mandatory, ValueFromPipeline)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity]
    # Identity Parameter
    # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
    ${InputObject},

    [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='Update1', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='UpdateViaIdentity1', Mandatory, ValueFromPipeline)]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgentGroup]
    # onPremisesAgentGroup
    # To construct, see NOTES section for BODYPARAMETER properties and create a hash table.
    ${BodyParameter},

    [Parameter(ParameterSetName='UpdateExpanded')]
    [Parameter(ParameterSetName='UpdateExpanded1')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgent[]]
    # .
    # To construct, see NOTES section for AGENTS properties and create a hash table.
    ${Agents},

    [Parameter(ParameterSetName='UpdateExpanded')]
    [Parameter(ParameterSetName='UpdateExpanded1')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # .
    ${DisplayName},

    [Parameter(ParameterSetName='UpdateExpanded')]
    [Parameter(ParameterSetName='UpdateExpanded1')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # Read-only.
    ${Id},

    [Parameter(ParameterSetName='UpdateExpanded')]
    [Parameter(ParameterSetName='UpdateExpanded1')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.Management.Automation.SwitchParameter]
    # .
    ${IsDefault},

    [Parameter(ParameterSetName='UpdateExpanded')]
    [Parameter(ParameterSetName='UpdateExpanded1')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPublishedResource[]]
    # .
    # To construct, see NOTES section for PUBLISHEDRESOURCES properties and create a hash table.
    ${PublishedResources},

    [Parameter(ParameterSetName='UpdateExpanded')]
    [Parameter(ParameterSetName='UpdateExpanded1')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # onPremisesPublishingType
    ${PublishingType},

    [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.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfileAgentGroupPublishedResourceAgentGroup_Update';
            Update1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfileAgentGroupPublishedResourceAgentGroup_Update1';
            UpdateExpanded = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfileAgentGroupPublishedResourceAgentGroup_UpdateExpanded';
            UpdateExpanded1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfileAgentGroupPublishedResourceAgentGroup_UpdateExpanded1';
            UpdateViaIdentity = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfileAgentGroupPublishedResourceAgentGroup_UpdateViaIdentity';
            UpdateViaIdentity1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfileAgentGroupPublishedResourceAgentGroup_UpdateViaIdentity1';
            UpdateViaIdentityExpanded = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfileAgentGroupPublishedResourceAgentGroup_UpdateViaIdentityExpanded';
            UpdateViaIdentityExpanded1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfileAgentGroupPublishedResourceAgentGroup_UpdateViaIdentityExpanded1';
        }
        $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 publishedResources in onPremisesPublishingProfiles
.Description
Update the navigation property publishedResources in onPremisesPublishingProfiles
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
 
.Inputs
Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity
.Inputs
Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPublishedResource
.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.
 
AGENTGROUPS <IMicrosoftGraphOnPremisesAgentGroup[]>: .
  [Id <String>]: Read-only.
  [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
    [Id <String>]: Read-only.
    [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [ExternalIP <String>]:
    [MachineName <String>]:
    [Status <String>]: agentStatus
    [SupportedPublishingTypes <String[]>]:
  [DisplayName <String>]:
  [IsDefault <Boolean?>]:
  [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
    [Id <String>]: Read-only.
    [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [DisplayName <String>]:
    [PublishingType <String>]: onPremisesPublishingType
    [ResourceName <String>]:
  [PublishingType <String>]: onPremisesPublishingType
 
BODYPARAMETER <IMicrosoftGraphPublishedResource>: publishedResource
  [Id <String>]: Read-only.
  [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [Id <String>]: Read-only.
    [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
      [Id <String>]: Read-only.
      [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
      [ExternalIP <String>]:
      [MachineName <String>]:
      [Status <String>]: agentStatus
      [SupportedPublishingTypes <String[]>]:
    [DisplayName <String>]:
    [IsDefault <Boolean?>]:
    [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
    [PublishingType <String>]: onPremisesPublishingType
  [DisplayName <String>]:
  [PublishingType <String>]: onPremisesPublishingType
  [ResourceName <String>]:
 
INPUTOBJECT <IIdentityOnPremisesPublishingProfilesIdentity>: Identity Parameter
  [OnPremisesAgentGroupId <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentGroupId1 <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentId <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesAgentId1 <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesPublishingProfileId <String>]: key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
  [PublishedResourceId <String>]: key: publishedResource-id of publishedResource
  [PublishedResourceId1 <String>]: key: publishedResource-id of publishedResource
.Link
https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.onpremisespublishingprofiles/update-mgonpremispublishingprofileagentgrouppublishedresource
#>

function Update-MgOnPremisPublishingProfileAgentGroupPublishedResource {
[OutputType([System.Boolean])]
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
    [Parameter(ParameterSetName='Update', Mandatory)]
    [Parameter(ParameterSetName='Update1', Mandatory)]
    [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
    [Parameter(ParameterSetName='UpdateExpanded1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesAgentGroup-id of onPremisesAgentGroup
    ${OnPremisesAgentGroupId},

    [Parameter(ParameterSetName='Update', Mandatory)]
    [Parameter(ParameterSetName='Update1', Mandatory)]
    [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
    [Parameter(ParameterSetName='UpdateExpanded1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
    ${OnPremisesPublishingProfileId},

    [Parameter(ParameterSetName='Update', Mandatory)]
    [Parameter(ParameterSetName='Update1', Mandatory)]
    [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
    [Parameter(ParameterSetName='UpdateExpanded1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: publishedResource-id of publishedResource
    ${PublishedResourceId},

    [Parameter(ParameterSetName='Update1', Mandatory)]
    [Parameter(ParameterSetName='UpdateExpanded1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesAgent-id of onPremisesAgent
    ${OnPremisesAgentId},

    [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='UpdateViaIdentity1', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded1', Mandatory, ValueFromPipeline)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity]
    # Identity Parameter
    # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
    ${InputObject},

    [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='Update1', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='UpdateViaIdentity1', Mandatory, ValueFromPipeline)]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPublishedResource]
    # publishedResource
    # To construct, see NOTES section for BODYPARAMETER properties and create a hash table.
    ${BodyParameter},

    [Parameter(ParameterSetName='UpdateExpanded')]
    [Parameter(ParameterSetName='UpdateExpanded1')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgentGroup[]]
    # .
    # To construct, see NOTES section for AGENTGROUPS properties and create a hash table.
    ${AgentGroups},

    [Parameter(ParameterSetName='UpdateExpanded')]
    [Parameter(ParameterSetName='UpdateExpanded1')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # .
    ${DisplayName},

    [Parameter(ParameterSetName='UpdateExpanded')]
    [Parameter(ParameterSetName='UpdateExpanded1')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # Read-only.
    ${Id},

    [Parameter(ParameterSetName='UpdateExpanded')]
    [Parameter(ParameterSetName='UpdateExpanded1')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # onPremisesPublishingType
    ${PublishingType},

    [Parameter(ParameterSetName='UpdateExpanded')]
    [Parameter(ParameterSetName='UpdateExpanded1')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # .
    ${ResourceName},

    [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.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfileAgentGroupPublishedResource_Update';
            Update1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfileAgentGroupPublishedResource_Update1';
            UpdateExpanded = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfileAgentGroupPublishedResource_UpdateExpanded';
            UpdateExpanded1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfileAgentGroupPublishedResource_UpdateExpanded1';
            UpdateViaIdentity = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfileAgentGroupPublishedResource_UpdateViaIdentity';
            UpdateViaIdentity1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfileAgentGroupPublishedResource_UpdateViaIdentity1';
            UpdateViaIdentityExpanded = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfileAgentGroupPublishedResource_UpdateViaIdentityExpanded';
            UpdateViaIdentityExpanded1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfileAgentGroupPublishedResource_UpdateViaIdentityExpanded1';
        }
        $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 agentGroups in onPremisesPublishingProfiles
.Description
Update the navigation property agentGroups in onPremisesPublishingProfiles
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
 
.Inputs
Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity
.Inputs
Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgentGroup
.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.
 
AGENTS <IMicrosoftGraphOnPremisesAgent[]>: .
  [Id <String>]: Read-only.
  [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [Id <String>]: Read-only.
    [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
    [DisplayName <String>]:
    [IsDefault <Boolean?>]:
    [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
      [Id <String>]: Read-only.
      [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
      [DisplayName <String>]:
      [PublishingType <String>]: onPremisesPublishingType
      [ResourceName <String>]:
    [PublishingType <String>]: onPremisesPublishingType
  [ExternalIP <String>]:
  [MachineName <String>]:
  [Status <String>]: agentStatus
  [SupportedPublishingTypes <String[]>]:
 
BODYPARAMETER <IMicrosoftGraphOnPremisesAgentGroup>: onPremisesAgentGroup
  [Id <String>]: Read-only.
  [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
    [Id <String>]: Read-only.
    [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [ExternalIP <String>]:
    [MachineName <String>]:
    [Status <String>]: agentStatus
    [SupportedPublishingTypes <String[]>]:
  [DisplayName <String>]:
  [IsDefault <Boolean?>]:
  [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
    [Id <String>]: Read-only.
    [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [DisplayName <String>]:
    [PublishingType <String>]: onPremisesPublishingType
    [ResourceName <String>]:
  [PublishingType <String>]: onPremisesPublishingType
 
INPUTOBJECT <IIdentityOnPremisesPublishingProfilesIdentity>: Identity Parameter
  [OnPremisesAgentGroupId <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentGroupId1 <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentId <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesAgentId1 <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesPublishingProfileId <String>]: key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
  [PublishedResourceId <String>]: key: publishedResource-id of publishedResource
  [PublishedResourceId1 <String>]: key: publishedResource-id of publishedResource
 
PUBLISHEDRESOURCES <IMicrosoftGraphPublishedResource[]>: .
  [Id <String>]: Read-only.
  [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [Id <String>]: Read-only.
    [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
      [Id <String>]: Read-only.
      [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
      [ExternalIP <String>]:
      [MachineName <String>]:
      [Status <String>]: agentStatus
      [SupportedPublishingTypes <String[]>]:
    [DisplayName <String>]:
    [IsDefault <Boolean?>]:
    [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
    [PublishingType <String>]: onPremisesPublishingType
  [DisplayName <String>]:
  [PublishingType <String>]: onPremisesPublishingType
  [ResourceName <String>]:
.Link
https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.onpremisespublishingprofiles/update-mgonpremispublishingprofileagentgroup
#>

function Update-MgOnPremisPublishingProfileAgentGroup {
[OutputType([System.Boolean])]
[CmdletBinding(DefaultParameterSetName='UpdateExpanded2', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
    [Parameter(ParameterSetName='Update', Mandatory)]
    [Parameter(ParameterSetName='Update1', Mandatory)]
    [Parameter(ParameterSetName='Update2', Mandatory)]
    [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
    [Parameter(ParameterSetName='UpdateExpanded1', Mandatory)]
    [Parameter(ParameterSetName='UpdateExpanded2', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesAgentGroup-id of onPremisesAgentGroup
    ${OnPremisesAgentGroupId},

    [Parameter(ParameterSetName='Update', Mandatory)]
    [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesAgentGroup-id of onPremisesAgentGroup
    ${OnPremisesAgentGroupId1},

    [Parameter(ParameterSetName='Update', Mandatory)]
    [Parameter(ParameterSetName='Update1', Mandatory)]
    [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
    [Parameter(ParameterSetName='UpdateExpanded1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesAgent-id of onPremisesAgent
    ${OnPremisesAgentId},

    [Parameter(ParameterSetName='Update', Mandatory)]
    [Parameter(ParameterSetName='Update1', Mandatory)]
    [Parameter(ParameterSetName='Update2', Mandatory)]
    [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
    [Parameter(ParameterSetName='UpdateExpanded1', Mandatory)]
    [Parameter(ParameterSetName='UpdateExpanded2', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
    ${OnPremisesPublishingProfileId},

    [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='UpdateViaIdentity1', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='UpdateViaIdentity2', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded1', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded2', Mandatory, ValueFromPipeline)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity]
    # Identity Parameter
    # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
    ${InputObject},

    [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='Update1', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='Update2', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='UpdateViaIdentity1', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='UpdateViaIdentity2', Mandatory, ValueFromPipeline)]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgentGroup]
    # onPremisesAgentGroup
    # To construct, see NOTES section for BODYPARAMETER properties and create a hash table.
    ${BodyParameter},

    [Parameter(ParameterSetName='UpdateExpanded')]
    [Parameter(ParameterSetName='UpdateExpanded1')]
    [Parameter(ParameterSetName='UpdateExpanded2')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded2')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgent[]]
    # .
    # To construct, see NOTES section for AGENTS properties and create a hash table.
    ${Agents},

    [Parameter(ParameterSetName='UpdateExpanded')]
    [Parameter(ParameterSetName='UpdateExpanded1')]
    [Parameter(ParameterSetName='UpdateExpanded2')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded2')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # .
    ${DisplayName},

    [Parameter(ParameterSetName='UpdateExpanded')]
    [Parameter(ParameterSetName='UpdateExpanded1')]
    [Parameter(ParameterSetName='UpdateExpanded2')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded2')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # Read-only.
    ${Id},

    [Parameter(ParameterSetName='UpdateExpanded')]
    [Parameter(ParameterSetName='UpdateExpanded1')]
    [Parameter(ParameterSetName='UpdateExpanded2')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded2')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.Management.Automation.SwitchParameter]
    # .
    ${IsDefault},

    [Parameter(ParameterSetName='UpdateExpanded')]
    [Parameter(ParameterSetName='UpdateExpanded1')]
    [Parameter(ParameterSetName='UpdateExpanded2')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded2')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPublishedResource[]]
    # .
    # To construct, see NOTES section for PUBLISHEDRESOURCES properties and create a hash table.
    ${PublishedResources},

    [Parameter(ParameterSetName='UpdateExpanded')]
    [Parameter(ParameterSetName='UpdateExpanded1')]
    [Parameter(ParameterSetName='UpdateExpanded2')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded2')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # onPremisesPublishingType
    ${PublishingType},

    [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.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfileAgentGroup_Update';
            Update1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfileAgentGroup_Update1';
            Update2 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfileAgentGroup_Update2';
            UpdateExpanded = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfileAgentGroup_UpdateExpanded';
            UpdateExpanded1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfileAgentGroup_UpdateExpanded1';
            UpdateExpanded2 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfileAgentGroup_UpdateExpanded2';
            UpdateViaIdentity = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfileAgentGroup_UpdateViaIdentity';
            UpdateViaIdentity1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfileAgentGroup_UpdateViaIdentity1';
            UpdateViaIdentity2 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfileAgentGroup_UpdateViaIdentity2';
            UpdateViaIdentityExpanded = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfileAgentGroup_UpdateViaIdentityExpanded';
            UpdateViaIdentityExpanded1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfileAgentGroup_UpdateViaIdentityExpanded1';
            UpdateViaIdentityExpanded2 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfileAgentGroup_UpdateViaIdentityExpanded2';
        }
        $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 agents in onPremisesPublishingProfiles
.Description
Update the navigation property agents in onPremisesPublishingProfiles
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
 
.Inputs
Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity
.Inputs
Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgent
.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.
 
AGENTGROUPS <IMicrosoftGraphOnPremisesAgentGroup[]>: .
  [Id <String>]: Read-only.
  [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
    [Id <String>]: Read-only.
    [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [ExternalIP <String>]:
    [MachineName <String>]:
    [Status <String>]: agentStatus
    [SupportedPublishingTypes <String[]>]:
  [DisplayName <String>]:
  [IsDefault <Boolean?>]:
  [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
    [Id <String>]: Read-only.
    [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [DisplayName <String>]:
    [PublishingType <String>]: onPremisesPublishingType
    [ResourceName <String>]:
  [PublishingType <String>]: onPremisesPublishingType
 
BODYPARAMETER <IMicrosoftGraphOnPremisesAgent>: onPremisesAgent
  [Id <String>]: Read-only.
  [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [Id <String>]: Read-only.
    [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
    [DisplayName <String>]:
    [IsDefault <Boolean?>]:
    [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
      [Id <String>]: Read-only.
      [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
      [DisplayName <String>]:
      [PublishingType <String>]: onPremisesPublishingType
      [ResourceName <String>]:
    [PublishingType <String>]: onPremisesPublishingType
  [ExternalIP <String>]:
  [MachineName <String>]:
  [Status <String>]: agentStatus
  [SupportedPublishingTypes <String[]>]:
 
INPUTOBJECT <IIdentityOnPremisesPublishingProfilesIdentity>: Identity Parameter
  [OnPremisesAgentGroupId <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentGroupId1 <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentId <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesAgentId1 <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesPublishingProfileId <String>]: key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
  [PublishedResourceId <String>]: key: publishedResource-id of publishedResource
  [PublishedResourceId1 <String>]: key: publishedResource-id of publishedResource
.Link
https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.onpremisespublishingprofiles/update-mgonpremispublishingprofileagent
#>

function Update-MgOnPremisPublishingProfileAgent {
[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: onPremisesAgent-id of onPremisesAgent
    ${OnPremisesAgentId},

    [Parameter(ParameterSetName='Update', Mandatory)]
    [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
    ${OnPremisesPublishingProfileId},

    [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity]
    # 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.IMicrosoftGraphOnPremisesAgent]
    # onPremisesAgent
    # 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.IMicrosoftGraphOnPremisesAgentGroup[]]
    # .
    # To construct, see NOTES section for AGENTGROUPS properties and create a hash table.
    ${AgentGroups},

    [Parameter(ParameterSetName='UpdateExpanded')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # .
    ${ExternalIP},

    [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]
    # .
    ${MachineName},

    [Parameter(ParameterSetName='UpdateExpanded')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # agentStatus
    ${Status},

    [Parameter(ParameterSetName='UpdateExpanded')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String[]]
    # .
    ${SupportedPublishingTypes},

    [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.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfileAgent_Update';
            UpdateExpanded = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfileAgent_UpdateExpanded';
            UpdateViaIdentity = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfileAgent_UpdateViaIdentity';
            UpdateViaIdentityExpanded = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfileAgent_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 onPremisesPublishingProfiles
.Description
Update entity in onPremisesPublishingProfiles
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
 
.Inputs
Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity
.Inputs
Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesPublishingProfile
.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.
 
AGENTGROUPS <IMicrosoftGraphOnPremisesAgentGroup[]>: .
  [Id <String>]: Read-only.
  [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
    [Id <String>]: Read-only.
    [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [ExternalIP <String>]:
    [MachineName <String>]:
    [Status <String>]: agentStatus
    [SupportedPublishingTypes <String[]>]:
  [DisplayName <String>]:
  [IsDefault <Boolean?>]:
  [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
    [Id <String>]: Read-only.
    [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [DisplayName <String>]:
    [PublishingType <String>]: onPremisesPublishingType
    [ResourceName <String>]:
  [PublishingType <String>]: onPremisesPublishingType
 
AGENTS <IMicrosoftGraphOnPremisesAgent[]>: .
  [Id <String>]: Read-only.
  [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [Id <String>]: Read-only.
    [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
    [DisplayName <String>]:
    [IsDefault <Boolean?>]:
    [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
      [Id <String>]: Read-only.
      [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
      [DisplayName <String>]:
      [PublishingType <String>]: onPremisesPublishingType
      [ResourceName <String>]:
    [PublishingType <String>]: onPremisesPublishingType
  [ExternalIP <String>]:
  [MachineName <String>]:
  [Status <String>]: agentStatus
  [SupportedPublishingTypes <String[]>]:
 
BODYPARAMETER <IMicrosoftGraphOnPremisesPublishingProfile>: onPremisesPublishingProfile
  [Id <String>]: Read-only.
  [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [Id <String>]: Read-only.
    [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
      [Id <String>]: Read-only.
      [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
      [ExternalIP <String>]:
      [MachineName <String>]:
      [Status <String>]: agentStatus
      [SupportedPublishingTypes <String[]>]:
    [DisplayName <String>]:
    [IsDefault <Boolean?>]:
    [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
      [Id <String>]: Read-only.
      [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
      [DisplayName <String>]:
      [PublishingType <String>]: onPremisesPublishingType
      [ResourceName <String>]:
    [PublishingType <String>]: onPremisesPublishingType
  [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
  [HybridAgentUpdaterConfigurationAllowUpdateConfigurationOverride <Boolean?>]:
  [HybridAgentUpdaterConfigurationDeferUpdateDateTime <DateTime?>]:
  [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
  [UpdateWindowEndTime <String>]:
  [UpdateWindowStartTime <String>]:
 
INPUTOBJECT <IIdentityOnPremisesPublishingProfilesIdentity>: Identity Parameter
  [OnPremisesAgentGroupId <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentGroupId1 <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentId <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesAgentId1 <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesPublishingProfileId <String>]: key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
  [PublishedResourceId <String>]: key: publishedResource-id of publishedResource
  [PublishedResourceId1 <String>]: key: publishedResource-id of publishedResource
 
PUBLISHEDRESOURCES <IMicrosoftGraphPublishedResource[]>: .
  [Id <String>]: Read-only.
  [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [Id <String>]: Read-only.
    [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
      [Id <String>]: Read-only.
      [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
      [ExternalIP <String>]:
      [MachineName <String>]:
      [Status <String>]: agentStatus
      [SupportedPublishingTypes <String[]>]:
    [DisplayName <String>]:
    [IsDefault <Boolean?>]:
    [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
    [PublishingType <String>]: onPremisesPublishingType
  [DisplayName <String>]:
  [PublishingType <String>]: onPremisesPublishingType
  [ResourceName <String>]:
.Link
https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.onpremisespublishingprofiles/update-mgonpremispublishingprofileonpremispublishingprofileonpremispublishingprofile
#>

function Update-MgOnPremisPublishingProfileOnPremisPublishingProfileOnPremisPublishingProfile {
[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: onPremisesPublishingProfile-id of onPremisesPublishingProfile
    ${OnPremisesPublishingProfileId},

    [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity]
    # 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.IMicrosoftGraphOnPremisesPublishingProfile]
    # onPremisesPublishingProfile
    # 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.IMicrosoftGraphOnPremisesAgentGroup[]]
    # .
    # To construct, see NOTES section for AGENTGROUPS properties and create a hash table.
    ${AgentGroups},

    [Parameter(ParameterSetName='UpdateExpanded')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgent[]]
    # .
    # To construct, see NOTES section for AGENTS properties and create a hash table.
    ${Agents},

    [Parameter(ParameterSetName='UpdateExpanded')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.Management.Automation.SwitchParameter]
    # .
    ${HybridAgentUpdaterConfigurationAllowUpdateConfigurationOverride},

    [Parameter(ParameterSetName='UpdateExpanded')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.DateTime]
    # .
    ${HybridAgentUpdaterConfigurationDeferUpdateDateTime},

    [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.IMicrosoftGraphPublishedResource[]]
    # .
    # To construct, see NOTES section for PUBLISHEDRESOURCES properties and create a hash table.
    ${PublishedResources},

    [Parameter(ParameterSetName='UpdateExpanded')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # .
    ${UpdateWindowEndTime},

    [Parameter(ParameterSetName='UpdateExpanded')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # .
    ${UpdateWindowStartTime},

    [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.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfileOnPremisPublishingProfileOnPremisPublishingProfile_Update';
            UpdateExpanded = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfileOnPremisPublishingProfileOnPremisPublishingProfile_UpdateExpanded';
            UpdateViaIdentity = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfileOnPremisPublishingProfileOnPremisPublishingProfile_UpdateViaIdentity';
            UpdateViaIdentityExpanded = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfileOnPremisPublishingProfileOnPremisPublishingProfile_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 agents in onPremisesPublishingProfiles
.Description
Update the navigation property agents in onPremisesPublishingProfiles
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
 
.Inputs
Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity
.Inputs
Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgent
.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.
 
AGENTGROUPS <IMicrosoftGraphOnPremisesAgentGroup[]>: .
  [Id <String>]: Read-only.
  [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
    [Id <String>]: Read-only.
    [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [ExternalIP <String>]:
    [MachineName <String>]:
    [Status <String>]: agentStatus
    [SupportedPublishingTypes <String[]>]:
  [DisplayName <String>]:
  [IsDefault <Boolean?>]:
  [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
    [Id <String>]: Read-only.
    [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [DisplayName <String>]:
    [PublishingType <String>]: onPremisesPublishingType
    [ResourceName <String>]:
  [PublishingType <String>]: onPremisesPublishingType
 
BODYPARAMETER <IMicrosoftGraphOnPremisesAgent>: onPremisesAgent
  [Id <String>]: Read-only.
  [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [Id <String>]: Read-only.
    [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
    [DisplayName <String>]:
    [IsDefault <Boolean?>]:
    [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
      [Id <String>]: Read-only.
      [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
      [DisplayName <String>]:
      [PublishingType <String>]: onPremisesPublishingType
      [ResourceName <String>]:
    [PublishingType <String>]: onPremisesPublishingType
  [ExternalIP <String>]:
  [MachineName <String>]:
  [Status <String>]: agentStatus
  [SupportedPublishingTypes <String[]>]:
 
INPUTOBJECT <IIdentityOnPremisesPublishingProfilesIdentity>: Identity Parameter
  [OnPremisesAgentGroupId <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentGroupId1 <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentId <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesAgentId1 <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesPublishingProfileId <String>]: key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
  [PublishedResourceId <String>]: key: publishedResource-id of publishedResource
  [PublishedResourceId1 <String>]: key: publishedResource-id of publishedResource
.Link
https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.onpremisespublishingprofiles/update-mgonpremispublishingprofilepublishedresourceagentgroupagent
#>

function Update-MgOnPremisPublishingProfilePublishedResourceAgentGroupAgent {
[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: onPremisesAgentGroup-id of onPremisesAgentGroup
    ${OnPremisesAgentGroupId},

    [Parameter(ParameterSetName='Update', Mandatory)]
    [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesAgent-id of onPremisesAgent
    ${OnPremisesAgentId},

    [Parameter(ParameterSetName='Update', Mandatory)]
    [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
    ${OnPremisesPublishingProfileId},

    [Parameter(ParameterSetName='Update', Mandatory)]
    [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: publishedResource-id of publishedResource
    ${PublishedResourceId},

    [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity]
    # 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.IMicrosoftGraphOnPremisesAgent]
    # onPremisesAgent
    # 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.IMicrosoftGraphOnPremisesAgentGroup[]]
    # .
    # To construct, see NOTES section for AGENTGROUPS properties and create a hash table.
    ${AgentGroups},

    [Parameter(ParameterSetName='UpdateExpanded')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # .
    ${ExternalIP},

    [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]
    # .
    ${MachineName},

    [Parameter(ParameterSetName='UpdateExpanded')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # agentStatus
    ${Status},

    [Parameter(ParameterSetName='UpdateExpanded')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String[]]
    # .
    ${SupportedPublishingTypes},

    [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.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfilePublishedResourceAgentGroupAgent_Update';
            UpdateExpanded = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfilePublishedResourceAgentGroupAgent_UpdateExpanded';
            UpdateViaIdentity = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfilePublishedResourceAgentGroupAgent_UpdateViaIdentity';
            UpdateViaIdentityExpanded = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfilePublishedResourceAgentGroupAgent_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 publishedResources in onPremisesPublishingProfiles
.Description
Update the navigation property publishedResources in onPremisesPublishingProfiles
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
 
.Inputs
Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity
.Inputs
Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPublishedResource
.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.
 
AGENTGROUPS <IMicrosoftGraphOnPremisesAgentGroup[]>: .
  [Id <String>]: Read-only.
  [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
    [Id <String>]: Read-only.
    [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [ExternalIP <String>]:
    [MachineName <String>]:
    [Status <String>]: agentStatus
    [SupportedPublishingTypes <String[]>]:
  [DisplayName <String>]:
  [IsDefault <Boolean?>]:
  [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
    [Id <String>]: Read-only.
    [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [DisplayName <String>]:
    [PublishingType <String>]: onPremisesPublishingType
    [ResourceName <String>]:
  [PublishingType <String>]: onPremisesPublishingType
 
BODYPARAMETER <IMicrosoftGraphPublishedResource>: publishedResource
  [Id <String>]: Read-only.
  [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [Id <String>]: Read-only.
    [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
      [Id <String>]: Read-only.
      [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
      [ExternalIP <String>]:
      [MachineName <String>]:
      [Status <String>]: agentStatus
      [SupportedPublishingTypes <String[]>]:
    [DisplayName <String>]:
    [IsDefault <Boolean?>]:
    [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
    [PublishingType <String>]: onPremisesPublishingType
  [DisplayName <String>]:
  [PublishingType <String>]: onPremisesPublishingType
  [ResourceName <String>]:
 
INPUTOBJECT <IIdentityOnPremisesPublishingProfilesIdentity>: Identity Parameter
  [OnPremisesAgentGroupId <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentGroupId1 <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentId <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesAgentId1 <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesPublishingProfileId <String>]: key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
  [PublishedResourceId <String>]: key: publishedResource-id of publishedResource
  [PublishedResourceId1 <String>]: key: publishedResource-id of publishedResource
.Link
https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.onpremisespublishingprofiles/update-mgonpremispublishingprofilepublishedresourceagentgrouppublishedresource
#>

function Update-MgOnPremisPublishingProfilePublishedResourceAgentGroupPublishedResource {
[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: onPremisesAgentGroup-id of onPremisesAgentGroup
    ${OnPremisesAgentGroupId},

    [Parameter(ParameterSetName='Update', Mandatory)]
    [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
    ${OnPremisesPublishingProfileId},

    [Parameter(ParameterSetName='Update', Mandatory)]
    [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: publishedResource-id of publishedResource
    ${PublishedResourceId},

    [Parameter(ParameterSetName='Update', Mandatory)]
    [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: publishedResource-id of publishedResource
    ${PublishedResourceId1},

    [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity]
    # 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.IMicrosoftGraphPublishedResource]
    # publishedResource
    # 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.IMicrosoftGraphOnPremisesAgentGroup[]]
    # .
    # To construct, see NOTES section for AGENTGROUPS properties and create a hash table.
    ${AgentGroups},

    [Parameter(ParameterSetName='UpdateExpanded')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # .
    ${DisplayName},

    [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]
    # onPremisesPublishingType
    ${PublishingType},

    [Parameter(ParameterSetName='UpdateExpanded')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # .
    ${ResourceName},

    [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.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfilePublishedResourceAgentGroupPublishedResource_Update';
            UpdateExpanded = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfilePublishedResourceAgentGroupPublishedResource_UpdateExpanded';
            UpdateViaIdentity = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfilePublishedResourceAgentGroupPublishedResource_UpdateViaIdentity';
            UpdateViaIdentityExpanded = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfilePublishedResourceAgentGroupPublishedResource_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 agentGroups in onPremisesPublishingProfiles
.Description
Update the navigation property agentGroups in onPremisesPublishingProfiles
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
 
.Inputs
Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity
.Inputs
Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgentGroup
.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.
 
AGENTS <IMicrosoftGraphOnPremisesAgent[]>: .
  [Id <String>]: Read-only.
  [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [Id <String>]: Read-only.
    [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
    [DisplayName <String>]:
    [IsDefault <Boolean?>]:
    [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
      [Id <String>]: Read-only.
      [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
      [DisplayName <String>]:
      [PublishingType <String>]: onPremisesPublishingType
      [ResourceName <String>]:
    [PublishingType <String>]: onPremisesPublishingType
  [ExternalIP <String>]:
  [MachineName <String>]:
  [Status <String>]: agentStatus
  [SupportedPublishingTypes <String[]>]:
 
BODYPARAMETER <IMicrosoftGraphOnPremisesAgentGroup>: onPremisesAgentGroup
  [Id <String>]: Read-only.
  [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
    [Id <String>]: Read-only.
    [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [ExternalIP <String>]:
    [MachineName <String>]:
    [Status <String>]: agentStatus
    [SupportedPublishingTypes <String[]>]:
  [DisplayName <String>]:
  [IsDefault <Boolean?>]:
  [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
    [Id <String>]: Read-only.
    [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [DisplayName <String>]:
    [PublishingType <String>]: onPremisesPublishingType
    [ResourceName <String>]:
  [PublishingType <String>]: onPremisesPublishingType
 
INPUTOBJECT <IIdentityOnPremisesPublishingProfilesIdentity>: Identity Parameter
  [OnPremisesAgentGroupId <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentGroupId1 <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentId <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesAgentId1 <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesPublishingProfileId <String>]: key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
  [PublishedResourceId <String>]: key: publishedResource-id of publishedResource
  [PublishedResourceId1 <String>]: key: publishedResource-id of publishedResource
 
PUBLISHEDRESOURCES <IMicrosoftGraphPublishedResource[]>: .
  [Id <String>]: Read-only.
  [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [Id <String>]: Read-only.
    [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
      [Id <String>]: Read-only.
      [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
      [ExternalIP <String>]:
      [MachineName <String>]:
      [Status <String>]: agentStatus
      [SupportedPublishingTypes <String[]>]:
    [DisplayName <String>]:
    [IsDefault <Boolean?>]:
    [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
    [PublishingType <String>]: onPremisesPublishingType
  [DisplayName <String>]:
  [PublishingType <String>]: onPremisesPublishingType
  [ResourceName <String>]:
.Link
https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.onpremisespublishingprofiles/update-mgonpremispublishingprofilepublishedresourceagentgroup
#>

function Update-MgOnPremisPublishingProfilePublishedResourceAgentGroup {
[OutputType([System.Boolean])]
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
    [Parameter(ParameterSetName='Update', Mandatory)]
    [Parameter(ParameterSetName='Update1', Mandatory)]
    [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
    [Parameter(ParameterSetName='UpdateExpanded1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesAgentGroup-id of onPremisesAgentGroup
    ${OnPremisesAgentGroupId},

    [Parameter(ParameterSetName='Update', Mandatory)]
    [Parameter(ParameterSetName='Update1', Mandatory)]
    [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
    [Parameter(ParameterSetName='UpdateExpanded1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
    ${OnPremisesPublishingProfileId},

    [Parameter(ParameterSetName='Update', Mandatory)]
    [Parameter(ParameterSetName='Update1', Mandatory)]
    [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
    [Parameter(ParameterSetName='UpdateExpanded1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: publishedResource-id of publishedResource
    ${PublishedResourceId},

    [Parameter(ParameterSetName='Update1', Mandatory)]
    [Parameter(ParameterSetName='UpdateExpanded1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesAgentGroup-id of onPremisesAgentGroup
    ${OnPremisesAgentGroupId1},

    [Parameter(ParameterSetName='Update1', Mandatory)]
    [Parameter(ParameterSetName='UpdateExpanded1', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: onPremisesAgent-id of onPremisesAgent
    ${OnPremisesAgentId},

    [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='UpdateViaIdentity1', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded1', Mandatory, ValueFromPipeline)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity]
    # Identity Parameter
    # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
    ${InputObject},

    [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='Update1', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='UpdateViaIdentity1', Mandatory, ValueFromPipeline)]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgentGroup]
    # onPremisesAgentGroup
    # To construct, see NOTES section for BODYPARAMETER properties and create a hash table.
    ${BodyParameter},

    [Parameter(ParameterSetName='UpdateExpanded')]
    [Parameter(ParameterSetName='UpdateExpanded1')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnPremisesAgent[]]
    # .
    # To construct, see NOTES section for AGENTS properties and create a hash table.
    ${Agents},

    [Parameter(ParameterSetName='UpdateExpanded')]
    [Parameter(ParameterSetName='UpdateExpanded1')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # .
    ${DisplayName},

    [Parameter(ParameterSetName='UpdateExpanded')]
    [Parameter(ParameterSetName='UpdateExpanded1')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # Read-only.
    ${Id},

    [Parameter(ParameterSetName='UpdateExpanded')]
    [Parameter(ParameterSetName='UpdateExpanded1')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.Management.Automation.SwitchParameter]
    # .
    ${IsDefault},

    [Parameter(ParameterSetName='UpdateExpanded')]
    [Parameter(ParameterSetName='UpdateExpanded1')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPublishedResource[]]
    # .
    # To construct, see NOTES section for PUBLISHEDRESOURCES properties and create a hash table.
    ${PublishedResources},

    [Parameter(ParameterSetName='UpdateExpanded')]
    [Parameter(ParameterSetName='UpdateExpanded1')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # onPremisesPublishingType
    ${PublishingType},

    [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.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfilePublishedResourceAgentGroup_Update';
            Update1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfilePublishedResourceAgentGroup_Update1';
            UpdateExpanded = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfilePublishedResourceAgentGroup_UpdateExpanded';
            UpdateExpanded1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfilePublishedResourceAgentGroup_UpdateExpanded1';
            UpdateViaIdentity = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfilePublishedResourceAgentGroup_UpdateViaIdentity';
            UpdateViaIdentity1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfilePublishedResourceAgentGroup_UpdateViaIdentity1';
            UpdateViaIdentityExpanded = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfilePublishedResourceAgentGroup_UpdateViaIdentityExpanded';
            UpdateViaIdentityExpanded1 = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfilePublishedResourceAgentGroup_UpdateViaIdentityExpanded1';
        }
        $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 publishedResources in onPremisesPublishingProfiles
.Description
Update the navigation property publishedResources in onPremisesPublishingProfiles
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
.Example
PS C:\> {{ Add code here }}
 
{{ Add output here }}
 
.Inputs
Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity
.Inputs
Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPublishedResource
.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.
 
AGENTGROUPS <IMicrosoftGraphOnPremisesAgentGroup[]>: .
  [Id <String>]: Read-only.
  [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
    [Id <String>]: Read-only.
    [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [ExternalIP <String>]:
    [MachineName <String>]:
    [Status <String>]: agentStatus
    [SupportedPublishingTypes <String[]>]:
  [DisplayName <String>]:
  [IsDefault <Boolean?>]:
  [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
    [Id <String>]: Read-only.
    [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [DisplayName <String>]:
    [PublishingType <String>]: onPremisesPublishingType
    [ResourceName <String>]:
  [PublishingType <String>]: onPremisesPublishingType
 
BODYPARAMETER <IMicrosoftGraphPublishedResource>: publishedResource
  [Id <String>]: Read-only.
  [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
    [Id <String>]: Read-only.
    [Agents <IMicrosoftGraphOnPremisesAgent[]>]:
      [Id <String>]: Read-only.
      [AgentGroups <IMicrosoftGraphOnPremisesAgentGroup[]>]:
      [ExternalIP <String>]:
      [MachineName <String>]:
      [Status <String>]: agentStatus
      [SupportedPublishingTypes <String[]>]:
    [DisplayName <String>]:
    [IsDefault <Boolean?>]:
    [PublishedResources <IMicrosoftGraphPublishedResource[]>]:
    [PublishingType <String>]: onPremisesPublishingType
  [DisplayName <String>]:
  [PublishingType <String>]: onPremisesPublishingType
  [ResourceName <String>]:
 
INPUTOBJECT <IIdentityOnPremisesPublishingProfilesIdentity>: Identity Parameter
  [OnPremisesAgentGroupId <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentGroupId1 <String>]: key: onPremisesAgentGroup-id of onPremisesAgentGroup
  [OnPremisesAgentId <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesAgentId1 <String>]: key: onPremisesAgent-id of onPremisesAgent
  [OnPremisesPublishingProfileId <String>]: key: onPremisesPublishingProfile-id of onPremisesPublishingProfile
  [PublishedResourceId <String>]: key: publishedResource-id of publishedResource
  [PublishedResourceId1 <String>]: key: publishedResource-id of publishedResource
.Link
https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.identity.onpremisespublishingprofiles/update-mgonpremispublishingprofilepublishedresource
#>

function Update-MgOnPremisPublishingProfilePublishedResource {
[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: onPremisesPublishingProfile-id of onPremisesPublishingProfile
    ${OnPremisesPublishingProfileId},

    [Parameter(ParameterSetName='Update', Mandatory)]
    [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [System.String]
    # key: publishedResource-id of publishedResource
    ${PublishedResourceId},

    [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
    [Microsoft.Graph.PowerShell.Category('Path')]
    [Microsoft.Graph.PowerShell.Models.IIdentityOnPremisesPublishingProfilesIdentity]
    # 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.IMicrosoftGraphPublishedResource]
    # publishedResource
    # 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.IMicrosoftGraphOnPremisesAgentGroup[]]
    # .
    # To construct, see NOTES section for AGENTGROUPS properties and create a hash table.
    ${AgentGroups},

    [Parameter(ParameterSetName='UpdateExpanded')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # .
    ${DisplayName},

    [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]
    # onPremisesPublishingType
    ${PublishingType},

    [Parameter(ParameterSetName='UpdateExpanded')]
    [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
    [Microsoft.Graph.PowerShell.Category('Body')]
    [System.String]
    # .
    ${ResourceName},

    [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.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfilePublishedResource_Update';
            UpdateExpanded = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfilePublishedResource_UpdateExpanded';
            UpdateViaIdentity = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfilePublishedResource_UpdateViaIdentity';
            UpdateViaIdentityExpanded = 'Microsoft.Graph.Identity.OnPremisesPublishingProfiles.private\Update-MgOnPremisPublishingProfilePublishedResource_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
# MIIjkgYJKoZIhvcNAQcCoIIjgzCCI38CAQExDzANBglghkgBZQMEAgEFADB5Bgor
# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG
# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCBMKFZXj+TAjrM8
# J4dHOPhEvIV0qOPhxQvXYWcsN59TRqCCDYEwggX/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/BvW1taslScxMNelDNMYIVZzCCFWMCAQEwgZUwfjELMAkG
# A1UEBhMCVVMxEzARBgNVBAgTCldhc2hpbmd0b24xEDAOBgNVBAcTB1JlZG1vbmQx
# HjAcBgNVBAoTFU1pY3Jvc29mdCBDb3Jwb3JhdGlvbjEoMCYGA1UEAxMfTWljcm9z
# b2Z0IENvZGUgU2lnbmluZyBQQ0EgMjAxMQITMwAAAYdyF3IVWUDHCQAAAAABhzAN
# BglghkgBZQMEAgEFAKCBrjAZBgkqhkiG9w0BCQMxDAYKKwYBBAGCNwIBBDAcBgor
# BgEEAYI3AgELMQ4wDAYKKwYBBAGCNwIBFTAvBgkqhkiG9w0BCQQxIgQgJLrcyTWZ
# zLbiWO8/J0KT3cAvZ9We7+SjmdPgGAJBGLgwQgYKKwYBBAGCNwIBDDE0MDKgFIAS
# AE0AaQBjAHIAbwBzAG8AZgB0oRqAGGh0dHA6Ly93d3cubWljcm9zb2Z0LmNvbTAN
# BgkqhkiG9w0BAQEFAASCAQAysrhfeQxbudy0LmMiGBHx22oJmjnwCF3sliHXXTw2
# WvrLYiru/m+oB6D4ZLUX/LQtwDBSAwQAlIuNtTe1w+dwBEOWx0DuRxPG4GoqN+fF
# FuvXH79NHqXZ+lG10Wlq6+TDbaBhe3b1G0Fxl3pFTfkkF/MbyeM9mQvgqyFpkiiy
# OzeqKcVSQY3RCrud582+uignfM/cO07wIXXtJUxUVCzL5azsdeHuuTeK4vVqbkzD
# 1UZ7LKySmxPr60ten71tc+5Chn437mV+C4oIwnSKG7rQ2+wOBD72aCjhmf8W5r45
# 9Od5tL4H1aUaTpow4Hul69TeCXbY0WiS6F6JVkFbCGe3oYIS8TCCEu0GCisGAQQB
# gjcDAwExghLdMIIS2QYJKoZIhvcNAQcCoIISyjCCEsYCAQMxDzANBglghkgBZQME
# AgEFADCCAVUGCyqGSIb3DQEJEAEEoIIBRASCAUAwggE8AgEBBgorBgEEAYRZCgMB
# MDEwDQYJYIZIAWUDBAIBBQAEIF9WUzWzxTwzJaLNX0X5+l4MhiYl/f/agCcldKI0
# VmxCAgZep1RqkVgYEzIwMjAwNTAxMjE1NzAyLjcyN1owBIACAfSggdSkgdEwgc4x
# CzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRt
# b25kMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xKTAnBgNVBAsTIE1p
# Y3Jvc29mdCBPcGVyYXRpb25zIFB1ZXJ0byBSaWNvMSYwJAYDVQQLEx1UaGFsZXMg
# VFNTIEVTTjo0NjJGLUUzMTktM0YyMDElMCMGA1UEAxMcTWljcm9zb2Z0IFRpbWUt
# U3RhbXAgU2VydmljZaCCDkQwggT1MIID3aADAgECAhMzAAABJMvNAqEXcFyaAAAA
# AAEkMA0GCSqGSIb3DQEBCwUAMHwxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpXYXNo
# aW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29y
# cG9yYXRpb24xJjAkBgNVBAMTHU1pY3Jvc29mdCBUaW1lLVN0YW1wIFBDQSAyMDEw
# MB4XDTE5MTIxOTAxMTQ1N1oXDTIxMDMxNzAxMTQ1N1owgc4xCzAJBgNVBAYTAlVT
# MRMwEQYDVQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQK
# ExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xKTAnBgNVBAsTIE1pY3Jvc29mdCBPcGVy
# YXRpb25zIFB1ZXJ0byBSaWNvMSYwJAYDVQQLEx1UaGFsZXMgVFNTIEVTTjo0NjJG
# LUUzMTktM0YyMDElMCMGA1UEAxMcTWljcm9zb2Z0IFRpbWUtU3RhbXAgU2Vydmlj
# ZTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJCbKjgNnhjvMlnRNAtx
# 7X3N5ZZkSfUFULyWsVJ1pnyMsSITimg1q3OQ1Ikf0/3gg8UG5TIRm7wH8sjBtoB3
# nuzFz11CegIFcanYnt050JvnrUTKeAPUR5pLpTeP3QEgL+CWOc4lTg/XxjnQv01F
# D7TTn9DEuO3kp0GQ87Mjd5ssxK0K1q4IWNFAyRpx5n8Vm3Vm1iiVL5FMDUKsl5G/
# SqQdiEDn8cqYbqWMVzWH94PdKdw1mIHToBRCNsR9BHHWzNkSS+R0WRipBSSorKT7
# cuLlEBYhDo8AY3uMGlv0kLRLHASZ+sz2nfkpW2CVt+bHhVmM6/5qiu2f7eYoTYJu
# cFECAwEAAaOCARswggEXMB0GA1UdDgQWBBS7HdFyrGKIhDxvypLA1lD/wGRSsDAf
# BgNVHSMEGDAWgBTVYzpcijGQ80N7fEYbxTNoWoVtVTBWBgNVHR8ETzBNMEugSaBH
# hkVodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpL2NybC9wcm9kdWN0cy9NaWNU
# aW1TdGFQQ0FfMjAxMC0wNy0wMS5jcmwwWgYIKwYBBQUHAQEETjBMMEoGCCsGAQUF
# BzAChj5odHRwOi8vd3d3Lm1pY3Jvc29mdC5jb20vcGtpL2NlcnRzL01pY1RpbVN0
# YVBDQV8yMDEwLTA3LTAxLmNydDAMBgNVHRMBAf8EAjAAMBMGA1UdJQQMMAoGCCsG
# AQUFBwMIMA0GCSqGSIb3DQEBCwUAA4IBAQBo3QzNuNRgzdflwA4U7f3e2CcGlwdg
# 6ii498cBiSrTpWKO3qqz5pvgHAk4hh6y/FLY80R59inLwcVuyD24S3JEdSie4y1t
# C5JptweR1qlxRJCRM4vG7nPtIC4eAMKcXgovu0mTFv7xpFAVpRuvuepR91gIde32
# 8lv1HTTJCV/LBBk83Xi7nCGPF59FxeIrcE32xt4YJgEpEAikeMqvWCTMyPqlmvx9
# J92fxU3cQcw2j2EWwqOD5T3Nz2HWfPV80sihD1A6Y5HhjpS9taDPs7CI58I211F3
# ysegNyOesG3MTrSJHyPMLKYFDxcG1neV0liktv+TW927sUOVczcSUhQLMIIGcTCC
# BFmgAwIBAgIKYQmBKgAAAAAAAjANBgkqhkiG9w0BAQsFADCBiDELMAkGA1UEBhMC
# VVMxEzARBgNVBAgTCldhc2hpbmd0b24xEDAOBgNVBAcTB1JlZG1vbmQxHjAcBgNV
# BAoTFU1pY3Jvc29mdCBDb3Jwb3JhdGlvbjEyMDAGA1UEAxMpTWljcm9zb2Z0IFJv
# b3QgQ2VydGlmaWNhdGUgQXV0aG9yaXR5IDIwMTAwHhcNMTAwNzAxMjEzNjU1WhcN
# MjUwNzAxMjE0NjU1WjB8MQswCQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3Rv
# bjEQMA4GA1UEBxMHUmVkbW9uZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0
# aW9uMSYwJAYDVQQDEx1NaWNyb3NvZnQgVGltZS1TdGFtcCBQQ0EgMjAxMDCCASIw
# DQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKkdDbx3EYo6IOz8E5f1+n9plGt0
# VBDVpQoAgoX77XxoSyxfxcPlYcJ2tz5mK1vwFVMnBDEfQRsalR3OCROOfGEwWbEw
# RA/xYIiEVEMM1024OAizQt2TrNZzMFcmgqNFDdDq9UeBzb8kYDJYYEbyWEeGMoQe
# dGFnkV+BVLHPk0ySwcSmXdFhE24oxhr5hoC732H8RsEnHSRnEnIaIYqvS2SJUGKx
# Xf13Hz3wV3WsvYpCTUBR0Q+cBj5nf/VmwAOWRH7v0Ev9buWayrGo8noqCjHw2k4G
# kbaICDXoeByw6ZnNPOcvRLqn9NxkvaQBwSAJk3jN/LzAyURdXhacAQVPIk0CAwEA
# AaOCAeYwggHiMBAGCSsGAQQBgjcVAQQDAgEAMB0GA1UdDgQWBBTVYzpcijGQ80N7
# fEYbxTNoWoVtVTAZBgkrBgEEAYI3FAIEDB4KAFMAdQBiAEMAQTALBgNVHQ8EBAMC
# AYYwDwYDVR0TAQH/BAUwAwEB/zAfBgNVHSMEGDAWgBTV9lbLj+iiXGJo0T2UkFvX
# zpoYxDBWBgNVHR8ETzBNMEugSaBHhkVodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20v
# cGtpL2NybC9wcm9kdWN0cy9NaWNSb29DZXJBdXRfMjAxMC0wNi0yMy5jcmwwWgYI
# KwYBBQUHAQEETjBMMEoGCCsGAQUFBzAChj5odHRwOi8vd3d3Lm1pY3Jvc29mdC5j
# b20vcGtpL2NlcnRzL01pY1Jvb0NlckF1dF8yMDEwLTA2LTIzLmNydDCBoAYDVR0g
# AQH/BIGVMIGSMIGPBgkrBgEEAYI3LgMwgYEwPQYIKwYBBQUHAgEWMWh0dHA6Ly93
# d3cubWljcm9zb2Z0LmNvbS9QS0kvZG9jcy9DUFMvZGVmYXVsdC5odG0wQAYIKwYB
# BQUHAgIwNB4yIB0ATABlAGcAYQBsAF8AUABvAGwAaQBjAHkAXwBTAHQAYQB0AGUA
# bQBlAG4AdAAuIB0wDQYJKoZIhvcNAQELBQADggIBAAfmiFEN4sbgmD+BcQM9naOh
# IW+z66bM9TG+zwXiqf76V20ZMLPCxWbJat/15/B4vceoniXj+bzta1RXCCtRgkQS
# +7lTjMz0YBKKdsxAQEGb3FwX/1z5Xhc1mCRWS3TvQhDIr79/xn/yN31aPxzymXlK
# kVIArzgPF/UveYFl2am1a+THzvbKegBvSzBEJCI8z+0DpZaPWSm8tv0E4XCfMkon
# /VWvL/625Y4zu2JfmttXQOnxzplmkIz/amJ/3cVKC5Em4jnsGUpxY517IW3DnKOi
# PPp/fZZqkHimbdLhnPkd/DjYlPTGpQqWhqS9nhquBEKDuLWAmyI4ILUl5WTs9/S/
# fmNZJQ96LjlXdqJxqgaKD4kWumGnEcua2A5HmoDF0M2n0O99g/DhO3EJ3110mCII
# YdqwUB5vvfHhAN/nMQekkzr3ZUd46PioSKv33nJ+YWtvd6mBy6cJrDm77MbL2IK0
# cs0d9LiFAR6A+xuJKlQ5slvayA1VmXqHczsI5pgt6o3gMy4SKfXAL1QnIffIrE7a
# KLixqduWsqdCosnPGUFN4Ib5KpqjEWYw07t0MkvfY3v1mYovG8chr1m1rtxEPJdQ
# cdeh0sVV42neV8HR3jDA/czmTfsNv11P6Z0eGTgvvM9YBS7vDaBQNdrvCScc1bN+
# NR4Iuto229Nfj950iEkSoYIC0jCCAjsCAQEwgfyhgdSkgdEwgc4xCzAJBgNVBAYT
# AlVTMRMwEQYDVQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYD
# VQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xKTAnBgNVBAsTIE1pY3Jvc29mdCBP
# cGVyYXRpb25zIFB1ZXJ0byBSaWNvMSYwJAYDVQQLEx1UaGFsZXMgVFNTIEVTTjo0
# NjJGLUUzMTktM0YyMDElMCMGA1UEAxMcTWljcm9zb2Z0IFRpbWUtU3RhbXAgU2Vy
# dmljZaIjCgEBMAcGBSsOAwIaAxUAlwPlNCq+Un54UfxLe/wKS1Xc4nqggYMwgYCk
# fjB8MQswCQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMH
# UmVkbW9uZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMSYwJAYDVQQD
# Ex1NaWNyb3NvZnQgVGltZS1TdGFtcCBQQ0EgMjAxMDANBgkqhkiG9w0BAQUFAAIF
# AOJXGOAwIhgPMjAyMDA1MDIwMTUzMzZaGA8yMDIwMDUwMzAxNTMzNlowdzA9Bgor
# BgEEAYRZCgQBMS8wLTAKAgUA4lcY4AIBADAKAgEAAgIgwAIB/zAHAgEAAgIRHTAK
# AgUA4lhqYAIBADA2BgorBgEEAYRZCgQCMSgwJjAMBgorBgEEAYRZCgMCoAowCAIB
# AAIDB6EgoQowCAIBAAIDAYagMA0GCSqGSIb3DQEBBQUAA4GBABSVBEwbLixRrZDA
# SI+tUgAlttAIjySpzsR5TMMGXzM3OnJZq0ZBme92t1tEBRxQujUaGUBdJa8gO4jj
# 1H6TnDx7HB1KQZqczsKka6hSN5bqnZ9kGclc0SNWGZSBtMpc4Z8Ns1MGIMTkllA5
# 6B6z3j+rYRFH3VnHeGGk5K3N5n7hMYIDDTCCAwkCAQEwgZMwfDELMAkGA1UEBhMC
# VVMxEzARBgNVBAgTCldhc2hpbmd0b24xEDAOBgNVBAcTB1JlZG1vbmQxHjAcBgNV
# BAoTFU1pY3Jvc29mdCBDb3Jwb3JhdGlvbjEmMCQGA1UEAxMdTWljcm9zb2Z0IFRp
# bWUtU3RhbXAgUENBIDIwMTACEzMAAAEky80CoRdwXJoAAAAAASQwDQYJYIZIAWUD
# BAIBBQCgggFKMBoGCSqGSIb3DQEJAzENBgsqhkiG9w0BCRABBDAvBgkqhkiG9w0B
# CQQxIgQgmjZfZGLqcYcXtXmdtcyoNiDe6WbALSjGSXtkBj9enZQwgfoGCyqGSIb3
# DQEJEAIvMYHqMIHnMIHkMIG9BCBiOOHoohqL+X7Xa/25jp1wTrQxYlYGLszis/nA
# TirjIDCBmDCBgKR+MHwxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpXYXNoaW5ndG9u
# MRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRp
# b24xJjAkBgNVBAMTHU1pY3Jvc29mdCBUaW1lLVN0YW1wIFBDQSAyMDEwAhMzAAAB
# JMvNAqEXcFyaAAAAAAEkMCIEIDHBxR3dbYk851EjXcdbTE4KNv0uCXbdaNwpEKC0
# QDpxMA0GCSqGSIb3DQEBCwUABIIBAEVY4SAYeUlVpkgkV5urfVHNbihqMs+tdEhe
# Ieaa4GfOPvMcOABAOdfeZYSAKfROEICe+CxxOhk5j7KvZYwEc4JAO8QIlyO8WfEs
# qw4RAX5C59HH+yuWhlCeyxplHBITsjoLT34axjFzMWD4Y6nafAiazFG4Ce77rxS/
# ZLf/JCe+hWNBPvRG7jsaPrOb46AfzaVWAAQrtNDeftThpbr56zQKceArKaFtoAJv
# ddeGDJQBlOFK89oucZEPe8i6BZJce5Stg1xBUCh/KCaje2dF+pwFcsbF3wJsBBoY
# 0lVoYX7vNzSxICM1kjhRliILR7yhBYFf6d8M+oFwzSs6gL8JeSA=
# SIG # End signature block