github.com/cloudfoundry-community/cloudfoundry-cli@v6.44.1-0.20240130060226-cda5ed8e89a5+incompatible/resources/shared_to_spaces_resource.go (about)

     1  package resources
     2  
     3  import (
     4  	"code.cloudfoundry.org/jsonry"
     5  )
     6  
     7  type SharedToSpacesListWrapper struct {
     8  	SharedToSpaceGUIDs []string       `jsonry:"data[].guid"`
     9  	Spaces             []Space        `jsonry:"included.spaces"`
    10  	Organizations      []Organization `jsonry:"included.organizations"`
    11  }
    12  
    13  func (s *SharedToSpacesListWrapper) UnmarshalJSON(data []byte) error {
    14  	return jsonry.Unmarshal(data, s)
    15  }