serviceaccess/serviceaccess.go
func (m *Manager) DisablePublicServiceAccess(serviceInfo *ServiceInfo) error {
	for _, servicePlan := range serviceInfo.AllPlans() {
		for _, plan := range servicePlan {
			if plan.Public {
				err := m.Client.MakeServicePlanPrivate(plan.GUID)
				if err != nil {
					return err
				}
			}
		}
	}
	return nil
}
func (m *Manager) DisablePublicServiceAccess(serviceInfo *ServiceInfo) error {
	for _, servicePlan := range serviceInfo.AllPlans() {
		for _, plan := range servicePlan {
			if plan.Public {
				err := m.Client.MakeServicePlanPrivate(plan.GUID)
				if err != nil {
					return err
				}
			}
		}
	}
	return nil
}
func ( m * Manager ) DisablePublicServiceAccess ( serviceInfo * ServiceInfo ) error { for _ , servicePlan := range serviceInfo . AllPlans ( ) { for _ , plan := range servicePlan { if plan . Public { err := m . Client . MakeServicePlanPrivate ( plan . GUID ) if err != nil { return err } } } } return nil }
//DisablePublicServiceAccess - will ensure any public plan is made private
DisablePublicServiceAccess - will ensure any public plan is made private