func ListReferencedDataStorageLineOfServices(c common.Client, link string) ([]*DataStorageLineOfService, error) {  
	var result []*DataStorageLineOfService
	if link == "" {
		return result, nil
	}
	links, err := common.GetCollection(c, link)
	if err != nil {
		return result, err
	}
	collectionError := common.NewCollectionError()
	for _, datastoragelineofserviceLink := range links.ItemLinks {
		datastoragelineofservice, err := GetDataStorageLineOfService(c, datastoragelineofserviceLink)
		if err != nil {
			collectionError.Failures[datastoragelineofserviceLink] = err
		} else {
			result = append(result, datastoragelineofservice)
		}
	}
	if collectionError.Empty() {
		return result, nil
	}
	return result, collectionError
}
ListReferencedDataStorageLineOfServices gets the collection of DataStorageLineOfService from
a provided reference.
package swordfish
import (
	"encoding/json"
	"github.com/stmcginnis/gofish/common"
)
type DataStorageLineOfService struct {
	common.Entity
	ODataContext string `json:"@odata.context"`
	ODataType string `json:"@odata.type"`
	AccessCapabilities []StorageAccessCapability
	Description string
	IsSpaceEfficient bool
	OEM string `json:"Oem"`
	ProvisioningPolicy ProvisioningPolicy
	RecoverableCapacitySourceCount int
	RecoveryTimeObjectives RecoveryAccessScope
}
func (datastoragelineofservice *DataStorageLineOfService) UnmarshalJSON(b []byte) error {
	type temp DataStorageLineOfService
	var t struct {
		temp
	}
	err := json.Unmarshal(b, &t)
	if err != nil {
		return err
	}
	*datastoragelineofservice = DataStorageLineOfService(t.temp)
	return nil
}
func GetDataStorageLineOfService(c common.Client, uri string) (*DataStorageLineOfService, error) {
	resp, err := c.Get(uri)
	if err != nil {
		return nil, err
	}
	defer resp.Body.Close()
	var datastoragelineofservice DataStorageLineOfService
	err = json.NewDecoder(resp.Body).Decode(&datastoragelineofservice)
	if err != nil {
		return nil, err
	}
	datastoragelineofservice.SetClient(c)
	return &datastoragelineofservice, nil
}