func()

in internal/provider/module_source_data_source.go [55:73]


func (m *ModuleSourceDataSource) Schema(ctx context.Context, request datasource.SchemaRequest, response *datasource.SchemaResponse) {
	response.Schema = schema.Schema{
		MarkdownDescription: "`modtm_module_source` data source is used to read the source and version that the current module is associated with. It tried to read `modules.json` file in `.terraform/modules` folder during the plan time.",
		Attributes: map[string]schema.Attribute{
			"module_path": schema.StringAttribute{
				Required:            true,
				MarkdownDescription: "The path of the module that the telemetry resource is associated with. From this data the provider will attempt to read the `$TF_DATA_DIR/modules/modules.json` file and will send the module source and version to the telemetry endpoint.",
			},
			"module_version": schema.StringAttribute{
				Computed:            true,
				MarkdownDescription: "The version of the module that the telemetry resource is associated with",
			},
			"module_source": schema.StringAttribute{
				Computed:            true,
				MarkdownDescription: "The source of the module that the telemetry resource is associated with",
			},
		},
	}
}