Microsoft.Graph.PlusPlus.types.ps1xml

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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
<Types>
    <Type><Name>Microsoft.Graph.PowerShell.Models.MicrosoftGraphUser</Name><Members>
       <PropertySet><Name>Organization</Name><ReferencedProperties>
            <Name>UserPrincipalName</Name>
            <Name>DisplayName</Name>
            <Name>JobTitle</Name>
            <Name>Department</Name>
            <Name>ManagerName</Name>
            <Name>Usagelocation</Name>
            <Name>Licensed</Name>
        </ReferencedProperties></PropertySet>
        <ScriptProperty><Name>Score</Name><GetScriptBlock>
            $This.scoredEmailAddresses[0].relevanceScore
        </GetScriptBlock></ScriptProperty>
        <AliasProperty><Name>emailaddresses</Name>
            <ReferencedMemberName>scoredEmailAddresses</ReferencedMemberName>
        </AliasProperty>
        <ScriptProperty><Name>ManagerName</Name><GetScriptBlock>
            $This.Manager.displayName
        </GetScriptBlock></ScriptProperty>
        <ScriptProperty><Name>ManagerMail</Name><GetScriptBlock>
            $This.Manager.Mail
        </GetScriptBlock></ScriptProperty>
 
        <ScriptProperty><Name>Licensed</Name><GetScriptBlock>
            if ($This.AssignedLicenses) {$true} else {$null}
        </GetScriptBlock></ScriptProperty>
    </Members></Type>
    <Type><Name>Microsoft.Graph.PowerShell.Models.MicrosoftGraphEvent</Name><Members>
        <ScriptProperty><Name>When</Name><GetScriptBlock>
            $s = [convert]::ToDateTime($this.Start.datetime)
            $e = [convert]::ToDateTime($this.end.datetime)
            if ($s.AddDays(1) -eq $e -and
                $s.hour -eq 0 -and $s.minute -eq 0 ) {
                $s.ToShortDateString() + ' All day'
            }
            else {$s.ToString("g") + ' to ' + $e.ToString("g") + $this.End.timezone}
        </GetScriptBlock></ScriptProperty>
        <ScriptProperty><Name>StartDateTime</Name><GetScriptBlock>
            [convert]::ToDateTime($this.start.dateTime)
        </GetScriptBlock></ScriptProperty>
        <ScriptProperty><Name>EndDateTime</Name><GetScriptBlock>
            [convert]::ToDateTime($this.end.dateTime)
        </GetScriptBlock></ScriptProperty>
        <ScriptProperty><Name>Where</Name>
            <GetScriptBlock>$this.location.displayname
        </GetScriptBlock></ScriptProperty>
    </Members></Type>
    <Type><Name>Microsoft.Graph.PowerShell.Models.MicrosoftGraphDrive</Name><Members>
        <AliasProperty><Name>Drive</Name>
            <ReferencedMemberName>id</ReferencedMemberName>
        </AliasProperty>
    </Members></Type>
    <Type><Name>Microsoft.Graph.PowerShell.Models.MicrosoftGraphDriveItem</Name><Members>
        <AliasProperty><Name>ItemID</Name>
            <ReferencedMemberName>id</ReferencedMemberName>
        </AliasProperty>
        <ScriptProperty><Name>Drive</Name><GetScriptBlock>
            $this.ParentReference.DriveID
        </GetScriptBlock></ScriptProperty>
    </Members></Type>
    <Type><Name>Microsoft.Graph.PowerShell.Models.MicrosoftGraphSite</Name><Members>
        <ScriptProperty><Name>Template</Name><GetScriptBlock>
            $this.list.template
        </GetScriptBlock></ScriptProperty>
    </Members></Type>
    <Type><Name>Microsoft.Graph.PowerShell.Models.MicrosoftGraphCalendar</Name><Members>
        <AliasProperty><Name>Calendar</Name>
            <ReferencedMemberName>id</ReferencedMemberName>
        </AliasProperty>
    </Members></Type>
    <Type><Name>Microsoft.Graph.PowerShell.Models.MicrosoftGraphSite</Name><Members>
        <ScriptProperty><Name>FromName</Name><GetScriptBlock>
            $this.from.emailAddress.name
        </GetScriptBlock></ScriptProperty>
        <ScriptProperty><Name>FromAddress</Name><GetScriptBlock>
            $this.from.emailAddress.address
        </GetScriptBlock></ScriptProperty>
        <ScriptProperty><Name>BodyText</Name><GetScriptBlock>
            $this.body.content
        </GetScriptBlock></ScriptProperty>
        <ScriptMethod><Name>Move</Name><Script>
            param($Destination)
            Move-GraphMailItem -Item $this @PSBoundParameters
        </Script></ScriptMethod>
    </Members></Type>
    <Type><Name>Microsoft.Graph.PowerShell.Models.MicrosoftGraphAttachment</Name><Members>
        <ScriptMethod><Name>Move</Name><Script>
            param($Destination)
            Save-GraphMailAttachment -Attachment $this @PSBoundParameters
        </Script></ScriptMethod>
    </Members></Type>
    <Type><Name>Microsoft.Graph.PowerShell.Models.MicrosoftGraphContact</Name><Members>
        <MemberSet><Name>PSStandardMembers</Name><Members>
            <PropertySet><Name>DefaultDisplayPropertySet</Name><ReferencedProperties>
                <Name>displayname</Name>
                <Name>jobtitle</Name>
                <Name>companyname</Name>
                <Name>mail</Name>
                <Name>mobile</Name>
                <Name>business</Name>
                <Name>home</Name>
            </ReferencedProperties></PropertySet>
        </Members></MemberSet>
        <AliasProperty><Name>mobile</Name>
            <ReferencedMemberName>mobilephone</ReferencedMemberName>
        </AliasProperty>
        <ScriptProperty><Name>business</Name><GetScriptBlock>
            $this.businessPhones[0]
        </GetScriptBlock></ScriptProperty>
        <ScriptProperty><Name>home</Name><GetScriptBlock>
            this.HomePhones[0]
        </GetScriptBlock></ScriptProperty>
    </Members></Type>
    <Type><Name>Microsoft.Graph.PowerShell.Models.MicrosoftGraphReminder</Name><Members>
        <AliasProperty><Name>Subject</Name>
            <ReferencedMemberName>eventSubject</ReferencedMemberName>
        </AliasProperty>
        <AliasProperty><Name>Location</Name>
            <ReferencedMemberName>eventLocation</ReferencedMemberName>
        </AliasProperty>
        <ScriptProperty><Name>When</Name><GetScriptBlock>
            if ( [System.Convert]::ToDateTime($this.eventStartTime.datetime).AddDays(1) -eq
                  [System.Convert]::ToDateTime($this.eventEndTime.datetime )) {
                    $this.eventStartTime.datetime -replace '(\d{2}:\d{2}):00$','$1' -replace '00:00$','All day'
            }
            else { ($this.eventStartTime.datetime -replace '(\d{2}:\d{2}):00$','$1') + ' to ' +
                   ($this.eventEndTime.datetime -replace '(\d{2}:\d{2}):00$','$1') + $this.eventEndTime.timezone }
        </GetScriptBlock></ScriptProperty>
        <ScriptProperty><Name>Start</Name><GetScriptBlock>
            [System.Convert]::ToDateTime($this.eventStartTime.datetime )
        </GetScriptBlock></ScriptProperty>
        <ScriptProperty><Name>End</Name><GetScriptBlock>
            [System.Convert]::ToDateTime($this.eventEndTime.datetime )
        </GetScriptBlock></ScriptProperty>
        <ScriptProperty><Name>Reminder</Name><GetScriptBlock>
            [System.Convert]::ToDateTime($this.reminderFireTime.datetime)
        </GetScriptBlock></ScriptProperty>
    </Members></Type>
    <Type><Name>Microsoft.Graph.PowerShell.Models.MicrosoftGraphMailTips</Name><Members>
        <ScriptProperty><Name>Address</Name><GetScriptBlock>
            $this.EmailAddress.Address
        </GetScriptBlock></ScriptProperty>
        <ScriptProperty><Name>MessageText</Name><GetScriptBlock>
            $this.AutomaticReplies.Message
        </GetScriptBlock></ScriptProperty>
        <ScriptProperty><Name>MessageStart</Name><GetScriptBlock>
            $this.AutomaticReplies.scheduledStartTime.DateTime
        </GetScriptBlock></ScriptProperty>
        <ScriptProperty><Name>MessageEnd</Name><GetScriptBlock>
            $this.AutomaticReplies.scheduledEndTime.DateTime
        </GetScriptBlock></ScriptProperty>
    </Members></Type>
    <Type><Name>Microsoft.Graph.PowerShell.Models.MicrosoftGraphList</Name><Members>
        <ScriptProperty><Name>Template</Name><GetScriptBlock>
            $this.list.template
        </GetScriptBlock></ScriptProperty>
    </Members></Type>
    <Type><Name>Microsoft.Graph.PowerShell.Models.MicrosoftGraphChatMessage</Name><Members>
        <ScriptProperty><Name>Team</Name><GetScriptBlock>
            $this.ChannelIdentity.TeamID
        </GetScriptBlock></ScriptProperty>
        <ScriptProperty><Name>Channel</Name><GetScriptBlock>
            $this.ChannelIdentity.ChannelId
        </GetScriptBlock></ScriptProperty>
    </Members></Type>
    <Type><Name>Microsoft.Graph.PowerShell.Models.MicrosoftGraphTeamsTab</Name><Members>
        <ScriptProperty><Name>TeamsAppName</Name><GetScriptBlock>
            $this.teamsApp.displayName
        </GetScriptBlock></ScriptProperty>
    </Members></Type>
    <Type><Name>Microsoft.Graph.PowerShell.Models.MicrosoftGraphSignIn</Name><Members>
        <ScriptProperty><Name>City</Name><GetScriptBlock>
             $this.location.City
        </GetScriptBlock></ScriptProperty>
        <ScriptProperty><Name>State</Name><GetScriptBlock>
             $this.location.State
        </GetScriptBlock></ScriptProperty>
        <ScriptProperty><Name>Country</Name><GetScriptBlock>
            $this.location.countryOrRegion
        </GetScriptBlock></ScriptProperty>
        <ScriptProperty><Name>Lat</Name><GetScriptBlock>
            $this.location.geoCoordinates.latitude
        </GetScriptBlock></ScriptProperty>
        <ScriptProperty><Name>Long</Name><GetScriptBlock>
            $this.location.geoCoordinates.longitude
        </GetScriptBlock></ScriptProperty>
        <ScriptProperty><Name>Browser</Name><GetScriptBlock>
            $this.deviceDetail.browser
        </GetScriptBlock></ScriptProperty>
        <ScriptProperty><Name>Device</Name><GetScriptBlock>
            $this.deviceDetail.displayName
        </GetScriptBlock></ScriptProperty>
        <ScriptProperty><Name>OperatingSystem</Name><GetScriptBlock>
            $this.deviceDetail.OperatingSystem
        </GetScriptBlock></ScriptProperty>
        <ScriptProperty><Name>Date</Name><GetScriptBlock>
            [datetime]$this.createdDateTime
        </GetScriptBlock></ScriptProperty>
    </Members></Type>
    <Type><Name>Microsoft.Graph.PowerShell.Models.MicrosoftGraphDirectoryAudit</Name><Members>
        <ScriptProperty><Name>User</Name><GetScriptBlock>
            $this.initiatedBy.user.userPrincipalName
        </GetScriptBlock></ScriptProperty>
        <ScriptProperty><Name>App</Name><GetScriptBlock>
            $this.initiatedBy.App.DisplayName
        </GetScriptBlock></ScriptProperty>
    </Members></Type>
</Types>