vsphere/internal/helper/dvportgroup/distributed_port_group_helper.go
func Properties(pg *object.DistributedVirtualPortgroup) (*mo.DistributedVirtualPortgroup, error) {
	ctx, cancel := context.WithTimeout(context.Background(), provider.DefaultAPITimeout)
	defer cancel()
	var props mo.DistributedVirtualPortgroup
	if err := pg.Properties(ctx, pg.Reference(), nil, &props); err != nil {
		return nil, err
	}
	return &props, nil
}
func Properties(pg *object.DistributedVirtualPortgroup) (*mo.DistributedVirtualPortgroup, error) {
	ctx, cancel := context.WithTimeout(context.Background(), provider.DefaultAPITimeout)
	defer cancel()
	var props mo.DistributedVirtualPortgroup
	if err := pg.Properties(ctx, pg.Reference(), nil, &props); err != nil {
		return nil, err
	}
	return &props, nil
}
// Properties is a convenience method that wraps fetching the
// portgroup MO from its higher-level object.