Object that describes the a server for AtlassianPS modules to connect to.
AtlassianPS modules per definition connect to a web server. This class describes describes one server.
A new object of type [AtlassianPS.ServerData]
can be create by providing a
string for Name
, Uri
and Type
New-Object -TypeName AtlassianPS.ServerData -ArgumentList "<Name>", "<Uri>", "<Type>"
A new object of type [AtlassianPS.ServerData]
can be create by providing a
hashtable containing keys for Name
, Uri
and Type
[AtlassianPS.ServerData]@{ Id = <Id> Name = "<Name>"; Uri = "<Uri>"; Type = "<Type>" }
Name is used to identify the server. Functions should be able to find the correct server based on this property.
Type: String
Required: True
Default value: None
Uri is the web address that will be used for this server entry.
Type: Uri
Required: True
Default value: None
Type is a AtlassianPS.ServerType that defines what is the type of this server entry
Type: AtlassianPS.ServerType
Required: True
Default value: None
Session is a [WebRequestSession]
object which contains the information for connecting to this server
Type: WebRequestSession
Required: False
Default value: None
Headers is a [Hashtable]
describing the Headers that should be used for this server
Type: Hashtable
Required: False
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
.