func ExportYAMLForVersion(ctx context.Context, client *gapic.RegistryClient, message *rpc.ApiVersion) {
	printDocAsYaml(docForMapping(exportVersion(ctx, client, message)))
}
ExportYAMLForVersion writes a project as a YAML file.
package core
import (
	"context"
	"fmt"
	"path"
	"time"
	"github.com/apex/log"
	"github.com/apigee/registry/gapic"
	"github.com/apigee/registry/rpc"
	"github.com/apigee/registry/server/registry/names"
	"gopkg.in/yaml.v3"
)
func ExportYAMLForProject(ctx context.Context, client *gapic.RegistryClient, adminClient *gapic.AdminClient, message *rpc.Project) {
	printDocAsYaml(docForMapping(exportProject(ctx, client, adminClient, message)))
}
func ExportYAMLForAPI(ctx context.Context, client *gapic.RegistryClient, message *rpc.Api) {
	printDocAsYaml(docForMapping(exportAPI(ctx, client, message)))
}