src/cmdlets/common/Formats.ps1xml

<?xml version="1.0" encoding="utf-8"?>

<!-- *******************************************************************
Copyright 2021, Adam Edwards

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
******************************************************************** -->

<Configuration>
  <ViewDefinitions>

    <View>
      <Name>GraphStatus</Name>
      <ViewSelectedBy>
        <TypeName>GraphLogEntryDisplayType</TypeName>
      </ViewSelectedBy>
      <TableControl>
        <TableHeaders>
          <TableColumnHeader>
            <Label>RequestTimestamp</Label>
          </TableColumnHeader>
          <TableColumnHeader>
            <Label>Status</Label>
            <Alignment>Right</Alignment>
          </TableColumnHeader>
          <TableColumnHeader>
            <Label>Size</Label>
            <Alignment>Right</Alignment>
          </TableColumnHeader>
          <TableColumnHeader>
            <Label>Method</Label>
            <Alignment>Right</Alignment>
          </TableColumnHeader>
          <TableColumnHeader>
          </TableColumnHeader>
          <TableColumnHeader>
          </TableColumnHeader>
        </TableHeaders>
        <TableRowEntries>
          <TableRowEntry>
            <TableColumnItems>
              <TableColumnItem>
                <ScriptBlock>$_.RequestTimestamp.DateTime</ScriptBlock>
              </TableColumnItem>
              <TableColumnItem>
                <ScriptBlock>$::.GraphFormatter.StatusCode($_.Status)</ScriptBlock>
              </TableColumnItem>
              <TableColumnItem>
                <PropertyName>ResponseRawContentSize</PropertyName>
              </TableColumnItem>
              <TableColumnItem>
                <ScriptBlock>$::.GraphFormatter.RestMethod($_.Method)</ScriptBlock>
              </TableColumnItem>
              <TableColumnItem>
                <PropertyName>Uri</PropertyName>
              </TableColumnItem>
              <TableColumnItem>
                <PropertyName>ErrorResponse</PropertyName>
              </TableColumnItem>
            </TableColumnItems>
          </TableRowEntry>
        </TableRowEntries>
      </TableControl>
    </View>

    <View>
      <Name>GraphTiming</Name>
      <ViewSelectedBy>
        <TypeName>GraphLogEntryDisplayType</TypeName>
      </ViewSelectedBy>
      <TableControl>
        <TableHeaders>
          <TableColumnHeader>
          </TableColumnHeader>
          <TableColumnHeader>
            <Label>ClientElapsedTime</Label>
          </TableColumnHeader>
          <TableColumnHeader>
            <Label>Status</Label>
            <Alignment>Right</Alignment>
          </TableColumnHeader>
          <TableColumnHeader>
            <Label>Method</Label>
            <Alignment>Right</Alignment>
          </TableColumnHeader>
          <TableColumnHeader>
          </TableColumnHeader>
          <TableColumnHeader>
          </TableColumnHeader>
        </TableHeaders>
        <TableRowEntries>
          <TableRowEntry>
            <TableColumnItems>
              <TableColumnItem>
                <PropertyName>RequestTimestamp</PropertyName>
              </TableColumnItem>
              <TableColumnItem>
                <ScriptBlock>$::.GraphFormatter.ResponseElapsedTime($_.ClientElapsedTime)</ScriptBlock>
              </TableColumnItem>
              <TableColumnItem>
                <ScriptBlock>$::.GraphFormatter.StatusCode($_.Status)</ScriptBlock>
              </TableColumnItem>
              <TableColumnItem>
                <ScriptBlock>$::.GraphFormatter.RestMethod($_.Method)</ScriptBlock>
              </TableColumnItem>
              <TableColumnItem>
                <PropertyName>ResourceUri</PropertyName>
              </TableColumnItem>
              <TableColumnItem>
                <PropertyName>ResponseTimestamp</PropertyName>
              </TableColumnItem>
            </TableColumnItems>
          </TableRowEntry>
        </TableRowEntries>
      </TableControl>
    </View>

    <View>
      <Name>GraphDebug</Name>
      <ViewSelectedBy>
        <TypeName>GraphLogEntryDisplayType</TypeName>
      </ViewSelectedBy>
      <TableControl>
        <TableHeaders>
          <TableColumnHeader>
          </TableColumnHeader>
          <TableColumnHeader>
          </TableColumnHeader>
          <TableColumnHeader>
            <Label>Status</Label>
            <Alignment>Right</Alignment>
          </TableColumnHeader>
          <TableColumnHeader>
            <Label>Method</Label>
            <Alignment>Right</Alignment>
          </TableColumnHeader>
          <TableColumnHeader>
          </TableColumnHeader>
          <TableColumnHeader>
            <Label>ResourceUri</Label>
          </TableColumnHeader>
          <TableColumnHeader>
            <Label>Query</Label>
          </TableColumnHeader>
          <TableColumnHeader>
            <Alignment>Right</Alignment>
          </TableColumnHeader>
          <TableColumnHeader>
            <Alignment>Right</Alignment>
          </TableColumnHeader>
          <TableColumnHeader>
          </TableColumnHeader>
        </TableHeaders>
        <TableRowEntries>
          <TableRowEntry>
            <TableColumnItems>
              <TableColumnItem>
                <PropertyName>RequestTimestamp</PropertyName>
              </TableColumnItem>
              <TableColumnItem>
                <PropertyName>ClientRequestId</PropertyName>
              </TableColumnItem>
              <TableColumnItem>
                <ScriptBlock>$::.GraphFormatter.StatusCode($_.Status)</ScriptBlock>
              </TableColumnItem>
              <TableColumnItem>
                <ScriptBlock>$::.GraphFormatter.RestMethod($_.Method)</ScriptBlock>
              </TableColumnItem>
              <TableColumnItem>
                <PropertyName>Version</PropertyName>
              </TableColumnItem>
              <TableColumnItem>
                <ScriptBlock>$::.ColorString.ToStandardColorString($_.ResourceUri, 'Emphasis1', $null, $null, $null)</ScriptBlock>
              </TableColumnItem>
              <TableColumnItem>
                <ScriptBlock>$::.ColorString.ToStandardColorString($_.Query, 'Emphasis2', $null, $null, $null)</ScriptBlock>
              </TableColumnItem>
              <TableColumnItem>
                <PropertyName>ResponseContentSize</PropertyName>
              </TableColumnItem>
              <TableColumnItem>
                <PropertyName>ResponseRawContentSize</PropertyName>
              </TableColumnItem>
              <TableColumnItem>
                <PropertyName>ErrorResponse</PropertyName>
              </TableColumnItem>
            </TableColumnItems>
          </TableRowEntry>
        </TableRowEntries>
      </TableControl>
    </View>

    <View>
      <Name>GraphAuthentication</Name>
      <ViewSelectedBy>
        <TypeName>GraphLogEntryDisplayType</TypeName>
      </ViewSelectedBy>
      <TableControl>
        <TableHeaders>
          <TableColumnHeader>
            <Label>RequestTimestamp</Label>
          </TableColumnHeader>
          <TableColumnHeader>
          </TableColumnHeader>
          <TableColumnHeader>
          </TableColumnHeader>
          <TableColumnHeader>
          </TableColumnHeader>
          <TableColumnHeader>
            <Label>Status</Label>
            <Alignment>Right</Alignment>
          </TableColumnHeader>
          <TableColumnHeader>
            <Label>Method</Label>
            <Alignment>Right</Alignment>
          </TableColumnHeader>
          <TableColumnHeader>
            <Label>ResourceUri</Label>
          </TableColumnHeader>
          <TableColumnHeader>
          </TableColumnHeader>
        </TableHeaders>
        <TableRowEntries>
          <TableRowEntry>
            <TableColumnItems>
              <TableColumnItem>
                <ScriptBlock>$_.RequestTimestamp.DateTime</ScriptBlock>
              </TableColumnItem>
              <TableColumnItem>
                <PropertyName>AppId</PropertyName>
              </TableColumnItem>
              <TableColumnItem>
                <PropertyName>UserUpn</PropertyName>
              </TableColumnItem>
              <TableColumnItem>
                <PropertyName>UserObjectId</PropertyName>
              </TableColumnItem>
              <TableColumnItem>
                <ScriptBlock>$::.GraphFormatter.StatusCode($_.Status)</ScriptBlock>
              </TableColumnItem>
              <TableColumnItem>
                <ScriptBlock>$::.GraphFormatter.RestMethod($_.Method)</ScriptBlock>
              </TableColumnItem>
              <TableColumnItem>
                <ScriptBlock>$::.ColorString.ToStandardColorString($_.ResourceUri, 'Emphasis1', $null, $null, $null)</ScriptBlock>
              </TableColumnItem>
              <TableColumnItem>
                <PropertyName>Permissions</PropertyName>
              </TableColumnItem>
            </TableColumnItems>
          </TableRowEntry>
        </TableRowEntries>
      </TableControl>

    </View>

    <View>
      <Name>GraphConnectionOverview</Name>
      <ViewSelectedBy>
        <TypeName>GraphConnection</TypeName>
      </ViewSelectedBy>
      <TableControl>
        <TableHeaders>
          <TableColumnHeader>
            <Label>AppId</Label>
          </TableColumnHeader>
          <TableColumnHeader>
            <Label>ConnectionName</Label>
          </TableColumnHeader>
          <TableColumnHeader>
            <Label>Organization</Label>
          </TableColumnHeader>
          <TableColumnHeader>
            <Label>AuthType</Label>
          </TableColumnHeader>
        </TableHeaders>
        <TableRowEntries>
          <TableRowEntry>
            <TableColumnItems>
              <TableColumnItem>
                <ScriptBlock>$_.identity.app.appid</ScriptBlock>
              </TableColumnItem>
              <TableColumnItem>
                <ScriptBlock>$::.GraphFormatter.ConnectionName($_)</ScriptBlock>
              </TableColumnItem>
              <TableColumnItem>
                <ScriptBlock>$::.ColorString.ToStandardColorString($_.identity.GetTenantId(), 'Emphasis2', $null, $null, $null)</ScriptBlock>
              </TableColumnItem>
              <TableColumnItem>
                <ScriptBlock>$_.identity.app.AuthType</ScriptBlock>
              </TableColumnItem>
            </TableColumnItems>
          </TableRowEntry>
        </TableRowEntries>
      </TableControl>
    </View>

    <View>
      <Name>GraphConnectionInfo</Name>
      <ViewSelectedBy>
        <TypeName>GraphConnection</TypeName>
      </ViewSelectedBy>
      <ListControl>
        <ListEntries>
          <ListEntry>
            <ListItems>
              <ListItem>
                <PropertyName>Id</PropertyName>
              </ListItem>
              <ListItem>
                <Label>Name</Label>
                <ScriptBlock>$::.GraphFormatter.ConnectionName($_)</ScriptBlock>
              </ListItem>
              <ListItem>
                <Label>Status</Label>
                <ScriptBlock>$::.ColorString.ToStandardColorString($_.getstatus(), 'EnabledState', $null, 'Online', 'Offline')</ScriptBlock>
              </ListItem>
              <ListItem>
                <Label>Connected</Label>
                <ScriptBlock>$::.ColorString.ToStandardColorString($_.Connected, 'EnabledState', $null, $true, $false)</ScriptBlock>
              </ListItem>
              <ListItem>
                <Label>Organization</Label>
                <ItemSelectionCondition>
                  <ScriptBlock>$_.identity.GetTenantId()</ScriptBlock>
                </ItemSelectionCondition>
                <ScriptBlock>$_.identity.GetTenantId()</ScriptBlock>
              </ListItem>
              <ListItem>
                <ItemSelectionCondition>
                  <ScriptBlock>$_.Connected -and $_.identity.app.authType -eq 'Delegated'</ScriptBlock>
                </ItemSelectionCondition>
                <Label>User</Label>
                <ScriptBlock>$::.GraphFormatter.ConnectionUser($_)</ScriptBlock>
              </ListItem>
              <ListItem>
                <Label>AppID</Label>
                <ScriptBlock>$_.identity.app.appid</ScriptBlock>
              </ListItem>
              <ListItem>
                <Label>AuthType</Label>
                <ScriptBlock>$_.identity.app.authtype</ScriptBlock>
              </ListItem>
              <ListItem>
                <Label>AllowMSA</Label>
                <ScriptBlock>$_.identity.AllowMSA</ScriptBlock>
              </ListItem>
              <ListItem>
                <Label>ConsistencyLevel</Label>
                <ScriptBlock>if ( $_.consistencyLevel ) { $_.consistencyLevel } else { 'Auto' }</ScriptBlock>
              </ListItem>
              <ListItem>
                <Label>Endpoint</Label>
                <ScriptBlock>$_.graphendpoint.graph</ScriptBlock>
              </ListItem>
              <ListItem>
                <Label>GraphResourceUri</Label>
                <ScriptBlock>$_.graphendpoint.GraphResourceUri</ScriptBlock>
              </ListItem>
              <ListItem>
                <Label>AuthEndpoint</Label>
                <ScriptBlock>$_.graphendpoint.Authentication</ScriptBlock>
              </ListItem>
              <ListItem>
                <ItemSelectionCondition>
                  <ScriptBlock>! ! $_.UserAgent</ScriptBlock>
                </ItemSelectionCondition>
                <PropertyName>UserAgent</PropertyName>
              </ListItem>
            </ListItems>
          </ListEntry>
        </ListEntries>
      </ListControl>
    </View>

    <View>
      <Name>GraphLogDetail</Name>
      <ViewSelectedBy>
        <TypeName>GraphLogEntryDisplayType</TypeName>
        <TypeName>GraphErrorDetail</TypeName>
      </ViewSelectedBy>

      <ListControl>

        <ListEntries>
          <ListEntry>
            <ListItems>
              <ListItem>
                <PropertyName>RequestTimestamp</PropertyName>
              </ListItem>
              <ListItem>
                <Label>Status</Label>
                <ScriptBlock>$::.GraphFormatter.StatusCode($_.Status)</ScriptBlock>
              </ListItem>
              <ListItem>
                <PropertyName>ErrorResponse</PropertyName>
              </ListItem>
              <ListItem>
                <Label>Method</Label>
                <ScriptBlock>$::.GraphFormatter.RestMethod($_.Method)</ScriptBlock>
              </ListItem>
              <ListItem>
                <Label>Uri</Label>
                <ScriptBlock>$::.ColorString.ToStandardColorString($_.Uri, 'Emphasis1', $null, $null, $null)</ScriptBlock>
              </ListItem>
              <ListItem>
                <PropertyName>RequestBodySize</PropertyName>
              </ListItem>
              <ListItem>
                <Label>ClientElapsedTime</Label>
                <ScriptBlock>$::.GraphFormatter.ResponseElapsedTime($_.ClientElapsedTime)</ScriptBlock>
              </ListItem>
              <ListItem>
                <PropertyName>RequestHeaders</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>ClientRequestId</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>AppId</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>TenantId</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>UserUpn</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>UserObjectId</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>AuthType</PropertyName>
              </ListItem>
              <ListItem>
                <ItemSelectionCondition>
                  <ScriptBlock>$_.LogLevel -eq 'Full' -or $_.LogLevel -eq 'FullRequest'</ScriptBlock>
                </ItemSelectionCondition>
                <PropertyName>RequestBody</PropertyName>
              </ListItem>
              <ListItem>
                <Label>ResourceUri</Label>
                <ScriptBlock>$::.ColorString.ToStandardColorString($_.ResourceUri, 'Emphasis1', $null, $null, $null)</ScriptBlock>
              </ListItem>
              <ListItem>
                <Label>Query</Label>
                <ScriptBlock>$::.ColorString.ToStandardColorString($_.Query, 'Emphasis2', $null, $null, $null)</ScriptBlock>
              </ListItem>
              <ListItem>
                <PropertyName>ResponseTimestamp</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>ResponseClientRequestId</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>ResponseHeaders</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>ResponseContentSize</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>ResponseRawContentSize</PropertyName>
              </ListItem>
              <ListItem>
                <ItemSelectionCondition>
                  <ScriptBlock>$_.LogLevel -eq 'Full' -or $_.LogLevel -eq 'FullResponse'</ScriptBlock>
                </ItemSelectionCondition>
                <PropertyName>ResponseContent</PropertyName>
              </ListItem>
            </ListItems>
          </ListEntry>
        </ListEntries>

      </ListControl>
    </View>

    <View>
      <Name>GraphProfile</Name>
      <ViewSelectedBy>
        <TypeName>GraphProfileSettings</TypeName>
      </ViewSelectedBy>
      <GroupBy>
        <Label>ProfileName</Label>
        <ScriptBlock>$::.ColorString.ToStandardColorString($_.ProfileName, 'Emphasis1', $null, $null, $null)</ScriptBlock>
      </GroupBy>
      <ListControl>

        <ListEntries>
          <ListEntry>
            <ListItems>

              <ListItem>
                <Label>Connection</Label>
                <ScriptBlock>$::.ColorString.ToStandardColorString($_.Connection, 'Emphasis2', $null, $null, $null)</ScriptBlock>
              </ListItem>
              <ListItem>
                <Label>IsDefault</Label>
                <ScriptBlock>$::.ColorString.ToStandardColorString($_.IsDefault, 'EnabledState', $null, $true, $false)</ScriptBlock>
              </ListItem>
              <ListItem>
                <PropertyName>AutoConnect</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>NoBrowserSigninUI</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>InitialApiVersion</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>LogLevel</PropertyName>
              </ListItem>

            </ListItems>
          </ListEntry>
        </ListEntries>

      </ListControl>
    </View>

    <View>
      <Name>GraphApplication</Name>
      <ViewSelectedBy>
        <TypeName>AutoGraph.Application</TypeName>
      </ViewSelectedBy>
      <TableControl>
        <TableHeaders>
          <TableColumnHeader>
            <Label>AppId</Label>
          </TableColumnHeader>
          <TableColumnHeader>
            <Label>DisplayName</Label>
          </TableColumnHeader>
          <TableColumnHeader>
            <Alignment>Right</Alignment>
            <Label>CreatedDateTime</Label>
          </TableColumnHeader>
          <TableColumnHeader>
            <Label>Id</Label>
          </TableColumnHeader>
          <TableColumnHeader>
            <Label>PublisherDomain</Label>
          </TableColumnHeader>
        </TableHeaders>
        <TableRowEntries>
          <TableRowEntry>
            <TableColumnItems>
              <TableColumnItem>
                <ScriptBlock>$::.ColorString.ToStandardColorString($_.AppId, 'Emphasis1', $null, $null, $null)</ScriptBlock>
              </TableColumnItem>
              <TableColumnItem>
                <ScriptBlock>$::.ColorString.ToStandardColorString($_.DisplayName, 'Emphasis2', $null, $null, $null)</ScriptBlock>
              </TableColumnItem>
              <TableColumnItem>
                <ScriptBlock>$_.createdDateTime.ToString('G')</ScriptBlock>
              </TableColumnItem>
              <TableColumnItem>
                <PropertyName>Id</PropertyName>
              </TableColumnItem>
              <TableColumnItem>
                <PropertyName>PublisherDomain</PropertyName>
              </TableColumnItem>
            </TableColumnItems>
          </TableRowEntry>
        </TableRowEntries>
      </TableControl>
    </View>


    <View>
      <Name>GraphApplicationDetail</Name>
      <ViewSelectedBy>
        <TypeName>AutoGraph.Application</TypeName>
      </ViewSelectedBy>
      <GroupBy>
        <PropertyName>AppId</PropertyName>
        <Label>Application (client) ID</Label>
      </GroupBy>
      <ListControl>

        <ListEntries>
          <ListEntry>
            <ListItems>
              <ListItem>
                <Label>AppId</Label>
                <ScriptBlock>$::.ColorString.ToStandardColorString($_.AppId, 'Emphasis1', $null, $null, $null)</ScriptBlock>
              </ListItem>
              <ListItem>
                <Label>DisplayName</Label>
                <ScriptBlock>$::.ColorString.ToStandardColorString($_.DisplayName, 'Emphasis2', $null, $null, $null)</ScriptBlock>
              </ListItem>
              <ListItem>
                <ScriptBlock>$_.createdDateTime.ToString('G')</ScriptBlock>
              </ListItem>
              <ListItem>
                <PropertyName>Id</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>signinAudience</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>PublisherDomain</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>verifiedPublisher</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>info</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>parentalControlSettings</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>tags</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>notes</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>applicationTemplateId</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>groupMembershipClaims</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>appRoles</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>optionalClaims</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>identifierUris</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>isDeviceOnlyAuthSupported</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>isFallbackPublicClient</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>tokenEncryptionKeyId</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>defaultRedirectUri</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>addIns</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>requiredResourceAccess</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>api</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>web</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>spa</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>publicClient</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>keyCredentials</PropertyName>
              </ListItem>

            </ListItems>
          </ListEntry>
        </ListEntries>

      </ListControl>
    </View>


    <View>
      <Name>GraphServicePrincipal</Name>
      <ViewSelectedBy>
        <TypeName>AutoGraph.ServicePrincipal</TypeName>
      </ViewSelectedBy>
      <TableControl>
        <TableHeaders>
          <TableColumnHeader>
            <Label>AppId</Label>
          </TableColumnHeader>
          <TableColumnHeader>
            <Label>DisplayName</Label>
          </TableColumnHeader>
          <TableColumnHeader>
            <Label>CreatedDateTime</Label>
          </TableColumnHeader>
          <TableColumnHeader>
            <Label>Id</Label>
          </TableColumnHeader>
        </TableHeaders>
        <TableRowEntries>
          <TableRowEntry>
            <TableColumnItems>
              <TableColumnItem>
                <ScriptBlock>$::.ColorString.ToStandardColorString($_.AppId, 'Emphasis1', $null, $null, $null)</ScriptBlock>
              </TableColumnItem>
              <TableColumnItem>
                <ScriptBlock>$::.ColorString.ToStandardColorString($_.DisplayName, 'Emphasis2', $null, $null, $null)</ScriptBlock>
              </TableColumnItem>
              <TableColumnItem>
                <ScriptBlock>$::.GraphFormatter.ToStandardTimeString($_.createdDateTime)</ScriptBlock>
              </TableColumnItem>
              <TableColumnItem>
                <PropertyName>Id</PropertyName>
              </TableColumnItem>
            </TableColumnItems>
          </TableRowEntry>
        </TableRowEntries>
      </TableControl>
    </View>


    <View>
      <Name>GraphServicePrincipalDetail</Name>
      <ViewSelectedBy>
        <TypeName>AutoGraph.ServicePrincipal</TypeName>
      </ViewSelectedBy>
      <GroupBy>
        <PropertyName>AppId</PropertyName>
        <Label>Application (client) ID</Label>
      </GroupBy>
      <ListControl>

        <ListEntries>
          <ListEntry>
            <ListItems>
              <ListItem>
                <Label>AppId</Label>
                <ScriptBlock>$::.ColorString.ToStandardColorString($_.AppId, 'Emphasis1', $null, $null, $null)</ScriptBlock>
              </ListItem>
              <ListItem>
                <Label>DisplayName</Label>
                <ScriptBlock>$::.ColorString.ToStandardColorString($_.DisplayName, 'Emphasis2', $null, $null, $null)</ScriptBlock>
              </ListItem>
              <ListItem>
                <ScriptBlock>$::.GraphFormatter.ToStandardTimeString($_.createdDateTime)</ScriptBlock>
              </ListItem>
              <ListItem>
                <PropertyName>Id</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>signinAudience</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>info</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>tags</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>notes</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>applicationTemplateId</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>appRoles</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>tokenEncryptionKeyId</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>addIns</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>keyCredentials</PropertyName>
              </ListItem>
            </ListItems>
          </ListEntry>
        </ListEntries>

      </ListControl>
    </View>

    <View>
      <Name>GraphCertificate</Name>
      <ViewSelectedBy>
        <TypeName>AutoGraph.Certificate</TypeName>
      </ViewSelectedBy>
      <GroupBy>
        <Label>Application (client) ID</Label>
        <ScriptBlock>$::.ColorString.ToStandardColorString($_.AppId, 'Emphasis1', $null, $null, $null)</ScriptBlock>
      </GroupBy>
      <TableControl>
        <TableHeaders>
          <TableColumnHeader>
            <Label>Thumbprint</Label>
          </TableColumnHeader>
          <TableColumnHeader>
            <Label>NotAfter</Label>
          </TableColumnHeader>
          <TableColumnHeader>
            <Label>KeyId</Label>
          </TableColumnHeader>
          <TableColumnHeader>
            <Label>Subject</Label>
          </TableColumnHeader>
        </TableHeaders>
        <TableRowEntries>
          <TableRowEntry>
            <TableColumnItems>
              <TableColumnItem>
                <ScriptBlock>$::.ColorString.ToStandardColorString($_.Thumbprint, 'Emphasis2', $null, $null, $null)</ScriptBlock>
              </TableColumnItem>
              <TableColumnItem>
                <ScriptBlock>$::.GraphFormatter.ResourceInTimeWindow($_.NotAfter, [DateTimeOffset]::UtcNow, $null)</ScriptBlock>
              </TableColumnItem>
              <TableColumnItem>
                <PropertyName>KeyId</PropertyName>
              </TableColumnItem>
              <TableColumnItem>
                <PropertyName>Subject</PropertyName>
              </TableColumnItem>
            </TableColumnItems>
          </TableRowEntry>
        </TableRowEntries>
      </TableControl>
    </View>


    <View>
      <Name>GraphCertificateDetails</Name>
      <ViewSelectedBy>
        <TypeName>AutoGraph.Certificate</TypeName>
      </ViewSelectedBy>
      <GroupBy>
        <Label>Application (client) ID</Label>
        <ScriptBlock>$::.ColorString.ToStandardColorString($_.AppId, 'Emphasis1', $null, $null, $null)</ScriptBlock>
      </GroupBy>
      <ListControl>

        <ListEntries>
          <ListEntry>
            <ListItems>
              <ListItem>
                <Label>Thumbprint</Label>
                <ScriptBlock>$::.ColorString.ToStandardColorString($_.Thumbprint, 'Emphasis2', $null, $null, $null)</ScriptBlock>
              </ListItem>
              <ListItem>
                <PropertyName>AppId</PropertyName>
              </ListItem>
              <ListItem>
                <Label>Subject</Label>
                <ItemSelectionCondition>
                  <ScriptBlock>$_.Subject -ne $null</ScriptBlock>
                </ItemSelectionCondition>
                <ScriptBlock>$::.ColorString.ToStandardColorString($_.Subject, 'Emphasis2', $null, $null, $null)</ScriptBlock>
              </ListItem>
              <ListItem>
                <Label>FriendlyName</Label>
                <ItemSelectionCondition>
                  <ScriptBlock>$_.FriendlyName -ne $null</ScriptBlock>
                </ItemSelectionCondition>
                <ScriptBlock>$::.ColorString.ToStandardColorString($_.FriendlyName, 'Emphasis1', $null, $null, $null)</ScriptBlock>
              </ListItem>
              <ListItem>
                <Label>NotBefore</Label>
                <ScriptBlock>$::.GraphFormatter.ResourceInTimeWindow($_.NotBefore, $null, [DateTimeOffset]::UtcNow)</ScriptBlock>
              </ListItem>
              <ListItem>
                <Label>NotAfter</Label>
                <ScriptBlock>$::.GraphFormatter.ResourceInTimeWindow($_.NotAfter, [DateTimeOffset]::UtcNow, $null)</ScriptBlock>
              </ListItem>
              <ListItem>
                <ItemSelectionCondition>
                  <ScriptBlock>$_.CertificatePath -ne $null</ScriptBlock>
                </ItemSelectionCondition>
                <Label>CertificatePath</Label>
                <ScriptBlock>$::.ColorString.ToStandardColorString($_.CertificatePath, 'Emphasis2', $null, $null, $null)</ScriptBlock>
              </ListItem>
              <ListItem>
                <ItemSelectionCondition>
                  <ScriptBlock>$_.ExportedCertificatePath -ne $null</ScriptBlock>
                </ItemSelectionCondition>
                <PropertyName>ExportedCertificatePath</PropertyName>
              </ListItem>
              <ListItem>
                <ItemSelectionCondition>
                  <ScriptBlock>$_.KeyId -ne $null</ScriptBlock>
                </ItemSelectionCondition>
                <PropertyName>KeyId</PropertyName>
              </ListItem>
              <ListItem>
                <ItemSelectionCondition>
                  <ScriptBlock>$_.AppObjectId -ne $null</ScriptBlock>
                </ItemSelectionCondition>
                <PropertyName>AppObjectId</PropertyName>
              </ListItem>
            </ListItems>
          </ListEntry>
        </ListEntries>

      </ListControl>
    </View>

    <View>
      <Name>GraphConsent</Name>
      <ViewSelectedBy>
        <TypeName>GraphConsentDisplayType</TypeName>
      </ViewSelectedBy>
      <GroupBy>
        <PropertyName>AppId</PropertyName>
      </GroupBy>
      <TableControl>
        <TableHeaders>
          <TableColumnHeader>
            <Label>PermissionType</Label>
          </TableColumnHeader>
          <TableColumnHeader>
            <Label>ServicePrincipalId</Label>
          </TableColumnHeader>
          <TableColumnHeader>
            <Label>Permission</Label>
          </TableColumnHeader>
          <TableColumnHeader>
            <Label>GrantedTo</Label>
          </TableColumnHeader>
        </TableHeaders>
        <TableRowEntries>
          <TableRowEntry>
            <TableColumnItems>
              <TableColumnItem>
                <ScriptBlock>$::.GraphFormatter.PermissionType($_.PermissionType)</ScriptBlock>
              </TableColumnItem>
              <TableColumnItem>
                <PropertyName>ServicePrincipalId</PropertyName>
              </TableColumnItem>
              <TableColumnItem>
                <ScriptBlock>$::.ColorString.ToStandardColorString($_.Permission, 'Emphasis2', $null, $null, $null)</ScriptBlock>
              </TableColumnItem>
              <TableColumnItem>
                <PropertyName>GrantedTo</PropertyName>
              </TableColumnItem>
            </TableColumnItems>
          </TableRowEntry>
        </TableRowEntries>
      </TableControl>
    </View>

    <View>
      <Name>GraphConsentDetail</Name>
      <ViewSelectedBy>
        <TypeName>GraphConsentDisplayType</TypeName>
      </ViewSelectedBy>
      <GroupBy>
        <PropertyName>PermissionType</PropertyName>
      </GroupBy>
      <ListControl>

        <ListEntries>
          <ListEntry>
            <ListItems>
              <ListItem>
                <Label>AppId</Label>
                <ScriptBlock>$::.ColorString.ToStandardColorString($_.AppId, 'Emphasis1', $null, $null, $null)</ScriptBlock>
              </ListItem>
              <ListItem>
                <Label>PermissionType</Label>
                <ScriptBlock>$::.GraphFormatter.PermissionType($_.PermissionType)</ScriptBlock>
              </ListItem>
              <ListItem>
                <PropertyName>ServicePrincipalId</PropertyName>
              </ListItem>
              <ListItem>
                <ItemSelectionCondition>
                  <ScriptBlock>$_.StartTime -ne $null</ScriptBlock>
                </ItemSelectionCondition>
                <PropertyName>StartTime</PropertyName>
              </ListItem>
              <ListItem>
                <Label>Permission</Label>
                <ScriptBlock>$::.ColorString.ToStandardColorString($_.Permission, 'Emphasis2', $null, $null, $null)</ScriptBlock>
              </ListItem>
              <ListItem>
                <PropertyName>GrantedTo</PropertyName>
              </ListItem>
            </ListItems>
          </ListEntry>
        </ListEntries>

      </ListControl>
    </View>

    <View>
      <Name>GraphEndpointTest</Name>
      <ViewSelectedBy>
        <TypeName>GraphEndpointTest</TypeName>
      </ViewSelectedBy>
      <ListControl>

        <ListEntries>
          <ListEntry>
            <ListItems>

              <ListItem>
                <Label>TestUri</Label>
                <ScriptBlock>$::.ColorString.ToStandardColorString($_.TestUri, 'Emphasis2', $null, $null, $null)</ScriptBlock>
              </ListItem>
              <ListItem>
                <Label>ServerTimestamp</Label>
                <ScriptBlock>$::.GraphFormatter.ServerTimestamp($_.ClientRequestTimestamp, $_.ServerTimestamp)</ScriptBlock>
              </ListItem>
              <ListItem>
                <Label>ClientElapsedTime (ms)</Label>
                <ScriptBlock>$::.GraphFormatter.ResponseElapsedTime($_.ClientElapsedTime, 'TotalMilliseconds', $true)</ScriptBlock>
              </ListItem>
              <ListItem>
                <PropertyName>RequestId</PropertyName>
              </ListItem>
              <ListItem>
                <Label>DataCenter</Label>
                <ScriptBlock>$::.ColorString.ToStandardColorString($_.DataCenter, 'Emphasis1', $null, $null, $null)</ScriptBlock>
              </ListItem>
              <ListItem>
                <PropertyName>Ring</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>RoleInstance</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>ScaleUnit</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>Slice</PropertyName>
              </ListItem>
              <ListItem>
                <Label>NonfatalStatus</Label>
                <ScriptBlock>$::.ColorString.ToStandardColorString($_.NonfatalStatus, 'EnabledState', $null, $null, $_.NonfatalStatus)</ScriptBlock>
              </ListItem>
            </ListItems>
          </ListEntry>
        </ListEntries>

      </ListControl>
    </View>

    <View>

      <Name>GraphSettingsInfo</Name>
      <ViewSelectedBy>
        <TypeName>AutoGraph.SettingsInfo</TypeName>
      </ViewSelectedBy>

      <GroupBy>
        <Label>Path</Label>
        <ScriptBlock>$::.ColorString.ToStandardColorString($_.Path, 'Emphasis2', $null, $null, $null)</ScriptBlock>
      </GroupBy>

      <ListControl>

        <ListEntries>
          <ListEntry>
            <ListItems>

              <ListItem>
                <Label>DefaultProfileName</Label>
                <ScriptBlock>$::.ColorString.ToStandardColorString($_.DefaultProfileName, 'Emphasis1', $null, $null, $null)</ScriptBlock>
              </ListItem>
              <ListItem>
                <PropertyName>ProfileNames</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>ConnectionNames</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>EndpointNames</PropertyName>
              </ListItem>

            </ListItems>
          </ListEntry>
        </ListEntries>
      </ListControl>

    </View>

    <View>

      <Name>GraphSettings</Name>
      <ViewSelectedBy>
        <TypeName>LocalProfile</TypeName>
      </ViewSelectedBy>

      <GroupBy>
        <Label>Profile Name</Label>
        <ScriptBlock>$::.ColorString.ToStandardColorString($_.Name, 'Emphasis2', $null, $null, $null)</ScriptBlock>
      </GroupBy>

      <ListControl>

        <ListEntries>
          <ListEntry>
            <ListItems>

              <ListItem>
                <PropertyName>InitialApiVersion</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>LogLevel</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>EndpointData</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>ConnectionData</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>ProfileData</PropertyName>
              </ListItem>

            </ListItems>
          </ListEntry>
        </ListEntries>
      </ListControl>

    </View>

  </ViewDefinitions>

</Configuration>