Defines an object for Attachments in Confluence.
New-Object -TypeName ConfluencePS.Attachment [-Property @{}]
[ConfluencePS.Attachment]@{}
fixThe Attachment
is an object that describes Attachments in Confluence.
This class does not have a constructor.
The Id is the unique identifier of the Attachment
.
This value can’t be changed and is assigned by the server.
Type: Int32
Required: True
Default value: None
The Status describes the current status of the Attachment
.
Possible values are: current
, trashed
and draft
.
Type: String
Required: True
Default value: current
The filename / Title of the Attachment
as stored by the server.
Note that this name is not unique between pages and can contain invalid characters for windows files.
Type: String
Required: True
Default value: None
The filename that will be used by Get-AttachmentFile.
Note that this is designed to be unique as the page id is prepended to the name and invalid characters removed.
Type: String
Required: True
Default value: None
The MIME media type of the Attachment
.
Type: String
Required: True
Default value: None
The file size of the Attachment
in bytes.
Type: Int32
Required: True
Default value: None
The Space key in where the Attachment
is stored.
Type: String
Required: True
Default value: None
The page ID in where the Attachment
is stored.
Type: Int32
Required: True
Default value: None
Contains the information about the latest version of the Attachment
.
Type: ConfluencePS.Version
Required: True
Default value: None
Contains the URL under which the Attachment
is accessible.
Type: String
Required: True
Default value: None
The method for casting an object of this class to string is overwritten.
When cast to string, this will return [$Id] $Title
.