lib/Classes/Public/TMProfile.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
class TMProfile {
    [String]$Name

    [String]$Server

    [String]$Project

    [PSCredential]$Credential

    [Bool]$AllowInsecureSSL

    [Bool]$Api

    TMProfile() {
        
    }

    TMProfile([String]$_name) {
        $this.Name = $_name
    }

    TMProfile([String]$_name, [String]$_server, [String]$_project = '', [PSCredential]$_credential, [Bool]$_allowInsecureSSL = $false, [Bool]$_api = $true) {
        $this.Name = $_name
        $this.Server = $_server
        $this.Project = $_project
        $this.Credential = $_credential
        $this.AllowInsecureSSL = $_allowInsecureSSL
        $this.Api = $_api
    }
}