in teamcity/user_data_source.go [36:76]
func (d *userDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
resp.Schema = schema.Schema{
Description: "Use this data source to get information about an existing TeamCity user.",
Attributes: map[string]schema.Attribute{
"id": schema.StringAttribute{
Optional: true,
Computed: true,
Description: "The internal ID of the user. Either id or username must be specified.",
},
"username": schema.StringAttribute{
Optional: true,
Computed: true,
Description: "The username of the user. Either id or username must be specified.",
},
"github_username": schema.StringAttribute{
Computed: true,
Description: "The GitHub username associated with the user.",
},
"roles": schema.SetNestedAttribute{
Computed: true,
NestedObject: schema.NestedAttributeObject{
Attributes: map[string]schema.Attribute{
"id": schema.StringAttribute{
Computed: true,
Description: "The role ID.",
},
"global": schema.BoolAttribute{
Computed: true,
Description: "Whether the role is assigned globally.",
},
"project": schema.StringAttribute{
Computed: true,
Description: "The project ID if the role is project-specific.",
},
},
},
Description: "List of roles assigned to the user.",
},
},
}
}