Skip to content

Commit cc27434

Browse files
committed
Add ReportServerIPAddress class to represent IP address entries
1 parent a86073b commit cc27434

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<#
2+
.SYNOPSIS
3+
Represents an IP address entry returned by the ListIPAddresses CIM method.
4+
5+
.DESCRIPTION
6+
This class represents an IP address available on the report server machine,
7+
including the IP version (V4 or V6) and whether it is DHCP-enabled.
8+
9+
.PARAMETER IPAddress
10+
The IP address string.
11+
12+
.PARAMETER IPVersion
13+
The version of the IP address. Values are 'V4' for IPv4 or 'V6' for IPv6.
14+
15+
.PARAMETER IsDhcpEnabled
16+
Indicates whether the IP address is DHCP-enabled. If true, the IP address
17+
is dynamic and should not be used for TLS bindings.
18+
19+
.EXAMPLE
20+
[ReportServerIPAddress]::new()
21+
22+
Creates a new empty ReportServerIPAddress instance.
23+
24+
.EXAMPLE
25+
$ipAddress = [ReportServerIPAddress]::new()
26+
$ipAddress.IPAddress = '192.168.1.1'
27+
$ipAddress.IPVersion = 'V4'
28+
$ipAddress.IsDhcpEnabled = $false
29+
30+
Creates a new ReportServerIPAddress instance with property values.
31+
#>
32+
class ReportServerIPAddress
33+
{
34+
[System.String]
35+
$IPAddress
36+
37+
[System.String]
38+
$IPVersion
39+
40+
[System.Boolean]
41+
$IsDhcpEnabled
42+
43+
ReportServerIPAddress()
44+
{
45+
}
46+
}

0 commit comments

Comments
 (0)