github.com/mook-as/cf-cli@v7.0.0-beta.28.0.20200120190804-b91c115fae48+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  }