func()

in internal/provider/people_data_source.go [43:76]


func (d *PeopleDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) {
	resp.Schema = schema.Schema{
		// This description is used by the documentation generator and the language server.
		MarkdownDescription: "People data source",

		Attributes: map[string]schema.Attribute{
			"email": schema.StringAttribute{
				MarkdownDescription: "People email address",
				Optional:            true,
			},
			"github_node_id": schema.StringAttribute{
				MarkdownDescription: "GitHub node ID",
				Computed:            true,
			},
			"github_username": schema.StringAttribute{
				MarkdownDescription: "GitHub username",
				Computed:            true,
			},
			"id": schema.StringAttribute{
				MarkdownDescription: "People user identifier",
				Optional:            true,
			},
			"mozilliansorg_groups": schema.ListAttribute{
				ElementType:         types.StringType,
				MarkdownDescription: "Mozilliansorg groups the user is in",
				Computed:            true,
			},
			"username": schema.StringAttribute{
				MarkdownDescription: "People username",
				Optional:            true,
			},
		},
	}
}