Class ComponentAnalyzer
Analyzes component resource types and generates a package schema.
Inherited Members
Namespace: Pulumi.Experimental.Provider
Assembly: Pulumi.dll
Syntax
public sealed class ComponentAnalyzer
Methods
View SourceFindComponentType(string, Assembly, Type[]?)
Finds a component type by name in the given assembly or type array.
Declaration
public static Type? FindComponentType(string name, Assembly assembly, Type[]? componentTypes = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | |
| Assembly | assembly | |
| Type[] | componentTypes |
Returns
| Type | Description |
|---|---|
| Type |
GenerateSchema(Metadata, Assembly)
Analyzes the components in the given assembly and generates a package schema.
Declaration
public static PackageSpec GenerateSchema(Metadata metadata, Assembly assembly)
Parameters
| Type | Name | Description |
|---|---|---|
| Metadata | metadata | The package metadata including name (required), version and display name (optional) |
| Assembly | assembly | The assembly containing component resource types to analyze |
Returns
| Type | Description |
|---|---|
| PackageSpec | A PackageSpec containing the complete schema for all components and their types |
GenerateSchema(Metadata, params Type[])
Analyzes the specified component types and generates a package schema.
Declaration
public static PackageSpec GenerateSchema(Metadata metadata, params Type[] componentTypes)
Parameters
| Type | Name | Description |
|---|---|---|
| Metadata | metadata | The package metadata including name (required), version and display name (optional) |
| Type[] | componentTypes | The component resource types to analyze |
Returns
| Type | Description |
|---|---|
| PackageSpec | A PackageSpec containing the complete schema for all components and their types |