Api/ElementsCustomersApi.ps1
function Invoke-ElementsApiV11CustomersGet { [CmdletBinding()] Param ( [Switch] $WithHttpInfo, [hashtable] $Filter ) Process { 'Calling method: Invoke-ElementsApiV11CustomersGet' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $LocalVarAccepts = @() $LocalVarContentTypes = @() $LocalVarQueryParameters = if ($Filter -ne $null) { $Filter } else { @{} } $LocalVarHeaderParameters = @{} $LocalVarFormParameters = @{} $LocalVarPathParameters = @{} $LocalVarCookieParameters = @{} $LocalVarBodyParameter = $null $Configuration = Get-ElementsConfiguration $LocalVarUri = '/api/V1.1/Customers' if ($Configuration["AccessToken"]) { $LocalVarHeaderParameters['Authorization'] = "Bearer " + $Configuration["AccessToken"] Write-Verbose ("Using Bearer authentication in {0}" -f $MyInvocation.MyCommand) } $LocalVarResult = Invoke-ElementsApiClient -Method 'GET' ` -Uri $LocalVarUri ` -Accepts $LocalVarAccepts ` -ContentTypes $LocalVarContentTypes ` -Body $LocalVarBodyParameter ` -HeaderParameters $LocalVarHeaderParameters ` -QueryParameters $LocalVarQueryParameters ` -FormParameters $LocalVarFormParameters ` -CookieParameters $LocalVarCookieParameters ` -ReturnType "" ` -IsBodyNullable $false if ($WithHttpInfo.IsPresent) { return $LocalVarResult } else { return $LocalVarResult["Response"] } } } function Invoke-ElementsApiV11CustomersIdGet { [CmdletBinding()] Param ( [Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $false)] [String] ${Id}, [Switch] $WithHttpInfo, [hashtable] $Filter ) Process { 'Calling method: Invoke-ElementsApiV11CustomersIdGet' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $LocalVarAccepts = @() $LocalVarContentTypes = @() $LocalVarQueryParameters = if ($Filter -ne $null) { $Filter } else { @{} } $LocalVarHeaderParameters = @{} $LocalVarFormParameters = @{} $LocalVarPathParameters = @{} $LocalVarCookieParameters = @{} $LocalVarBodyParameter = $null $Configuration = Get-ElementsConfiguration $LocalVarUri = '/api/V1.1/Customers({Id})' if (!$Id) { throw "Error! The required parameter `Id` missing when calling apiV11CustomersIdGet." } $LocalVarUri = $LocalVarUri.replace('{Id}', [System.Web.HTTPUtility]::UrlEncode($Id)) if ($Configuration["AccessToken"]) { $LocalVarHeaderParameters['Authorization'] = "Bearer " + $Configuration["AccessToken"] Write-Verbose ("Using Bearer authentication in {0}" -f $MyInvocation.MyCommand) } $LocalVarResult = Invoke-ElementsApiClient -Method 'GET' ` -Uri $LocalVarUri ` -Accepts $LocalVarAccepts ` -ContentTypes $LocalVarContentTypes ` -Body $LocalVarBodyParameter ` -HeaderParameters $LocalVarHeaderParameters ` -QueryParameters $LocalVarQueryParameters ` -FormParameters $LocalVarFormParameters ` -CookieParameters $LocalVarCookieParameters ` -ReturnType "" ` -IsBodyNullable $false if ($WithHttpInfo.IsPresent) { return $LocalVarResult } else { return $LocalVarResult["Response"] } } } function Invoke-ElementsApiV11CustomersIdJobsGet { [CmdletBinding()] Param ( [Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $false)] [String] ${Id}, [Parameter(Position = 1, ValueFromPipelineByPropertyName = $true, Mandatory = $false)] [String] ${JobType}, [Parameter(Position = 2, ValueFromPipelineByPropertyName = $true, Mandatory = $false)] [String] ${JobModule}, [Switch] $WithHttpInfo, [hashtable] $Filter ) Process { 'Calling method: Invoke-ElementsApiV11CustomersIdJobsGet' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $LocalVarAccepts = @() $LocalVarContentTypes = @() $LocalVarQueryParameters = if ($Filter -ne $null) { $Filter } else { @{} } $LocalVarHeaderParameters = @{} $LocalVarFormParameters = @{} $LocalVarPathParameters = @{} $LocalVarCookieParameters = @{} $LocalVarBodyParameter = $null $Configuration = Get-ElementsConfiguration $LocalVarUri = '/api/V1.1/Customers({Id})/Jobs' if (!$Id) { throw "Error! The required parameter `Id` missing when calling apiV11CustomersIdJobsGet." } $LocalVarUri = $LocalVarUri.replace('{Id}', [System.Web.HTTPUtility]::UrlEncode($Id)) if ($JobType) { $LocalVarQueryParameters['JobType'] = $JobType } if ($JobModule) { $LocalVarQueryParameters['JobModule'] = $JobModule } if ($Configuration["AccessToken"]) { $LocalVarHeaderParameters['Authorization'] = "Bearer " + $Configuration["AccessToken"] Write-Verbose ("Using Bearer authentication in {0}" -f $MyInvocation.MyCommand) } $LocalVarResult = Invoke-ElementsApiClient -Method 'GET' ` -Uri $LocalVarUri ` -Accepts $LocalVarAccepts ` -ContentTypes $LocalVarContentTypes ` -Body $LocalVarBodyParameter ` -HeaderParameters $LocalVarHeaderParameters ` -QueryParameters $LocalVarQueryParameters ` -FormParameters $LocalVarFormParameters ` -CookieParameters $LocalVarCookieParameters ` -ReturnType "" ` -IsBodyNullable $false if ($WithHttpInfo.IsPresent) { return $LocalVarResult } else { return $LocalVarResult["Response"] } } } function Invoke-ElementsApiV11CustomersIdJobsJobTypeJobTypeJobModuleJobModuleGet { [CmdletBinding()] Param ( [Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $false)] [String] ${Id}, [Parameter(Position = 1, ValueFromPipelineByPropertyName = $true, Mandatory = $false)] [String] ${JobType}, [Parameter(Position = 2, ValueFromPipelineByPropertyName = $true, Mandatory = $false)] [String] ${JobModule}, [Switch] $WithHttpInfo, [hashtable] $Filter ) Process { 'Calling method: Invoke-ElementsApiV11CustomersIdJobsJobTypeJobTypeJobModuleJobModuleGet' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $LocalVarAccepts = @() $LocalVarContentTypes = @() $LocalVarQueryParameters = if ($Filter -ne $null) { $Filter } else { @{} } $LocalVarHeaderParameters = @{} $LocalVarFormParameters = @{} $LocalVarPathParameters = @{} $LocalVarCookieParameters = @{} $LocalVarBodyParameter = $null $Configuration = Get-ElementsConfiguration $LocalVarUri = '/api/V1.1/Customers({Id})/Jobs(JobType={JobType},JobModule={JobModule})' if (!$Id) { throw "Error! The required parameter `Id` missing when calling apiV11CustomersIdJobsJobTypeJobTypeJobModuleJobModuleGet." } $LocalVarUri = $LocalVarUri.replace('{Id}', [System.Uri]::EscapeDataString($Id)) if (!$JobType) { throw "Error! The required parameter `JobType` missing when calling apiV11CustomersIdJobsJobTypeJobTypeJobModuleJobModuleGet." } $LocalVarUri = $LocalVarUri.replace('{JobType}', [System.Uri]::EscapeDataString($JobType)) if (!$JobModule) { throw "Error! The required parameter `JobModule` missing when calling apiV11CustomersIdJobsJobTypeJobTypeJobModuleJobModuleGet." } $LocalVarUri = $LocalVarUri.replace('{JobModule}', [System.Uri]::EscapeDataString($JobModule)) if ($Configuration["AccessToken"]) { $LocalVarHeaderParameters['Authorization'] = "Bearer " + $Configuration["AccessToken"] Write-Verbose ("Using Bearer authentication in {0}" -f $MyInvocation.MyCommand) } $LocalVarResult = Invoke-ElementsApiClient -Method 'GET' ` -Uri $LocalVarUri ` -Accepts $LocalVarAccepts ` -ContentTypes $LocalVarContentTypes ` -Body $LocalVarBodyParameter ` -HeaderParameters $LocalVarHeaderParameters ` -QueryParameters $LocalVarQueryParameters ` -FormParameters $LocalVarFormParameters ` -CookieParameters $LocalVarCookieParameters ` -ReturnType "" ` -IsBodyNullable $false if ($WithHttpInfo.IsPresent) { return $LocalVarResult } else { return $LocalVarResult["Response"] } } } function Invoke-ElementsApiV11CustomersIdProtectedGet { [CmdletBinding()] Param ( [Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $false)] [String] ${Id}, [Switch] $WithHttpInfo, [hashtable] $Filter ) Process { 'Calling method: Invoke-ElementsApiV11CustomersIdProtectedGet' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $LocalVarAccepts = @() $LocalVarContentTypes = @() $LocalVarQueryParameters = if ($Filter -ne $null) { $Filter } else { @{} } $LocalVarHeaderParameters = @{} $LocalVarFormParameters = @{} $LocalVarPathParameters = @{} $LocalVarCookieParameters = @{} $LocalVarBodyParameter = $null $Configuration = Get-ElementsConfiguration $LocalVarUri = '/api/V1.1/Customers({Id})/Protected' if (!$Id) { throw "Error! The required parameter `Id` missing when calling apiV11CustomersIdProtectedGet." } $LocalVarUri = $LocalVarUri.replace('{Id}', [System.Web.HTTPUtility]::UrlEncode($Id)) if ($Configuration["AccessToken"]) { $LocalVarHeaderParameters['Authorization'] = "Bearer " + $Configuration["AccessToken"] Write-Verbose ("Using Bearer authentication in {0}" -f $MyInvocation.MyCommand) } $LocalVarResult = Invoke-ElementsApiClient -Method 'GET' ` -Uri $LocalVarUri ` -Accepts $LocalVarAccepts ` -ContentTypes $LocalVarContentTypes ` -Body $LocalVarBodyParameter ` -HeaderParameters $LocalVarHeaderParameters ` -QueryParameters $LocalVarQueryParameters ` -FormParameters $LocalVarFormParameters ` -CookieParameters $LocalVarCookieParameters ` -ReturnType "" ` -IsBodyNullable $false if ($WithHttpInfo.IsPresent) { return $LocalVarResult } else { return $LocalVarResult["Response"] } } } function Invoke-ElementsApiV11ServicesGet { [CmdletBinding()] Param ( [Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $false)] [String] ${Id}, [Switch] $WithHttpInfo, [hashtable] $Filter ) Process { 'Calling method: Invoke-ElementsApiV11ServicesGet' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $LocalVarAccepts = @() $LocalVarContentTypes = @() $LocalVarQueryParameters = if ($Filter -ne $null) { $Filter } else { @{} } $LocalVarHeaderParameters = @{} $LocalVarFormParameters = @{} $LocalVarPathParameters = @{} $LocalVarCookieParameters = @{} $LocalVarBodyParameter = $null $Configuration = Get-ElementsConfiguration $LocalVarUri = '/api/V1.1/Services' if ($Id) { $LocalVarQueryParameters['Id'] = $Id } if ($Configuration["AccessToken"]) { $LocalVarHeaderParameters['Authorization'] = "Bearer " + $Configuration["AccessToken"] Write-Verbose ("Using Bearer authentication in {0}" -f $MyInvocation.MyCommand) } $LocalVarResult = Invoke-ElementsApiClient -Method 'GET' ` -Uri $LocalVarUri ` -Accepts $LocalVarAccepts ` -ContentTypes $LocalVarContentTypes ` -Body $LocalVarBodyParameter ` -HeaderParameters $LocalVarHeaderParameters ` -QueryParameters $LocalVarQueryParameters ` -FormParameters $LocalVarFormParameters ` -CookieParameters $LocalVarCookieParameters ` -ReturnType "" ` -IsBodyNullable $false if ($WithHttpInfo.IsPresent) { return $LocalVarResult } else { return $LocalVarResult["Response"] } } } function Invoke-ElementsApiV11ServicesIdGet { [CmdletBinding()] Param ( [Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $false)] [String] ${Id}, [Switch] $WithHttpInfo, [hashtable] $Filter ) Process { 'Calling method: Invoke-ElementsApiV11ServicesIdGet' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $LocalVarAccepts = @() $LocalVarContentTypes = @() $LocalVarQueryParameters = if ($Filter -ne $null) { $Filter } else { @{} } $LocalVarHeaderParameters = @{} $LocalVarFormParameters = @{} $LocalVarPathParameters = @{} $LocalVarCookieParameters = @{} $LocalVarBodyParameter = $null $Configuration = Get-ElementsConfiguration $LocalVarUri = '/api/V1.1/Services({Id})' if (!$Id) { throw "Error! The required parameter `Id` missing when calling apiV11ServicesIdGet." } $LocalVarUri = $LocalVarUri.replace('{Id}', [System.Web.HTTPUtility]::UrlEncode($Id)) if ($Configuration["AccessToken"]) { $LocalVarHeaderParameters['Authorization'] = "Bearer " + $Configuration["AccessToken"] Write-Verbose ("Using Bearer authentication in {0}" -f $MyInvocation.MyCommand) } $LocalVarResult = Invoke-ElementsApiClient -Method 'GET' ` -Uri $LocalVarUri ` -Accepts $LocalVarAccepts ` -ContentTypes $LocalVarContentTypes ` -Body $LocalVarBodyParameter ` -HeaderParameters $LocalVarHeaderParameters ` -QueryParameters $LocalVarQueryParameters ` -FormParameters $LocalVarFormParameters ` -CookieParameters $LocalVarCookieParameters ` -ReturnType "" ` -IsBodyNullable $false if ($WithHttpInfo.IsPresent) { return $LocalVarResult } else { return $LocalVarResult["Response"] } } } function Invoke-ElementsApiV11CustomerIdProfileGet { [CmdletBinding()] Param ( [Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $false)] [String] ${Id}, [Switch] $WithHttpInfo, [hashtable] $Filter ) Process { 'Calling method: Invoke-ElementsApiV11ProfileGet' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $LocalVarAccepts = @() $LocalVarContentTypes = @() $LocalVarQueryParameters = if ($Filter -ne $null) { $Filter } else { @{} } $LocalVarHeaderParameters = @{} $LocalVarFormParameters = @{} $LocalVarPathParameters = @{} $LocalVarCookieParameters = @{} $LocalVarBodyParameter = $null $Configuration = Get-ElementsConfiguration $LocalVarUri = '/api/v1.1/Customers({Id})/ScanProfiles' $LocalVarUri = $LocalVarUri.replace('{Id}', [System.Uri]::EscapeDataString($Id)) if ($Configuration["AccessToken"]) { $LocalVarHeaderParameters['Authorization'] = "Bearer " + $Configuration["AccessToken"] Write-Verbose ("Using Bearer authentication in {0}" -f $MyInvocation.MyCommand) } $LocalVarResult = Invoke-ElementsApiClient -Method 'GET' ` -Uri $LocalVarUri ` -Accepts $LocalVarAccepts ` -ContentTypes $LocalVarContentTypes ` -Body $LocalVarBodyParameter ` -HeaderParameters $LocalVarHeaderParameters ` -QueryParameters $LocalVarQueryParameters ` -FormParameters $LocalVarFormParameters ` -CookieParameters $LocalVarCookieParameters ` -ReturnType "" ` -IsBodyNullable $false if ($WithHttpInfo.IsPresent) { return $LocalVarResult } else { return $LocalVarResult["Response"] } } } function Invoke-ElementsApiV11CustomerIdProfileIdGet { [CmdletBinding()] Param ( [Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $false)] [String] ${Id}, [String] ${ProfileId}, [Switch] $WithHttpInfo, [hashtable] $Filter ) Process { 'Calling method: Invoke-ElementsApiV11CustomerIdProfileIdGet' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $LocalVarAccepts = @() $LocalVarContentTypes = @() $LocalVarQueryParameters = if ($Filter -ne $null) { $Filter } else { @{} } $LocalVarHeaderParameters = @{} $LocalVarFormParameters = @{} $LocalVarPathParameters = @{} $LocalVarCookieParameters = @{} $LocalVarBodyParameter = $null $Configuration = Get-ElementsConfiguration $LocalVarUri = '/api/V1.1/Customers({Id})/ScanProfilesDetails(ProfileId={ProfileId})' if (!$Id) { throw "Error! The required parameter `Id` missing when calling apiV11CustomersIdJobsJobTypeJobTypeJobModuleJobModuleGet." } $LocalVarUri = $LocalVarUri.replace('{Id}', [System.Uri]::EscapeDataString($Id)) if (!$ProfileId) { throw "Error! The required parameter `ProfileId` missing when calling apiV11CustomersIdJobsJobTypeJobTypeJobModuleJobModuleGet." } $LocalVarUri = $LocalVarUri.replace('{ProfileId}', [System.Uri]::EscapeDataString($ProfileId)) if ($Configuration["AccessToken"]) { $LocalVarHeaderParameters['Authorization'] = "Bearer " + $Configuration["AccessToken"] Write-Verbose ("Using Bearer authentication in {0}" -f $MyInvocation.MyCommand) } $LocalVarResult = Invoke-ElementsApiClient -Method 'GET' ` -Uri $LocalVarUri ` -Accepts $LocalVarAccepts ` -ContentTypes $LocalVarContentTypes ` -Body $LocalVarBodyParameter ` -HeaderParameters $LocalVarHeaderParameters ` -QueryParameters $LocalVarQueryParameters ` -FormParameters $LocalVarFormParameters ` -CookieParameters $LocalVarCookieParameters ` -ReturnType "" ` -IsBodyNullable $false if ($WithHttpInfo.IsPresent) { return $LocalVarResult } else { return $LocalVarResult["Response"] } } } function Invoke-ElementsApiV11CustomerIdProfileDailyNewGet { [CmdletBinding()] Param ( [Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $false)] [String] ${Id}, [String] ${ProfileId}, [Switch] $WithHttpInfo, [hashtable] $Filter ) Process { 'Calling method: Invoke-ElementsApiV11CustomerIdProfileDailyNewGet' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $LocalVarAccepts = @() $LocalVarContentTypes = @() $LocalVarQueryParameters = if ($Filter -ne $null) { $Filter } else { @{} } $LocalVarHeaderParameters = @{} $LocalVarFormParameters = @{} $LocalVarPathParameters = @{} $LocalVarCookieParameters = @{} $LocalVarBodyParameter = $null $Configuration = Get-ElementsConfiguration $LocalVarUri = '/api/V1.1/Customers({Id})/ScanProfilesDailyNew(ProfileId={ProfileId})' if (!$Id) { throw "Error! The required parameter `Id` missing when calling apiV11CustomersIdScanProfileDailyNewGet." } $LocalVarUri = $LocalVarUri.replace('{Id}', [System.Uri]::EscapeDataString($Id)) if (!$ProfileId) { throw "Error! The required parameter `ProfileId` missing when calling apiV11CustomersIdScanProfileDailyNewGet." } $LocalVarUri = $LocalVarUri.replace('{ProfileId}', [System.Uri]::EscapeDataString($ProfileId)) if ($Configuration["AccessToken"]) { $LocalVarHeaderParameters['Authorization'] = "Bearer " + $Configuration["AccessToken"] Write-Verbose ("Using Bearer authentication in {0}" -f $MyInvocation.MyCommand) } $LocalVarResult = Invoke-ElementsApiClient -Method 'GET' ` -Uri $LocalVarUri ` -Accepts $LocalVarAccepts ` -ContentTypes $LocalVarContentTypes ` -Body $LocalVarBodyParameter ` -HeaderParameters $LocalVarHeaderParameters ` -QueryParameters $LocalVarQueryParameters ` -FormParameters $LocalVarFormParameters ` -CookieParameters $LocalVarCookieParameters ` -ReturnType "" ` -IsBodyNullable $false if ($WithHttpInfo.IsPresent) { return $LocalVarResult } else { return $LocalVarResult["Response"] } } } function Invoke-ElementsApiV11CustomerIdProfileDailyNewDetailGet { [CmdletBinding()] Param ( [Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $false)] [String] ${Id}, [String] ${ProfileId}, [Switch] $WithHttpInfo, [hashtable] $Filter ) Process { 'Calling method: Invoke-ElementsApiV11CustomerIdProfileDailyNewDetailGet' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $LocalVarAccepts = @() $LocalVarContentTypes = @() $LocalVarQueryParameters = if ($Filter -ne $null) { $Filter } else { @{} } $LocalVarHeaderParameters = @{} $LocalVarFormParameters = @{} $LocalVarPathParameters = @{} $LocalVarCookieParameters = @{} $LocalVarBodyParameter = $null $Configuration = Get-ElementsConfiguration $LocalVarUri = '/api/V1.1/Customers({Id})/ScanProfilesDailyNewDetail(ProfileId={ProfileId})' if (!$Id) { throw "Error! The required parameter `Id` missing when calling apiV11CustomersIdScanProfileDailyNewDetailGet." } $LocalVarUri = $LocalVarUri.replace('{Id}', [System.Uri]::EscapeDataString($Id)) if (!$ProfileId) { throw "Error! The required parameter `ProfileId` missing when calling apiV11CustomersIdScanProfileDailyNewDetailGet." } $LocalVarUri = $LocalVarUri.replace('{ProfileId}', [System.Uri]::EscapeDataString($ProfileId)) if ($Configuration["AccessToken"]) { $LocalVarHeaderParameters['Authorization'] = "Bearer " + $Configuration["AccessToken"] Write-Verbose ("Using Bearer authentication in {0}" -f $MyInvocation.MyCommand) } $LocalVarResult = Invoke-ElementsApiClient -Method 'GET' ` -Uri $LocalVarUri ` -Accepts $LocalVarAccepts ` -ContentTypes $LocalVarContentTypes ` -Body $LocalVarBodyParameter ` -HeaderParameters $LocalVarHeaderParameters ` -QueryParameters $LocalVarQueryParameters ` -FormParameters $LocalVarFormParameters ` -CookieParameters $LocalVarCookieParameters ` -ReturnType "" ` -IsBodyNullable $false if ($WithHttpInfo.IsPresent) { return $LocalVarResult } else { return $LocalVarResult["Response"] } } } |