diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS deleted file mode 100644 index 7158ca6..0000000 --- a/.github/CODEOWNERS +++ /dev/null @@ -1,3 +0,0 @@ -# https://help.github.com/articles/about-codeowners/ - -* @atlassianps/maintainers @atlassianps/reviewers diff --git a/.github/CODE_OF_CONDUCT.md b/.github/CODE_OF_CONDUCT.md deleted file mode 100644 index 585f008..0000000 --- a/.github/CODE_OF_CONDUCT.md +++ /dev/null @@ -1,46 +0,0 @@ -# Contributor Covenant Code of Conduct - -## Our Pledge - -In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. - -## Our Standards - -Examples of behavior that contributes to creating a positive environment include: - -* Using welcoming and inclusive language -* Being respectful of differing viewpoints and experiences -* Gracefully accepting constructive criticism -* Focusing on what is best for the community -* Showing empathy towards other community members - -Examples of unacceptable behavior by participants include: - -* The use of sexualized language or imagery and unwelcome sexual attention or advances -* Trolling, insulting/derogatory comments, and personal or political attacks -* Public or private harassment -* Publishing others' private information, such as a physical or electronic address, without explicit permission -* Other conduct which could reasonably be considered inappropriate in a professional setting - -## Our Responsibilities - -Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. - -Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. - -## Scope - -This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. - -## Enforcement - -Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at contact@AtlassianPS.org. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. - -Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. - -## Attribution - -This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version] - -[homepage]: http://contributor-covenant.org -[version]: http://contributor-covenant.org/version/1/4/ diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md deleted file mode 100644 index c7e62ff..0000000 --- a/.github/CONTRIBUTING.md +++ /dev/null @@ -1,27 +0,0 @@ -# Contributing to ConfluencePS - -Happy to see you are interested in helping. - -We have a comprehensive documentation on how to contribute here: **[Contributing to AtlassianPS](https://atlassianps.org/docs/Contributing/)**. - -But here is the gist of it once you have forked the repository: - -* before changing the code - -```powershell -git clone https://github.com//ConfluencePS -cd ConfluencePS -git checkout develop -git checkout -b -code . -``` - -* after making the changes - -```powershell -git add . -git commit -m "" -git push -``` - -* [create a Pull Request](https://help.github.com/articles/creating-a-pull-request/) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index 6dcf3ca..0000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,41 +0,0 @@ ---- -name: Bug report -about: Create a report to help us improve ---- - - - -## Description - - - -## Steps To Reproduce - - - -1. Go to '...' -2. Click on '....' -3. Scroll down to '....' -4. See error - -## Expected behavior - - - -## Screenshots - - - -## Your Environment - - - - -> ```powershell -> Get-Module ConfluencePS -ListAvailable | Select Name, Version -> $PSVersionTable -> ``` - -## Possible Solution - - diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md deleted file mode 100644 index 444e7b6..0000000 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -name: Feature request -about: Suggest an idea for this project ---- - - - -## Context - -> **Is your feature request related to a problem? Please describe.** - - - -## Description - -> **Describe the solution you'd like** - - - -## Additional Information - - diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index af55899..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,30 +0,0 @@ - - - - -### Description - - - -### Motivation and Context - - - - - -### Types of changes - - - -- [ ] Bug fix (non-breaking change which fixes an issue) -- [ ] New feature (non-breaking change which adds functionality) -- [ ] Breaking change (fix or feature that would cause existing functionality to change) - -### Checklist - - - - -- [ ] My code follows the code style of this project. -- [ ] I have added Pester Tests that describe what my changes should do. -- [ ] I have updated the documentation accordingly. diff --git a/ConfluencePS/ConfluencePS.Types.cs b/ConfluencePS/ConfluencePS.Types.cs index 7058dd9..b4b263a 100644 --- a/ConfluencePS/ConfluencePS.Types.cs +++ b/ConfluencePS/ConfluencePS.Types.cs @@ -6,94 +6,116 @@ namespace ConfluencePS { - public class Icon { - public String Path { get; set; } - public Int32 Width { get; set; } - public Int32 Height { get; set; } - public Boolean IsDefault { get; set; } - public override string ToString() { - return Path; - } - } - - public class User { - public String UserName { get; set; } - public String DisplayName { get; set; } - public String UserKey { get; set; } - public Icon ProfilePicture { get; set; } - public override string ToString() { - return UserName; - } - } - - public class Version { - public User By { get; set; } - public DateTime When { get; set; } - public String FriendlyWhen { get; set; } - public Int32 Number { get; set; } - public String Message { get; set; } - public Boolean MinorEdit { get; set; } - public override string ToString() { - return Number.ToString(); - } - } - - public class Space { - public Int32 Id { get; set; } - public String Key { get; set; } - public String Name { get; set; } - public Icon Icon { get; set; } - public String Type { get; set; } - public String Description { get; set; } - public Page Homepage { get; set; } - public override string ToString() { - return "[" + Key + "] " + Name; - } - } - - public class Page { - public Int32 ID { get; set; } - public String Status { get; set; } - public String Title { get; set; } - public Space Space { get; set; } - public Version Version { get; set; } - public String Body { get; set; } - public Page[] Ancestors { get; set; } - public String URL { get; set; } - public String ShortURL { get; set; } - public override string ToString() { - return "[" + ID + "] " + Title; - } - } - - public class Label { - public Int32 ID { get; set; } - public String Prefix { get; set; } - public String Name { get; set; } - public override string ToString() { - return Name; - } - } - - public class ContentLabelSet { - public Page Page { get; set; } - public Label[] Labels { get; set; } - } - - public class Attachment { - public Int32 ID { get; set; } - public String Status { get; set; } - public String Title { get; set; } - public String Filename { get; set; } - public String MediaType { get; set; } - public UInt64 FileSize { get; set; } - public String Comment { get; set; } - public String SpaceKey { get; set; } - public Int32 PageID { get; set; } - public Version Version { get; set; } - public String URL { get; set; } - public override string ToString() { - return "[att$ID] $Title"; - } - } + public class Icon + { + public String Path { get; set; } + public Int32 Width { get; set; } + public Int32 Height { get; set; } + public Boolean IsDefault { get; set; } + + public override string ToString() + { + return Path; + } + } + + public class User + { + public String UserName { get; set; } + public String DisplayName { get; set; } + public String UserKey { get; set; } + public Icon ProfilePicture { get; set; } + + public override string ToString() + { + return UserName; + } + } + + public class Version + { + public User By { get; set; } + public DateTime When { get; set; } + public String FriendlyWhen { get; set; } + public Int32 Number { get; set; } + public String Message { get; set; } + public Boolean MinorEdit { get; set; } + + public override string ToString() + { + return Number.ToString(); + } + } + + public class Space + { + public UInt64 Id { get; set; } + public String Key { get; set; } + public String Name { get; set; } + public Icon Icon { get; set; } + public String Type { get; set; } + public String Description { get; set; } + public Page Homepage { get; set; } + + public override string ToString() + { + return "[" + Key + "] " + Name; + } + } + + public class Page + { + public UInt64 ID { get; set; } + public String Status { get; set; } + public String Title { get; set; } + public Space Space { get; set; } + public Version Version { get; set; } + public String Body { get; set; } + public Page[] Ancestors { get; set; } + public String URL { get; set; } + public String ShortURL { get; set; } + + public override string ToString() + { + return "[" + ID + "] " + Title; + } + } + + public class Label + { + public UInt64 ID { get; set; } + public String Prefix { get; set; } + public String Name { get; set; } + + public override string ToString() + { + return Name; + } + } + + public class ContentLabelSet + { + public Page Page { get; set; } + public Label[] Labels { get; set; } + } + + public class Attachment + { + public UInt64 ID { get; set; } + public String Status { get; set; } + public String Title { get; set; } + public String Filename { get; set; } + public String MediaType { get; set; } + public UInt32 FileSize { get; set; } + public String Comment { get; set; } + public String SpaceKey { get; set; } + public UInt64 PageID { get; set; } + public Version Version { get; set; } + public String URL { get; set; } + + public override string ToString() + { + return "[att$ID] $Title"; + } + } } diff --git a/ConfluencePS/Private/ConvertTo-Attachment.ps1 b/ConfluencePS/Private/ConvertTo-Attachment.ps1 index 9f6b40a..0c8c60e 100644 --- a/ConfluencePS/Private/ConvertTo-Attachment.ps1 +++ b/ConfluencePS/Private/ConvertTo-Attachment.ps1 @@ -16,7 +16,7 @@ function ConvertTo-Attachment { foreach ($object in $InputObject) { Write-Verbose "[$($MyInvocation.MyCommand.Name)] Converting Object to Attachment" - if($_.container.id) { + if ($_.container.id) { $PageId = $_.container.id } else { @@ -25,24 +25,24 @@ function ConvertTo-Attachment { [ConfluencePS.Attachment](ConvertTo-Hashtable -InputObject ($object | Select-Object ` @{Name = "id"; Expression = { - [UInt32]($_.id -replace 'att', '') + [UInt64]($_.id -replace 'att', '') } }, status, title, - @{Name = "filename"; Expression = { - '{0}_{1}' -f $PageID, $_.title | Remove-InvalidFileCharacter + @{Name = "filename"; Expression = { + '{0}_{1}' -f $PageID, $_.title | Remove-InvalidFileCharacter } }, - @{Name = "mediatype"; Expression = { + @{Name = "mediatype"; Expression = { $_.extensions.mediaType } }, - @{Name = "filesize"; Expression = { + @{Name = "filesize"; Expression = { [convert]::ToInt32($_.extensions.fileSize, 10) } }, - @{Name = "comment"; Expression = { + @{Name = "comment"; Expression = { $_.extensions.comment } }, @@ -58,7 +58,7 @@ function ConvertTo-Attachment { if ($_.version) { ConvertTo-Version $_.version } - else {$null} + else { $null } } }, @{Name = "URL"; Expression = { @@ -67,7 +67,7 @@ function ConvertTo-Attachment { if ($_._links.download) { "{0}{1}" -f $base, $_._links.download } - else {$null} + else { $null } } } )) diff --git a/ConfluencePS/Public/Add-Attachment.ps1 b/ConfluencePS/Public/Add-Attachment.ps1 index fc234d0..8d84c44 100644 --- a/ConfluencePS/Public/Add-Attachment.ps1 +++ b/ConfluencePS/Public/Add-Attachment.ps1 @@ -22,9 +22,9 @@ function Add-Attachment { ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true )] - [ValidateRange(1, [int]::MaxValue)] + [ValidateRange(1, [UInt64]::MaxValue)] [Alias('ID')] - [Int]$PageID, + [UInt64]$PageID, [Parameter( Mandatory, ValueFromPipeline, ValueFromPipelineByPropertyName )] [ValidateScript( diff --git a/ConfluencePS/Public/Add-Label.ps1 b/ConfluencePS/Public/Add-Label.ps1 index 27e60cd..3d4c9a2 100644 --- a/ConfluencePS/Public/Add-Label.ps1 +++ b/ConfluencePS/Public/Add-Label.ps1 @@ -21,9 +21,9 @@ function Add-Label { ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true )] - [ValidateRange(1, [int]::MaxValue)] + [ValidateRange(1, [UInt64]::MaxValue)] [Alias('ID')] - [int[]]$PageID, + [UInt64[]]$PageID, [Parameter( Mandatory = $true, @@ -45,7 +45,7 @@ function Add-Label { Write-Debug "[$($MyInvocation.MyCommand.Name)] PSBoundParameters: $($PSBoundParameters | Out-String)" # Validade input object from Pipeline - if (($_) -and -not($_ -is [ConfluencePS.Page] -or $_ -is [int] -or $_ -is [ConfluencePS.ContentLabelSet])) { + if (($_) -and -not($_ -is [ConfluencePS.Page] -or $_ -is [UInt64] -or $_ -is [ConfluencePS.ContentLabelSet])) { $message = "The Object in the pipe is not a Page." $exception = New-Object -TypeName System.ArgumentException -ArgumentList $message Throw $exception @@ -59,7 +59,7 @@ function Add-Label { # Test if Label is String[] [String[]]$_label = $Label - $_label = $_label | Where-Object {$_ -ne "ConfluencePS.Label"} + $_label = $_label | Where-Object { $_ -ne "ConfluencePS.Label" } if ($_label) { [String[]]$Label = $_label } @@ -98,7 +98,7 @@ function Add-Label { } $iwParameters["Uri"] = $resourceApi -f $_page - $iwParameters["Body"] = ($Label | Foreach-Object {@{prefix = 'global'; name = $_}}) | ConvertTo-Json + $iwParameters["Body"] = ($Label | ForEach-Object { @{prefix = 'global'; name = $_ } }) | ConvertTo-Json Write-Debug "[$($MyInvocation.MyCommand.Name)] Content to be sent: $($iwParameters["Body"] | Out-String)" if ($PSCmdlet.ShouldProcess("Label $Label, PageID $_page")) { diff --git a/ConfluencePS/Public/Get-Attachment.ps1 b/ConfluencePS/Public/Get-Attachment.ps1 index e98605d..804f265 100644 --- a/ConfluencePS/Public/Get-Attachment.ps1 +++ b/ConfluencePS/Public/Get-Attachment.ps1 @@ -19,16 +19,16 @@ function Get-Attachment { ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true )] - [ValidateRange(1, [int]::MaxValue)] + [ValidateRange(1, [UInt64]::MaxValue)] [Alias('ID')] - [Int[]]$PageID, + [UInt64[]]$PageID, [String]$FileNameFilter, [String]$MediaTypeFilter, - [ValidateRange(1, [int]::MaxValue)] - [Int]$PageSize = 25 + [ValidateRange(1, [UInt32]::MaxValue)] + [UInt32]$PageSize = 25 ) BEGIN { @@ -39,7 +39,7 @@ function Get-Attachment { Write-DebugMessage "[$($MyInvocation.MyCommand.Name)] ParameterSetName: $($PsCmdlet.ParameterSetName)" Write-DebugMessage "[$($MyInvocation.MyCommand.Name)] PSBoundParameters: $($PSBoundParameters | Out-String)" - if (($_) -and -not($_ -is [ConfluencePS.Page] -or $_ -is [int])) { + if (($_) -and -not($_ -is [ConfluencePS.Page] -or $_ -is [UInt64])) { $message = "The Object in the pipe is not a Page." $exception = New-Object -TypeName System.ArgumentException -ArgumentList $message Throw $exception diff --git a/ConfluencePS/Public/Get-ChildPage.ps1 b/ConfluencePS/Public/Get-ChildPage.ps1 index 6895eaa..ddacf28 100644 --- a/ConfluencePS/Public/Get-ChildPage.ps1 +++ b/ConfluencePS/Public/Get-ChildPage.ps1 @@ -19,14 +19,14 @@ function Get-ChildPage { ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true )] - [ValidateRange(1, [int]::MaxValue)] + [ValidateRange(1, [UInt64]::MaxValue)] [Alias('ID')] - [int]$PageID, + [UInt64]$PageID, [switch]$Recurse, - [ValidateRange(1, [int]::MaxValue)] - [int]$PageSize = 25, + [ValidateRange(1, [UInt32]::MaxValue)] + [UInt32]$PageSize = 25, [switch]$ExcludePageBody ) @@ -40,7 +40,7 @@ function Get-ChildPage { Write-Debug "[$($MyInvocation.MyCommand.Name)] PSBoundParameters: $($PSBoundParameters | Out-String)" #Fix: See fix statement below. These two fix statements are tied together - if (($_) -and -not($_ -is [ConfluencePS.Page] -or $_ -is [int])) { + if (($_) -and -not($_ -is [ConfluencePS.Page] -or $_ -is [UInt64])) { $message = "The Object in the pipe is not a Page." $exception = New-Object -TypeName System.ArgumentException -ArgumentList $message Throw $exception @@ -55,13 +55,13 @@ function Get-ChildPage { } $iwParameters = Copy-CommonParameter -InputObject $PSBoundParameters - $iwParameters['Uri'] = if ($Recurse.IsPresent) {"$ApiUri/content/{0}/descendant/page" -f $PageID} else {"$ApiUri/content/{0}/child/page" -f $PageID} + $iwParameters['Uri'] = if ($Recurse.IsPresent) { "$ApiUri/content/{0}/descendant/page" -f $PageID } else { "$ApiUri/content/{0}/child/page" -f $PageID } $iwParameters['Method'] = 'Get' $iwParameters['GetParameters'] = @{ expand = "space,version,body.storage,ancestors" limit = $PageSize } - if($ExcludePageBody){ + if ($ExcludePageBody) { $iwParameters.GetParameters.expand = "space,version,ancestors" } diff --git a/ConfluencePS/Public/Get-Label.ps1 b/ConfluencePS/Public/Get-Label.ps1 index 99e6398..06e971d 100644 --- a/ConfluencePS/Public/Get-Label.ps1 +++ b/ConfluencePS/Public/Get-Label.ps1 @@ -21,12 +21,12 @@ function Get-Label { ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true )] - [ValidateRange(1, [int]::MaxValue)] + [ValidateRange(1, [UInt64]::MaxValue)] [Alias('ID')] - [int[]]$PageID, + [UInt64[]]$PageID, - [ValidateRange(1, [int]::MaxValue)] - [int]$PageSize = 25 + [ValidateRange(1, [UInt32]::MaxValue)] + [UInt32]$PageSize = 25 ) BEGIN { @@ -39,7 +39,7 @@ function Get-Label { Write-Debug "[$($MyInvocation.MyCommand.Name)] ParameterSetName: $($PsCmdlet.ParameterSetName)" Write-Debug "[$($MyInvocation.MyCommand.Name)] PSBoundParameters: $($PSBoundParameters | Out-String)" - if (($_) -and -not($_ -is [ConfluencePS.Page] -or $_ -is [int])) { + if (($_) -and -not($_ -is [ConfluencePS.Page] -or $_ -is [UInt64])) { $message = "The Object in the pipe is not a Page." $exception = New-Object -TypeName System.ArgumentException -ArgumentList $message Throw $exception diff --git a/ConfluencePS/Public/Get-Page.ps1 b/ConfluencePS/Public/Get-Page.ps1 index 34117dd..6d17034 100644 --- a/ConfluencePS/Public/Get-Page.ps1 +++ b/ConfluencePS/Public/Get-Page.ps1 @@ -23,9 +23,9 @@ function Get-Page { ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true )] - [ValidateRange(1, [int]::MaxValue)] + [ValidateRange(1, [UInt64]::MaxValue)] [Alias('ID')] - [int[]]$PageID, + [UInt64[]]$PageID, [Parameter( ParameterSetName = "bySpace" @@ -71,8 +71,8 @@ function Get-Page { )] [string]$Query, - [ValidateRange(1, [int]::MaxValue)] - [int]$PageSize = 25, + [ValidateRange(1, [UInt32]::MaxValue)] + [UInt32]$PageSize = 25, [switch]$ExcludePageBody ) @@ -90,7 +90,7 @@ function Get-Page { limit = $PageSize } - if($ExcludePageBody){ + if ($ExcludePageBody) { $iwParameters.GetParameters.expand = "space,version,ancestors" } @@ -126,7 +126,7 @@ function Get-Page { if ($SpaceKey) { $iwParameters["GetParameters"]["spaceKey"] = $SpaceKey } if ($Title) { - Invoke-Method @iwParameters | Where-Object {$_.Title -like "$Title"} + Invoke-Method @iwParameters | Where-Object { $_.Title -like "$Title" } } else { Invoke-Method @iwParameters @@ -137,7 +137,7 @@ function Get-Page { $iwParameters["Uri"] = $resourceApi -f "/search" $CQLparameters = @("type=page", "label=$Label") - if ($SpaceKey) {$CQLparameters += "space=$SpaceKey"} + if ($SpaceKey) { $CQLparameters += "space=$SpaceKey" } $cqlQuery = ConvertTo-URLEncoded ($CQLparameters -join (" AND ")) $iwParameters["GetParameters"]["cql"] = $cqlQuery diff --git a/ConfluencePS/Public/Get-Space.ps1 b/ConfluencePS/Public/Get-Space.ps1 index a4b9f48..447c395 100644 --- a/ConfluencePS/Public/Get-Space.ps1 +++ b/ConfluencePS/Public/Get-Space.ps1 @@ -21,8 +21,8 @@ function Get-Space { [Alias('Key')] [string[]]$SpaceKey, - [ValidateRange(1, [int]::MaxValue)] - [int]$PageSize = 25 + [ValidateRange(1, [UInt32]::MaxValue)] + [UInt32]$PageSize = 25 ) BEGIN { diff --git a/ConfluencePS/Public/New-Page.ps1 b/ConfluencePS/Public/New-Page.ps1 index 9339ce0..fdd88de 100644 --- a/ConfluencePS/Public/New-Page.ps1 +++ b/ConfluencePS/Public/New-Page.ps1 @@ -33,8 +33,8 @@ function New-Page { [string]$Title, [Parameter(ParameterSetName = 'byParameters')] - [ValidateRange(1, [int]::MaxValue)] - [int]$ParentID, + [ValidateRange(1, [UInt64]::MaxValue)] + [UInt64]$ParentID, [Parameter(ParameterSetName = 'byParameters')] [ConfluencePS.Page]$Parent, @@ -70,7 +70,7 @@ function New-Page { $Content = [PSObject]@{ type = "page" - space = [PSObject]@{ key = ""} + space = [PSObject]@{ key = "" } title = "" body = [PSObject]@{ storage = [PSObject]@{ @@ -86,7 +86,7 @@ function New-Page { $Content.space.key = $InputObject.Space.Key $Content.body.storage.value = $InputObject.Body if ($InputObject.Ancestors) { - $Content.ancestors += @( $InputObject.Ancestors | Foreach-Object { @{ id = $_.ID } } ) + $Content.ancestors += @( $InputObject.Ancestors | ForEach-Object { @{ id = $_.ID } } ) } } "byParameters" { diff --git a/ConfluencePS/Public/Remove-Label.ps1 b/ConfluencePS/Public/Remove-Label.ps1 index 241b1d0..ff8813e 100644 --- a/ConfluencePS/Public/Remove-Label.ps1 +++ b/ConfluencePS/Public/Remove-Label.ps1 @@ -22,9 +22,9 @@ function Remove-Label { ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true )] - [ValidateRange(1, [int]::MaxValue)] + [ValidateRange(1, [UInt64]::MaxValue)] [Alias('ID')] - [int[]]$PageID, + [UInt64[]]$PageID, [Parameter()] [string[]]$Label @@ -40,7 +40,7 @@ function Remove-Label { Write-Debug "[$($MyInvocation.MyCommand.Name)] ParameterSetName: $($PsCmdlet.ParameterSetName)" Write-Debug "[$($MyInvocation.MyCommand.Name)] PSBoundParameters: $($PSBoundParameters | Out-String)" - if (($_) -and -not($_ -is [ConfluencePS.Page] -or $_ -is [int])) { + if (($_) -and -not($_ -is [ConfluencePS.Page] -or $_ -is [UInt64])) { $message = "The Object in the pipe is not a Page." $exception = New-Object -TypeName System.ArgumentException -ArgumentList $message Throw $exception diff --git a/ConfluencePS/Public/Remove-Page.ps1 b/ConfluencePS/Public/Remove-Page.ps1 index 1d5a7bc..23d20f1 100644 --- a/ConfluencePS/Public/Remove-Page.ps1 +++ b/ConfluencePS/Public/Remove-Page.ps1 @@ -22,9 +22,9 @@ function Remove-Page { ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true )] - [ValidateRange(1, [int]::MaxValue)] + [ValidateRange(1, [UInt64]::MaxValue)] [Alias('ID')] - [int[]]$PageID + [UInt64[]]$PageID ) BEGIN { @@ -37,7 +37,7 @@ function Remove-Page { Write-Debug "[$($MyInvocation.MyCommand.Name)] ParameterSetName: $($PsCmdlet.ParameterSetName)" Write-Debug "[$($MyInvocation.MyCommand.Name)] PSBoundParameters: $($PSBoundParameters | Out-String)" - if (($_) -and -not($_ -is [ConfluencePS.Page] -or $_ -is [int])) { + if (($_) -and -not($_ -is [ConfluencePS.Page] -or $_ -is [UInt64])) { $message = "The Object in the pipe is not a Page." $exception = New-Object -TypeName System.ArgumentException -ArgumentList $message Throw $exception diff --git a/ConfluencePS/Public/Set-Info.ps1 b/ConfluencePS/Public/Set-Info.ps1 index 8a34bc0..f46bb38 100644 --- a/ConfluencePS/Public/Set-Info.ps1 +++ b/ConfluencePS/Public/Set-Info.ps1 @@ -9,7 +9,7 @@ function Set-Info { [PSCredential]$Credential, - [int]$PageSize, + [UInt32]$PageSize, [switch]$PromptCredentials ) diff --git a/ConfluencePS/Public/Set-Label.ps1 b/ConfluencePS/Public/Set-Label.ps1 index f8fec6e..b4f5cd4 100644 --- a/ConfluencePS/Public/Set-Label.ps1 +++ b/ConfluencePS/Public/Set-Label.ps1 @@ -22,9 +22,9 @@ function Set-Label { ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true )] - [ValidateRange(1, [int]::MaxValue)] + [ValidateRange(1, [UInt64]::MaxValue)] [Alias('ID')] - [int[]]$PageID, + [UInt64[]]$PageID, [Parameter(Mandatory = $true)] [string[]]$Label @@ -40,7 +40,7 @@ function Set-Label { Write-Debug "[$($MyInvocation.MyCommand.Name)] ParameterSetName: $($PsCmdlet.ParameterSetName)" Write-Debug "[$($MyInvocation.MyCommand.Name)] PSBoundParameters: $($PSBoundParameters | Out-String)" - if (($_) -and -not($_ -is [ConfluencePS.Page] -or $_ -is [int])) { + if (($_) -and -not($_ -is [ConfluencePS.Page] -or $_ -is [UInt64])) { $message = "The Object in the pipe is not a Page." $exception = New-Object -TypeName System.ArgumentException -ArgumentList $message Throw $exception @@ -63,7 +63,7 @@ function Set-Label { Remove-Label -PageID $_page @authAndApiUri | Out-Null $iwParameters["Uri"] = $resourceApi -f $_page - $iwParameters["Body"] = $Label | Foreach-Object {@{prefix = 'global'; name = $_}} | ConvertTo-Json + $iwParameters["Body"] = $Label | ForEach-Object { @{prefix = 'global'; name = $_ } } | ConvertTo-Json Write-Debug "[$($MyInvocation.MyCommand.Name)] Content to be sent: $($iwParameters["Body"] | Out-String)" if ($PSCmdlet.ShouldProcess("Label $Label, PageID $_page")) { diff --git a/ConfluencePS/Public/Set-Page.ps1 b/ConfluencePS/Public/Set-Page.ps1 index d7b3cdd..69d58a7 100644 --- a/ConfluencePS/Public/Set-Page.ps1 +++ b/ConfluencePS/Public/Set-Page.ps1 @@ -29,9 +29,9 @@ function Set-Page { ValueFromPipeline = $true, ParameterSetName = 'byParameters' )] - [ValidateRange(1, [int]::MaxValue)] + [ValidateRange(1, [UInt64]::MaxValue)] [Alias('ID')] - [int]$PageID, + [UInt64]$PageID, [Parameter(ParameterSetName = 'byParameters')] [ValidateNotNullOrEmpty()] @@ -44,8 +44,8 @@ function Set-Page { [switch]$Convert, [Parameter(ParameterSetName = 'byParameters')] - [ValidateRange(1, [int]::MaxValue)] - [int]$ParentID, + [ValidateRange(1, [UInt64]::MaxValue)] + [UInt64]$ParentID, [Parameter(ParameterSetName = 'byParameters')] [ConfluencePS.Page]$Parent diff --git a/Tests/Build.Tests.ps1 b/Tests/Build.Tests.ps1 index b00c8ba..fdffedc 100644 --- a/Tests/Build.Tests.ps1 +++ b/Tests/Build.Tests.ps1 @@ -1,6 +1,6 @@ #requires -modules BuildHelpers #requires -modules Configuration -#requires -modules Pester +#requires -modules @{ ModuleName = "Pester"; ModuleVersion = "4.10" } Describe "Validation of build environment" -Tag Unit { diff --git a/Tests/ConfluencePS.Tests.ps1 b/Tests/ConfluencePS.Tests.ps1 index 163e4cd..dca6015 100644 --- a/Tests/ConfluencePS.Tests.ps1 +++ b/Tests/ConfluencePS.Tests.ps1 @@ -1,5 +1,5 @@ #requires -modules BuildHelpers -#requires -modules Pester +#requires -modules @{ ModuleName = "Pester"; ModuleVersion = "4.10" } Describe "General project validation" -Tag Unit { diff --git a/Tests/Examples.Tests.ps1 b/Tests/Examples.Tests.ps1 index 530f26c..6f2201f 100644 --- a/Tests/Examples.Tests.ps1 +++ b/Tests/Examples.Tests.ps1 @@ -1,5 +1,5 @@ #requires -modules BuildHelpers -#requires -modules Pester +#requires -modules @{ ModuleName = "Pester"; ModuleVersion = "4.10" } Describe "Validation of example codes in the documentation" -Tag Documentation, NotImplemented { diff --git a/Tests/Functions/ConvertTo-Table.Tests.ps1 b/Tests/Functions/ConvertTo-Table.Tests.ps1 index 9c5c1e7..aa47361 100644 --- a/Tests/Functions/ConvertTo-Table.Tests.ps1 +++ b/Tests/Functions/ConvertTo-Table.Tests.ps1 @@ -1,5 +1,5 @@ #requires -modules BuildHelpers -#requires -modules @{ ModuleName = "Pester"; ModuleVersion = "4.4.2" } +#requires -modules @{ ModuleName = "Pester"; ModuleVersion = "4.10" } Describe 'ConvertTo-Table' -Tag Unit { diff --git a/Tests/Help.Tests.ps1 b/Tests/Help.Tests.ps1 index fc956b8..45478ab 100644 --- a/Tests/Help.Tests.ps1 +++ b/Tests/Help.Tests.ps1 @@ -1,5 +1,5 @@ #requires -modules BuildHelpers -#requires -modules Pester +#requires -modules @{ ModuleName = "Pester"; ModuleVersion = "4.10" } Describe "Help tests" -Tag Documentation { @@ -83,14 +83,14 @@ Describe "Help tests" -Tag Documentation { } It "has a link to the 'Online Version'" { - [uri]$onlineLink = ($help.relatedLinks.navigationLink | Where-Object linkText -eq "Online Version:").Uri + [uri]$onlineLink = ($help.relatedLinks.navigationLink | Where-Object linkText -EQ "Online Version:").Uri $onlineLink.Authority | Should -Be "atlassianps.org" $onlineLink.Scheme | Should -Be "https" $onlineLink.PathAndQuery | Should -Be "/docs/$env:BHProjectName/commands/$commandName/" } - it "has a valid HelpUri" { + It "has a valid HelpUri" { $command.HelpUri | Should -Not -BeNullOrEmpty $Pattern = [regex]::Escape("https://atlassianps.org/docs/$env:BHProjectName/commands/$commandName") diff --git a/Tests/Integration.Tests.ps1 b/Tests/Integration.Tests.ps1 index eee7461..598591c 100644 --- a/Tests/Integration.Tests.ps1 +++ b/Tests/Integration.Tests.ps1 @@ -1,5 +1,5 @@ #requires -modules BuildHelpers -#requires -modules Pester +#requires -modules @{ ModuleName = "Pester"; ModuleVersion = "4.10" } [Diagnostics.CodeAnalysis.SuppressMessageAttribute( "PSUseDeclaredVarsMoreThanAssigments", @@ -114,8 +114,8 @@ Describe 'Integration Tests' -Tag Integration { ($NewSpace2 | Get-Member -MemberType Property).Count | Should Be 7 } It 'ID is integer' { - $NewSpace1.ID | Should BeOfType [Int] - $NewSpace2.ID | Should BeOfType [Int] + $NewSpace1.ID | Should BeOfType [UInt64] + $NewSpace2.ID | Should BeOfType [UInt64] } It 'key matches the specified value' { $NewSpace1.Key | Should BeOfType [String] @@ -171,9 +171,9 @@ Describe 'Integration Tests' -Tag Integration { @($GetSpace3).Count | Should Be 2 } It 'id is integer' { - $GetSpace1.ID | Should BeOfType [Int] - $GetSpace2.ID | Should BeOfType [Int] - $GetSpace3.ID | Should BeOfType [Int] + $GetSpace1.ID | Should BeOfType [UInt64] + $GetSpace2.ID | Should BeOfType [UInt64] + $GetSpace3.ID | Should BeOfType [UInt64] } It 'key is string' { $GetSpace1.Key | Should BeOfType [String] @@ -293,10 +293,10 @@ Describe 'Integration Tests' -Tag Integration { ($NewPage4 | Get-Member -MemberType Property).Count | Should Be 9 } It 'spaceid is integer' { - $NewPage1.ID | Should BeOfType [Int] - $NewPage2.ID | Should BeOfType [Int] - $NewPage3.ID | Should BeOfType [Int] - $NewPage4.ID | Should BeOfType [Int] + $NewPage1.ID | Should BeOfType [UInt64] + $NewPage2.ID | Should BeOfType [UInt64] + $NewPage3.ID | Should BeOfType [UInt64] + $NewPage4.ID | Should BeOfType [UInt64] } It 'key matches the specified value' { $NewPage1.Space.Key | Should BeExactly $SpaceKey @@ -311,9 +311,9 @@ Describe 'Integration Tests' -Tag Integration { $NewPage4.Title | Should BeExactly $Title4 } It 'parentid is integer' { - $NewPage1.Ancestors.ID | Should BeOfType [Int] - $NewPage3.Ancestors.ID | Should BeOfType [Int] - $NewPage4.Ancestors.ID | Should BeOfType [Int] + $NewPage1.Ancestors.ID | Should BeOfType [UInt64] + $NewPage3.Ancestors.ID | Should BeOfType [UInt64] + $NewPage4.Ancestors.ID | Should BeOfType [UInt64] } It 'parentid matches the specified value' { $NewPage1.Ancestors.ID | Should BeExactly $parentPage.ID @@ -403,13 +403,13 @@ Describe 'Integration Tests' -Tag Integration { ($GetByQuery | Get-Member -MemberType Property).Count | Should Be 9 } It 'id is integer' { - $GetTitle1.ID | Should BeOfType [Int] - $GetTitle2.ID | Should BeOfType [Int] - $GetID1.ID | Should BeOfType [Int] - $GetID2.ID | Should BeOfType [Int] - $GetKeys.ID | Should BeOfType [Int] - $GetByLabel.ID | Should BeOfType [Int] - $GetByQuery.ID | Should BeOfType [Int] + $GetTitle1.ID | Should BeOfType [UInt64] + $GetTitle2.ID | Should BeOfType [UInt64] + $GetID1.ID | Should BeOfType [UInt64] + $GetID2.ID | Should BeOfType [UInt64] + $GetKeys.ID | Should BeOfType [UInt64] + $GetByLabel.ID | Should BeOfType [UInt64] + $GetByQuery.ID | Should BeOfType [UInt64] } It 'id matches the specified value' { $GetID1.ID | Should Be $GetTitle1.ID diff --git a/Tests/PSScriptAnalyzer.Tests.ps1 b/Tests/PSScriptAnalyzer.Tests.ps1 index b346ecf..21b6f69 100644 --- a/Tests/PSScriptAnalyzer.Tests.ps1 +++ b/Tests/PSScriptAnalyzer.Tests.ps1 @@ -1,5 +1,5 @@ #requires -modules BuildHelpers -#requires -modules Pester +#requires -modules @{ ModuleName = "Pester"; ModuleVersion = "4.10" } #requires -modules PSScriptAnalyzer Describe "PSScriptAnalyzer Tests" -Tag Unit { diff --git a/Tests/Project.Tests.ps1 b/Tests/Project.Tests.ps1 index 79b2f88..22f1794 100644 --- a/Tests/Project.Tests.ps1 +++ b/Tests/Project.Tests.ps1 @@ -1,5 +1,5 @@ #requires -modules BuildHelpers -#requires -modules Pester +#requires -modules @{ ModuleName = "Pester"; ModuleVersion = "4.10" } Describe "General project validation" -Tag Unit { diff --git a/Tests/Style.Tests.ps1 b/Tests/Style.Tests.ps1 index 009d651..45017d1 100644 --- a/Tests/Style.Tests.ps1 +++ b/Tests/Style.Tests.ps1 @@ -1,5 +1,5 @@ #requires -modules BuildHelpers -#requires -modules Pester +#requires -modules @{ ModuleName = "Pester"; ModuleVersion = "4.10" } Describe "Validation of code styling" { diff --git a/Tools/build.requirements.psd1 b/Tools/build.requirements.psd1 index f168bcd..3ab9a0a 100644 --- a/Tools/build.requirements.psd1 +++ b/Tools/build.requirements.psd1 @@ -10,17 +10,17 @@ } Version = "latest" } - Configuration = @{ + Configuration = @{ Parameters = @{ AllowClobber = $true } - Version = "latest" + Version = "latest" } Pester = @{ Parameters = @{ SkipPublisherCheck = $true } - Version = "4.4.2" + Version = "4.10" } platyPS = "latest" PSScriptAnalyzer = @{ diff --git a/docs/en-US/classes/ConfluencePS.Attachment.md b/docs/en-US/classes/ConfluencePS.Attachment.md index 91621cc..50548f5 100644 --- a/docs/en-US/classes/ConfluencePS.Attachment.md +++ b/docs/en-US/classes/ConfluencePS.Attachment.md @@ -34,7 +34,7 @@ The Id is the unique identifier of the `Attachment`. _This value can't be changed and is assigned by the server._ ```yaml -Type: Int32 +Type: UInt64 Required: True Default value: None ``` @@ -90,7 +90,7 @@ Default value: None The file size of the `Attachment` in bytes. ```yaml -Type: Int32 +Type: UInt32 Required: True Default value: None ``` @@ -110,7 +110,7 @@ Default value: None The page ID in where the `Attachment` is stored. ```yaml -Type: Int32 +Type: UInt64 Required: True Default value: None ``` diff --git a/docs/en-US/classes/ConfluencePS.Label.md b/docs/en-US/classes/ConfluencePS.Label.md index 93766af..288ed5f 100644 --- a/docs/en-US/classes/ConfluencePS.Label.md +++ b/docs/en-US/classes/ConfluencePS.Label.md @@ -41,7 +41,7 @@ The Id is the identifier of a `Label` used by the Confluence server internally. _This value can't be changed and is assigned by the server._ ```yaml -Type: Int32 +Type: UInt64 Required: True Default value: None ``` diff --git a/docs/en-US/classes/ConfluencePS.Page.md b/docs/en-US/classes/ConfluencePS.Page.md index 370c8be..66d7fd4 100644 --- a/docs/en-US/classes/ConfluencePS.Page.md +++ b/docs/en-US/classes/ConfluencePS.Page.md @@ -42,7 +42,7 @@ The Id is the unique identifier of the `Page`. _This value can't be changed and is assigned by the server._ ```yaml -Type: Int32 +Type: UInt64 Required: True Default value: None ``` diff --git a/docs/en-US/classes/ConfluencePS.Space.md b/docs/en-US/classes/ConfluencePS.Space.md index 3960925..8e6647e 100644 --- a/docs/en-US/classes/ConfluencePS.Space.md +++ b/docs/en-US/classes/ConfluencePS.Space.md @@ -42,7 +42,7 @@ _This value can't be changed for a space and it's value is assigned by the serve **It is recommended to use `Key` as identifier when using this object.** ```yaml -Type: Int32 +Type: UInt64 Required: True Default value: None ``` diff --git a/docs/en-US/commands/Add-Attachment.md b/docs/en-US/commands/Add-Attachment.md index e63338a..b32594f 100644 --- a/docs/en-US/commands/Add-Attachment.md +++ b/docs/en-US/commands/Add-Attachment.md @@ -16,7 +16,7 @@ Add a new attachment to an existing Confluence page. ## SYNTAX ```powershell -Add-ConfluenceAttachment -ApiUri -Credential [[-PageID] ] -FilePath [-WhatIf] [-Confirm] +Add-ConfluenceAttachment -ApiUri -Credential [[-PageID] ] -FilePath [-WhatIf] [-Confirm] ``` ## DESCRIPTION @@ -104,7 +104,7 @@ The ID of the page to which apply the Attachment to. Accepts multiple IDs, including via pipeline input. ```yaml -Type: Int32 +Type: UInt64 Parameter Sets: (All) Aliases: ID diff --git a/docs/en-US/commands/Add-Label.md b/docs/en-US/commands/Add-Label.md index e378990..4c04829 100644 --- a/docs/en-US/commands/Add-Label.md +++ b/docs/en-US/commands/Add-Label.md @@ -16,7 +16,7 @@ Add a new global label to an existing Confluence page. ## SYNTAX ```powershell -Add-ConfluenceLabel -ApiUri -Credential [[-PageID] ] -Label [-WhatIf] [-Confirm] +Add-ConfluenceLabel -ApiUri -Credential [[-PageID] ] -Label [-WhatIf] [-Confirm] ``` ## DESCRIPTION @@ -113,7 +113,7 @@ The ID of the page to which apply the label to. Accepts multiple IDs, including via pipeline input. ```yaml -Type: Int32[] +Type: UInt64[] Parameter Sets: (All) Aliases: ID diff --git a/docs/en-US/commands/Get-Attachment.md b/docs/en-US/commands/Get-Attachment.md index 89875e8..c665a1b 100644 --- a/docs/en-US/commands/Get-Attachment.md +++ b/docs/en-US/commands/Get-Attachment.md @@ -16,7 +16,7 @@ Retrieve the child Attachments of a given wiki Page. ## SYNTAX ```powershell -Get-ConfluenceAttachment -ApiUri -Credential [-PageID] [-FileNameFilter ] [-MediaTypeFilter ] [-Skip ] [-First ] [-PageSize ] [-IncludeTotalCount] +Get-ConfluenceAttachment -ApiUri -Credential [-PageID] [-FileNameFilter ] [-MediaTypeFilter ] [-Skip ] [-First ] [-PageSize ] [-IncludeTotalCount] ``` ## DESCRIPTION @@ -118,7 +118,7 @@ Accept wildcard characters: False Return attachments for a list of page IDs. ```yaml -Type: Int32[] +Type: UInt64[] Parameter Sets: (All) Aliases: @@ -173,7 +173,7 @@ This setting can be tuned to get better performance according to the load on the > Warning: too high of a PageSize can cause a timeout on the request. ```yaml -Type: Int32 +Type: UInt32 Parameter Sets: (All) Aliases: diff --git a/docs/en-US/commands/Get-ChildPage.md b/docs/en-US/commands/Get-ChildPage.md index 8348346..5f47b81 100644 --- a/docs/en-US/commands/Get-ChildPage.md +++ b/docs/en-US/commands/Get-ChildPage.md @@ -16,7 +16,7 @@ Retrieve the child pages of a given wiki page or pages. ## SYNTAX ```powershell -Get-ConfluenceChildPage -ApiUri -Credential [-PageID] [-Recurse] [-PageSize ] [-IncludeTotalCount] [-Skip ] [-First ] [-ExcludePageBody] +Get-ConfluenceChildPage -ApiUri -Credential [-PageID] [-Recurse] [-PageSize ] [-IncludeTotalCount] [-Skip ] [-First ] [-ExcludePageBody] ``` ## DESCRIPTION @@ -104,7 +104,7 @@ Accept wildcard characters: False Filter results by page ID. ```yaml -Type: Int32 +Type: UInt64 Parameter Sets: (All) Aliases: ID @@ -140,7 +140,7 @@ This setting can be tuned to get better performance according to the load on the > Warning: too high of a PageSize can cause a timeout on the request. ```yaml -Type: Int32 +Type: UInt32 Parameter Sets: (All) Aliases: diff --git a/docs/en-US/commands/Get-Label.md b/docs/en-US/commands/Get-Label.md index 39439ca..abfecaf 100644 --- a/docs/en-US/commands/Get-Label.md +++ b/docs/en-US/commands/Get-Label.md @@ -16,7 +16,7 @@ Retrieve all labels applied to the given object(s). ## SYNTAX ```powershell -Get-ConfluenceLabel -ApiUri -Credential [-PageID] [-PageSize ] +Get-ConfluenceLabel -ApiUri -Credential [-PageID] [-PageSize ] [-IncludeTotalCount] [-Skip ] [-First ] ``` @@ -103,7 +103,7 @@ List the PageID number to check for labels. Accepts piped input. ```yaml -Type: Int32[] +Type: UInt64[] Parameter Sets: (All) Aliases: ID @@ -123,7 +123,7 @@ This setting can be tuned to get better performance according to the load on the > Warning: too high of a PageSize can cause a timeout on the request. ```yaml -Type: Int32 +Type: UInt32 Parameter Sets: (All) Aliases: diff --git a/docs/en-US/commands/Get-Page.md b/docs/en-US/commands/Get-Page.md index edf8750..0465c21 100644 --- a/docs/en-US/commands/Get-Page.md +++ b/docs/en-US/commands/Get-Page.md @@ -18,31 +18,31 @@ Retrieve a listing of pages in your Confluence instance. ### byId (Default) ```powershell -Get-ConfluencePage -ApiUri -Credential [-PageID] [-PageSize ] [-IncludeTotalCount] [-Skip ] [-First ] [-ExcludePageBody] +Get-ConfluencePage -ApiUri -Credential [-PageID] [-PageSize ] [-IncludeTotalCount] [-Skip ] [-First ] [-ExcludePageBody] ``` ### byLabel ```powershell -Get-ConfluencePage -ApiUri -Credential [-SpaceKey ] [-Space ] -Label [-PageSize ] [-IncludeTotalCount] [-Skip ] [-First ] [-ExcludePageBody] +Get-ConfluencePage -ApiUri -Credential [-SpaceKey ] [-Space ] -Label [-PageSize ] [-IncludeTotalCount] [-Skip ] [-First ] [-ExcludePageBody] ``` ### bySpace ```powershell -Get-ConfluencePage -ApiUri -Credential -SpaceKey [-Title ] [-PageSize ] [-IncludeTotalCount] [-Skip ] [-First ] [-ExcludePageBody] +Get-ConfluencePage -ApiUri -Credential -SpaceKey [-Title ] [-PageSize ] [-IncludeTotalCount] [-Skip ] [-First ] [-ExcludePageBody] ``` ### byQuery ```powershell -Get-ConfluencePage -ApiUri -Credential [-Query ] [-PageSize ] [-IncludeTotalCount] [-Skip ] [-First ] [-ExcludePageBody] +Get-ConfluencePage -ApiUri -Credential [-Query ] [-PageSize ] [-IncludeTotalCount] [-Skip ] [-First ] [-ExcludePageBody] ``` ### bySpaceObject ```powershell -Get-ConfluencePage -ApiUri -Credential -Space [-Title ] [-PageSize ] [-IncludeTotalCount] [-Skip ] [-First ] [-ExcludePageBody] +Get-ConfluencePage -ApiUri -Credential -Space [-Title ] [-PageSize ] [-IncludeTotalCount] [-Skip ] [-First ] [-ExcludePageBody] ``` ## DESCRIPTION @@ -166,7 +166,7 @@ Filter results by page ID. Best option if you already know the ID. ```yaml -Type: Int32[] +Type: UInt64[] Parameter Sets: byId Aliases: ID @@ -294,7 +294,7 @@ This setting can be tuned to get better performance according to the load on the > Warning: too high of a PageSize can cause a timeout on the request. ```yaml -Type: Int32 +Type: UInt32 Parameter Sets: (All) Aliases: diff --git a/docs/en-US/commands/Get-Space.md b/docs/en-US/commands/Get-Space.md index f66b201..e95efce 100644 --- a/docs/en-US/commands/Get-Space.md +++ b/docs/en-US/commands/Get-Space.md @@ -17,7 +17,7 @@ Retrieve a listing of spaces in your Confluence instance. ## SYNTAX ```powershell -Get-ConfluenceSpace -ApiUri -Credential [[-SpaceKey] ] [-PageSize ] [-IncludeTotalCount] [-Skip ] [-First ] +Get-ConfluenceSpace -ApiUri -Credential [[-SpaceKey] ] [-PageSize ] [-IncludeTotalCount] [-Skip ] [-First ] ``` ## DESCRIPTION @@ -133,7 +133,7 @@ This setting can be tuned to get better performance according to the load on the > Warning: too high of a PageSize can cause a timeout on the request. ```yaml -Type: Int32 +Type: UInt32 Parameter Sets: (All) Aliases: diff --git a/docs/en-US/commands/New-Page.md b/docs/en-US/commands/New-Page.md index 83dea54..6b103c2 100644 --- a/docs/en-US/commands/New-Page.md +++ b/docs/en-US/commands/New-Page.md @@ -18,7 +18,7 @@ Create a new page on your Confluence instance. ### byParameters (Default) ```powershell -New-ConfluencePage -ApiUri -Credential -Title [-ParentID ] [-Parent ] [-SpaceKey ] [-Space ] [-Body ] [-Convert] [-WhatIf] [-Confirm] +New-ConfluencePage -ApiUri -Credential -Title [-ParentID ] [-Parent ] [-SpaceKey ] [-Space ] [-Body ] [-Convert] [-WhatIf] [-Confirm] ``` ### byObject @@ -193,7 +193,7 @@ The ID of the parent page. > NOTE: This feature is not in the 5.8 REST API documentation, and should be considered experimental. ```yaml -Type: Int32 +Type: UInt64 Parameter Sets: byParameters Aliases: diff --git a/docs/en-US/commands/Remove-Label.md b/docs/en-US/commands/Remove-Label.md index 505c43e..c8dcf80 100644 --- a/docs/en-US/commands/Remove-Label.md +++ b/docs/en-US/commands/Remove-Label.md @@ -16,7 +16,7 @@ Remove a label from existing Confluence content. ## SYNTAX ```powershell -Remove-ConfluenceLabel -ApiUri -Credential [-PageID] [-Label ] [-WhatIf] [-Confirm] +Remove-ConfluenceLabel -ApiUri -Credential [-PageID] [-Label ] [-WhatIf] [-Confirm] ``` ## DESCRIPTION @@ -114,7 +114,7 @@ The page ID to remove the label from. Accepts multiple IDs via pipeline input. ```yaml -Type: Int32[] +Type: UInt64[] Parameter Sets: (All) Aliases: ID diff --git a/docs/en-US/commands/Remove-Page.md b/docs/en-US/commands/Remove-Page.md index fe6958e..7d66172 100644 --- a/docs/en-US/commands/Remove-Page.md +++ b/docs/en-US/commands/Remove-Page.md @@ -16,7 +16,7 @@ Trash an existing Confluence page. ## SYNTAX ```powershell -Remove-ConfluencePage -ApiUri -Credential [-PageID] [-WhatIf] [-Confirm] +Remove-ConfluencePage -ApiUri -Credential [-PageID] [-WhatIf] [-Confirm] ``` ## DESCRIPTION @@ -113,7 +113,7 @@ The page ID to delete. Accepts multiple IDs via pipeline input. ```yaml -Type: Int32[] +Type: UInt64[] Parameter Sets: (All) Aliases: ID diff --git a/docs/en-US/commands/Set-Info.md b/docs/en-US/commands/Set-Info.md index 5f3ef2b..26559d5 100644 --- a/docs/en-US/commands/Set-Info.md +++ b/docs/en-US/commands/Set-Info.md @@ -16,7 +16,7 @@ Specify wiki location and authorization for use in this session's REST API reque ## SYNTAX ```powershell -Set-ConfluenceInfo [[-BaseURi] ] [[-Credential] ] [[-PageSize] ] [-PromptCredentials] +Set-ConfluenceInfo [[-BaseURi] ] [[-Credential] ] [[-PageSize] ] [-PromptCredentials] ``` ## DESCRIPTION @@ -111,7 +111,7 @@ Default PageSize for the invocations. More info in the Notes field of this help file. ```yaml -Type: Int32 +Type: UInt32 Parameter Sets: (All) Aliases: diff --git a/docs/en-US/commands/Set-Label.md b/docs/en-US/commands/Set-Label.md index 06d8ec7..90b2fb2 100644 --- a/docs/en-US/commands/Set-Label.md +++ b/docs/en-US/commands/Set-Label.md @@ -16,7 +16,7 @@ Set the labels applied to existing Confluence content. ## SYNTAX ```powershell -Set-Label -ApiUri -Credential [-PageID] -Label [-WhatIf] [-Confirm] +Set-Label -ApiUri -Credential [-PageID] -Label [-WhatIf] [-Confirm] ``` ## DESCRIPTION @@ -104,7 +104,7 @@ The page ID to remove the label from. Accepts multiple IDs via pipeline input. ```yaml -Type: Int32[] +Type: UInt64[] Parameter Sets: (All) Aliases: ID diff --git a/docs/en-US/commands/Set-Page.md b/docs/en-US/commands/Set-Page.md index c27c300..e828f81 100644 --- a/docs/en-US/commands/Set-Page.md +++ b/docs/en-US/commands/Set-Page.md @@ -18,7 +18,7 @@ Edit an existing Confluence page. ### byParameters (Default) ```powershell -Set-ConfluencePage -ApiUri -Credential -PageID [-Title ] [-Body ] [-Convert] [-ParentID ] [-Parent ] [-WhatIf] [-Confirm] +Set-ConfluencePage -ApiUri -Credential -PageID [-Title ] [-Body ] [-Convert] [-ParentID ] [-Parent ] [-WhatIf] [-Confirm] ``` ### byObject @@ -148,7 +148,7 @@ Accept wildcard characters: False The ID of the page to edit. ```yaml -Type: Int32 +Type: UInt64 Parameter Sets: byParameters Aliases: ID @@ -215,7 +215,7 @@ Optionally define a new parent page. If unspecified, no change. ```yaml -Type: Int32 +Type: UInt64 Parameter Sets: byParameters Aliases: