// *** WARNING: this file was generated by test. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

import * as pulumi from "@pulumi/pulumi";
import * as utilities from "./utilities";

// Export members:
export * from "./cat";
export * from "./dog";
export * from "./god";
export * from "./noRecursive";
export * from "./provider";
export * from "./toyStore";

// Export sub-modules:
import * as types from "./types";

export {
    types,
};

// Import resources to register:
import { Cat } from "./cat";
import { Dog } from "./dog";
import { God } from "./god";
import { NoRecursive } from "./noRecursive";
import { ToyStore } from "./toyStore";

const _module = {
    version: utilities.getVersion(),
    construct: (name: string, type: string, urn: string): pulumi.Resource => {
        switch (type) {
            case "example::Cat":
                return new Cat(name, <any>undefined, { urn })
            case "example::Dog":
                return new Dog(name, <any>undefined, { urn })
            case "example::God":
                return new God(name, <any>undefined, { urn })
            case "example::NoRecursive":
                return new NoRecursive(name, <any>undefined, { urn })
            case "example::ToyStore":
                return new ToyStore(name, <any>undefined, { urn })
            default:
                throw new Error(`unknown resource type ${type}`);
        }
    },
};
pulumi.runtime.registerResourceModule("example", "", _module)

import { Provider } from "./provider";

pulumi.runtime.registerResourcePackage("example", {
    version: utilities.getVersion(),
    constructProvider: (name: string, type: string, urn: string): pulumi.ProviderResource => {
        if (type !== "pulumi:providers:example") {
            throw new Error(`unknown provider type ${type}`);
        }
        return new Provider(name, <any>undefined, { urn });
    },
});
