github.com/loggregator/cli@v6.33.1-0.20180224010324-82334f081791+incompatible/cf/api/resources/service_plan_visibility.go (about)

     1  package resources
     2  
     3  import "code.cloudfoundry.org/cli/cf/models"
     4  
     5  type ServicePlanVisibilityResource struct {
     6  	Resource
     7  	Entity models.ServicePlanVisibilityFields
     8  }
     9  
    10  func (resource ServicePlanVisibilityResource) ToFields() (fields models.ServicePlanVisibilityFields) {
    11  	fields.GUID = resource.Metadata.GUID
    12  	fields.ServicePlanGUID = resource.Entity.ServicePlanGUID
    13  	fields.OrganizationGUID = resource.Entity.OrganizationGUID
    14  	return
    15  }