GetResourcePermissions() private method

private GetResourcePermissions ( ResourceIdentifier identity ) : List
identity ResourceIdentifier
return List
 public static PSResource ToPSResource(this GenericResourceExtended resource, ResourcesClient client, bool minimal)
 {
     ResourceIdentifier identifier = new ResourceIdentifier(resource.Id);
     return new PSResource
     {
         Name = identifier.ResourceName,
         Location = resource.Location,
         ResourceType = identifier.ResourceType,
         ResourceGroupName = identifier.ResourceGroupName,
         ParentResource = identifier.ParentResource,
         Properties = JsonUtilities.DeserializeJson(resource.Properties),
         PropertiesText = resource.Properties,
         Tags = TagsConversionHelper.CreateTagHashtable(resource.Tags),
         Permissions = minimal ? null : client.GetResourcePermissions(identifier),
         ResourceId = identifier.ToString()
     };
 }
        public static PSResource ToPSResource(this GenericResource resource, ResourcesClient client, bool minimal)
        {
            var identifier = new ResourceIdentifier(resource.Id);

            return(new PSResource
            {
                Name = identifier.ResourceName,
                Location = resource.Location,
                ResourceType = identifier.ResourceType,
                ResourceGroupName = identifier.ResourceGroupName,
                ParentResource = identifier.ParentResource,
                Properties = JsonUtilities.DeserializeJson(resource.Properties?.ToString()),
                PropertiesText = resource.Properties?.ToString(),
                Tags = TagsConversionHelper.CreateTagHashtable(resource.Tags),
                Permissions = minimal ? null : client.GetResourcePermissions(identifier),
                ResourceId = identifier.ToString()
            });
        }