Public/EntryStatistics/Resume-R1Operation.ps1

# .ExternalHelp psRadiantOne-help.xml
function Resume-R1Operation {
    [CmdletBinding(SupportsShouldProcess, ConfirmImpact = 'Medium')]
    [OutputType([void])]
    param(
        [parameter(
            Mandatory = $true,
            ValueFromPipelineByPropertyName = $true
        )]
        [ValidateNotNullOrEmpty()]
        [string]$name
    )

    Begin {

        Assert-R1Session -RequireToken

    }#begin

    Process {

        $URI = Resolve-R1ServiceUrl -Service Settings -Path "operations/$($name | Get-EscapedString)/resume"

        if ($PSCmdlet.ShouldProcess($name, 'Resume Entry Statistics Refresh')) {

            $null = Invoke-R1RestMethod -Uri $URI -Method POST

        }

    }#process

    End { }#end

}