func NewAPIAnalyzer(version, clientName string, resources, types map[string]map[string]interface{}) *APIAnalyzer {
	return &APIAnalyzer{
		RawResources: resources,
		RawTypes:     types,
		Version:      version,
		ClientName:   clientName,
		Registry:     NewTypeRegistry(),
	}
}
NewAPIAnalyzer is the factory method for APIAnalyzer.
package main
import (
	"sort"
	"github.com/rightscale/rsc/gen"
)
type APIAnalyzer struct {
	RawResources map[string]map[string]interface{}
	RawTypes map[string]map[string]interface{}
	Version string
	ClientName string
	descriptor *gen.APIDescriptor
	Registry *TypeRegistry
}